question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Creating BIP32Keystore from mnemonics crashes with EXC_BAD_ACCESS

See original GitHub issue
  • Xcode 12.0
  • Added using Carthage
  • Latest version from “master” branch (Cartfile.resolved github "matter-labs/web3swift" "59762337126f732345497daa11f18ad23510a575")
  • Ran on both iOS 13 & 14 emulator iPhone 8
  • Used the code example provided by documentation
let password = "web3swift"
let bitsOfEntropy: Int = 128 // Entropy is a measure of password strength. Usually used 128 or 256 bits.
let mnemonics = try! BIP39.generateMnemonics(bitsOfEntropy: bitsOfEntropy)!
let keystore = try! BIP32Keystore(
    mnemonics: mnemonics,
    password: password,
    mnemonicsPassword: "",
    language: .english)!

Will crash at BIP39.swift line 152

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:15 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
skywindercommented, Oct 12, 2020

I would like to make a gitcoin bounty for this fix

1reaction
henrikixcommented, Jan 4, 2021

I switched to develop branch when I saw there were some commits and since then it has worked for me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Creating BIP32Keystore from mnemonics crashes ... - GitHub
Creating BIP32Keystore from mnemonics crashes with EXC_BAD_ACCESS #277 ... PS If you remove whitespaces from the generated mnemonic then it ...
Read more >
EXC_BAD_ACCESS crash error: Understanding and solving it
EXC_BAD_ACCESS crashes are annoying but solvable using the right tools. Learn how to use the Xcode sanitizers to fix those crashes in Swift....
Read more >
Investigating memory access crashes - Apple Developer
Identify crashes that arise from memory access issues, and investigate the cause of the crash. Overview. A crash due to a memory access...
Read more >
objective c - Block callback crashes with EXC_BAD_ACCESS
I have a custom NSOperation subclass that I use for making HTTP requests. It accepts a block-based callback that is executed when the...
Read more >
iOS EXC_BAD_ACCESS Crash - Unity Forum
Well, we tried a device build and there are no errors! But still occures in simulator builds. 1) In my case my Mac...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found