-
-
Notifications
You must be signed in to change notification settings - Fork 67
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
[BUG] 3.0.0 crash in sheet View #147
Comments
Hey, Could you send me the details about the crash (what exactly crashed and how to reproduce it) Thanks, |
Hey @zjinhu, Sorry for interrupting, but any further description would be extremely helpful - I tried to debug your problem, but unfortunately no crash appeared. |
thanks. I have a suspicion - I know I made a mistake and all the calculations are done in the same thread (which I plan to fix early next month); it is possible that in this case the function calculating the height of the popup overloads the thread by looping. And this is my guess (however I didn't observe this behavior when developing the update). Thank you again for your report and have a good day, |
Hey,
|
Thanks @Carlegk, At first glance, it seems that this is indeed a problem with the main thread; I'll investigate this more thoroughly over the weekend. But if my suspicions prove true, a fix for this bug is on my schedule for early November (super sorry for that, but I'm busy with other things right now) |
Hey! Here's a quick update about the problem: As I suspected, there is a problem with threads; since Xcode 16, the
The solution is kinda easy - just make sure that these methods are called from the main thread, a.k.a. use Thanks for your patience, |
@FulcrumOne Hello, I have the same problem. After I updated to version 3.0.2, the app crashed immediately when the pop-up view appeared. |
Hey, see the previous post in which I explained everything 😉 |
Hi, I'm using DispatchQueue.main.async to call MyView.present(), there is still a crash To reproduce :
|
I have the same crash but iOS 15 and 16 only, working fine in iOS 17, and 18 |
Hi, I'm currently working on this and it should be ready within a few days. I'll keep you in the loop. Have a nice day, |
Hey! A brief update on the situation - I have completed most of the work on the upcoming update (4.0.0) and you can test its beta version by switching to the branch To solve the problem, I had to make sure that the Task {
await YourPopup().present()
} I am very sorry about this, but alas, it was the only solution. I confirmed it with the code delivered by @Carlegk and it works (btw. I am very grateful for this example as it has shortened my work considerably). Let me know if it resolves your problems and have a nice day, PS. I plan to publish this version by the end of this week, preferably on Saturday. |
perf: - Improved library performance due to better task distribution between threads (#153) fix: - Fixed an issue with calling the library from non-main threads (#147) - Fixed an issue that made it impossible to interact with the app when the overlay was set to clear (#150) - Fixed a problem with the stacked popups background color - Improved vertical popup animations refactor: - Renamed and changed some public API properties (see 3.x.x -> 4.0.0 Migration Guide for more information) - Refactored several smaller files
No description provided.
The text was updated successfully, but these errors were encountered: