-
Notifications
You must be signed in to change notification settings - Fork 22
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
Thread 1: EXC_BAD_ACCESS (code=2, address=0x16ba47fd0) #64
Comments
Thank you for your request. |
After installing the "@capacitor-community/privacy-screen" package and following the provided steps to enable it in the "capacitor.config.json" and "capacitor.config.ts" files, I built the app and installed it on my iPhone 13 Pro. However, as soon as I put the app into the background by pressing the home button or switching to another app, the app crashed with the "Thread 1: EXC_BAD_ACCESS" exception in the "AppDelegate.swift" file at the line where the class is defined:
This issue occurred consistently after enabling the "PrivacyScreen" plugin, and I couldn't find any direct cause for the crash. I checked for any conflicts with other plugins or native code, but the crash seemed to be isolated to the "PrivacyScreen" plugin. As this exception significantly impacts the stability of the app, I kindly request support from the community to investigate the root cause and find a resolution. I am willing to provide any additional information or logs required for debugging purposes. Any assistance in resolving this critical issue would be highly appreciated. Thank you. |
As i said, please provide a Minimal, Reproducible Example using this template in a public GitHub repository so I can debug the issue. |
Got exactly the same problem and tried in a fresh project, same issue. package.json { The only thing I did here is to enable the plugin in the app.component.ts
|
We are also experiencing same issue. |
We are experiencing the same issue. Steps to reproduce:
|
experiencing the same issue , while enable PrivacyScreen on a page and running the app on background within 8-10 sec the app crashed with the "Thread 1: EXC_BAD_ACCESS" exception in the "AppDelegate.swift" |
++ also getting this error UPDATE: It seems to only happen if PrivacyScreen is enabled at startup |
I am experiencing the crash and it is disabled in CapacitorConfig. It is only enabled on specific pages. capacitor.config.ts:
component.ts file:
|
I tried this way and it was working for a while, but the crashes actually continue. It doesn't seem to solve the problem |
This issue is caused by the EDIT: Interesting fact: It works without problems if you enable the plugin twice (see #65). |
Not sure why it is functioning this way now but adding 2 secure text fields seems to fix the problem so I've done that in the PR: #69 |
Thanks @dtarnawsky! I will publish a new release. |
Plugin version:
"@capacitor-community/privacy-screen": "^4.1.1",
Platform(s):
in ios
Current behavior:
The app crashes with the "EXC_BAD_ACCESS" error as described above when certain events related to the "privacy-screen" package occur.
Expected behavior
The app should operate smoothly without any crashes or errors after installing the "@capacitor-community/privacy-screen" package.
Steps to reproduce:
1.Install the "@capacitor-community/privacy-screen" package in the project using npm or yarn.
2.Integrate the package into the app according to the documentation provided by the package.
3.Run the app on a device or simulator.
4.Perform actions that trigger the events related to the "privacy-screen" package, such as going to the background or returning to the foreground.
Capacitor doctor:
💊 Capacitor Doctor 💊
Latest Dependencies:
@capacitor/cli: 5.2.2
@capacitor/core: 5.2.2
@capacitor/android: 5.2.2
@capacitor/ios: 5.2.2
Installed Dependencies:
@capacitor/cli: 4.8.1
@capacitor/android: 4.8.1
@capacitor/core: 4.8.1
@capacitor/ios: 4.8.1
[success] iOS looking great! 👌
[success] Android looking great!
The text was updated successfully, but these errors were encountered: