-
Notifications
You must be signed in to change notification settings - Fork 488
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
Random crash which is very frequent #218
Comments
I put a partial fix in 1.4.0. It should no longer crash, falling back to a default alignment. But that won't solve the underlying issue. Can you share with me the full stack trace? I'd like to understand under what circumstances the frame could be nil. I believe this is a long-standing issue. |
@ephread Thank you that you tried a fix. Mentioned below the full stack trace
|
@vinayakparmar92 from the stack trace, I assume that you previously paused the flow and you are starting it again, is that correct? Which Instructions is crashing because an internal view ( |
Yes! I ask a singleton manager to present the Coachmark/Instruction which takes a callback. That callback will return a boolean if its the right moment to present the coachmark, if not then it will present it later. The
|
Describe the bug
I am using the pod of latest versions of Instructions(1.3.1). There is a random crash happening which is frequent. Attached here the screen shot. The crash is on 225 line number in file CoachMarkLayoutHelper. Here is the code:
let segmentIndex = Int(ceil(2 * pointOfInterest.x / frame.size.width))
Looks like at some moment, the
frame.size.width
is 0 which makes it crash.To Reproduce
Happening randomly and not reproducible
Expected behavior
Crash should not happen
Screenshots
Environment:
Additional context
The text was updated successfully, but these errors were encountered: