-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Runtime EXC_BAD_ACCESS in AsyncSequence (SkieSwiftFlow) #31
Comments
Hi! I tried the example code, and it didn't crash. So we need to figure out what is different about your and mine setup. Likely it will be a different version of something. What version of the following SW do you have?
The SKIE configuration doesn't contain anything that should cause this problem. The error message points to some null pointer exception - do you know where in the code it crashes (it will likely show you some line in assembly code)? Also, is the error reliably reproducible for you, and if so how often and how quickly does it happen (for example, it crashes immediately without printing anything vs. it can print +- 100 numbers and then crash)? |
I had the same issue today on version 0.5.0 of SKIE. Downgrade back to 0.4.2 and everything works as expected. |
Hello @FilipDolnik, we are using
Exactly, here a small dump
It just crashes on the first collection so none of the values get ever emitted I can also validate @PiotrPrus's claim and with My solution would then be to use |
Hi! Yeah, yesterday, we were able to create a reproducer for a similar crash and subsequently fix it in 0.5.2 - so it's good to hear that it also fixed your project. The key to reproducing it was to use XCFramework instead of a regular framework, which is what we use in the tests.
Yes, you can go ahead and use it. It's a regular release; we just haven't had the time yet to put out release notes / make a public announcement, which will happen today. |
Great! Thanks for your support! |
We are currently switching from the native Coroutines Plugin to SKIE and are especially interested in the
SkieSwiftFlow
. We just noticed that we are receiving runtime crashes on iOS, when collecting from theSkieSwiftFlow
.Code
KMP
iOS App
Error:
Thread 3: EXC_BAD_ACCESS (code=1, address=0x0)
What we already know:
When add a transformation like
map
orcompatMap
and just return the element like it came, all is running fine. This is will be our current solution for that problem.We also noticed you are doing the same in your example: https://github.com/touchlab/SKIEDemoSample/blob/a9df32055e5d88c39d4dc60ef7dfe06fa49998b6/ios/ios/TickDemo.swift#L24
Question
Since we need to use this on all SkieSwiftFlows to use it properly it should be handled by SKIE.
Also please note: I did just try this in our current KMP project, so a misconfiguration isn't that unlikely. Our current configuration for SKIE is:
Versions:
In case it's relevant the generated
.h
file:The text was updated successfully, but these errors were encountered: