Skip to content
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: runtime error: application tried to present modal view controller on itself #88

Closed
tafelnl opened this issue Mar 6, 2024 · 9 comments · Fixed by #98
Closed

bug: runtime error: application tried to present modal view controller on itself #88

tafelnl opened this issue Mar 6, 2024 · 9 comments · Fixed by #98
Labels
bug/fix Something isn't working needs: triage platform: ios iOS platform

Comments

@tafelnl
Copy link
Member

tafelnl commented Mar 6, 2024

Plugin version:
v4.2.3

Platform(s):
iOS

Steps to reproduce:

  1. just keep the default config
  2. swipe from the bottom so that the App Switcher opens
  3. click on the app, so that it opens again
  4. immediately and quickly (this is important) swipe up from the bottom so that the App Switcher opens
  5. do this a few times until the said error occurs

I know this is not an ideal reproduction. But I cannot find a consistent/simple way to reproduce this instead. Mostly it happens after trying step 2,3,4 like 2-5 times though

@robingenz robingenz added bug/fix Something isn't working platform: ios iOS platform labels Mar 6, 2024
@robingenz
Copy link
Member

Does the problem still exist with the latest version?

@tafelnl
Copy link
Member Author

tafelnl commented Mar 8, 2024

Unfortunately, yes

@micbis
Copy link
Contributor

micbis commented Apr 19, 2024

I can confirm this issue - we have exactly the same problem. After downgrading to 4.2.2, the crashes are gone.

@robingenz
Copy link
Member

PRs are welcome.

@andrerds
Copy link

Posso confirmar este problema - temos exatamente o mesmo problema. Após o downgrade para 4.2.2, as falhas desapareceram.

colidir

@micbis
Hello friend, everything okay? I hope so. Can I ask a question? How do you know it's this plugin that caused the error? I'm also having this error in this topic, but I couldn't reach a conclusion that it was this problem. I'm just curious, but I'm dealing with the same problem.

@andrerds
Copy link

andrerds commented Apr 24, 2024

Posso confirmar este problema - temos exatamente o mesmo problema. Após o downgrade para 4.2.2, as falhas desapareceram.
colidir

@micbis Hello friend, everything okay? I hope so. Can I ask a question? How do you know it's this plugin that caused the error? I'm also having this error in this topic, but I couldn't reach a conclusion that it was this problem. I'm just curious, but I'm dealing with the same problem.

Friend, I asked because the errors that appear to me point directly to the plugin. See the image below.

Captura de Tela 2024-04-24 às 09 22 27

Other errors have a similar description but don't directly show which file. Look at the image below, it's quite similar to the shared error.

edit

I'm not sure if both errors are related. Do you think they might be related?

Regarding the plugin, I'm still on version 4.0.0. I need to update. Another thing is that I couldn't replicate the problem. I see I have the logs, but I can't reproduce it, and even worse, I don't know the impact on the application—whether it crashes, freezes, or sets off fireworks, haha.

Thank

@7-plus-t
Copy link

I can confirm the crash is caused by the plugin. As far as I can tell, the plugin tries to display the privacyViewController multiple if handleWillResignActiveNotification is called multiple times by the OS.

@robingenz
Copy link
Member

@7-plus-t Would you be willing to create a PR?

7-plus-t added a commit to 7-plus-t/privacy-screen that referenced this issue Jun 28, 2024
Ensure the privacyViewController is never presented on itself.
@7-plus-t 7-plus-t mentioned this issue Jun 28, 2024
1 task
@7-plus-t
Copy link

@robingenz done, see #93

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug/fix Something isn't working needs: triage platform: ios iOS platform
Projects
None yet
5 participants