-
-
Notifications
You must be signed in to change notification settings - Fork 276
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
FCM plugin exception - Namespace SPRINGBOARD, Code 0x8badf00d #28
Comments
The thread dying is concerning, yes, but did experience functionality issues? Would you be able to share a repository of which the app presents this error? I'll investigate as soon as possible. Thank you |
Hi, Below is a demo repo created. In this new project, only FCM plugin is installed and on launch the app is crashing When for the first time, app is installed to the device via xcode, it works well, for the subsequent launches, it crashes everytime. Since it is crashing on app launch, we are not able to test any functionality. Attached are the XCode logs and the mobile device logs and my environement info IonicInfo.docx Please let me know if any other info is required. . |
I've found the thread firebase/firebase-ios-sdk#1399 that mentions that, this issue occurs due to keychain deadlocks. I'll investigate possible solutions. |
Hello There, |
Hi, I've written a simple experiment, that just delay the Firebase initialisation by 10 seconds. Just to check if a solution like this could work in your case (master...andrehtissot:delayed-firebase-initialization-experiment). So, from the root app directory, execute something like: cd ..
git clone https://github.com/andrehtissot/cordova-plugin-fcm-with-dependecy-updated.git
cd -
cd ../cordova-plugin-fcm-with-dependecy-updated
git checkout delayed-firebase-initialization-experiment
cd -
ionic cordova plugin remove cordova-plugin-fcm-with-dependecy-updated
ionic cordova plugin add ../cordova-plugin-fcm-with-dependecy-updated And please let me know if the crashes still happen. |
Will check and revert to you! |
Hi There,
With this workaround, now on iOS device, no crash is observed.
However, when the same plugin is used while building android app, we ran
into below issue
D8: Program type already present:
android.support.v4.app.INotificationSideChannel
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task
':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.
com.android.builder.dexing.DexArchiveMergerException: Error while merging
dex archives:
Learn how to resolve the issue at
https://developer.android.com/studio/build/dependencies#duplicate_classes.
Program type already present:
android.support.v4.app.INotificationSideChannel
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or
--debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 2m 14s
Task :app:transformDexArchiveWithExternalLibsDexMergerForDebug FAILED
35 actionable tasks: 9 executed, 26 up-to-date
(node:10136) UnhandledPromiseRejectionWarning: Error:
F:\orciFcm\OrciCare\platforms\android\gradlew: Command failed with exit
code 1 Error output:
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
D8: Program type already present:
android.support.v4.app.INotificationSideChannel
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task
':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.
com.android.builder.dexing.DexArchiveMergerException: Error while merging
dex archives:
Learn how to resolve the issue at
https://developer.android.com/studio/build/dependencies#duplicate_classes.
Program type already present:
android.support.v4.app.INotificationSideChannel
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or
--debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 2m 14s
at ChildProcess.whenDone
(F:\orciFcm\OrciCare\node_modules\cordova-common\src\superspawn.js:135:23)
at ChildProcess.emit (events.js:210:5)
at ChildProcess.cp.emit
(F:\orciFcm\OrciCare\node_modules\cross-spawn\lib\enoent.js:34:29)
at maybeClose (internal/child_process.js:1021:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
(node:10136) UnhandledPromiseRejectionWarning: Unhandled promise rejection.
This error originated either by throwing inside of an async function
without a catch block, or by rejecting a promise which was not handled with
.catch(). (rejection id: 1)
(node:10136) [DEP0018] DeprecationWarning: Unhandled promise rejections are
deprecated. In the future, promise rejections that are not handled will
terminate the Node.js process with a non-zero exit code.
With FCM plugin version 4.2.0 android app is built successfully.
…On Tue, 7 Apr, 2020, 16:34 André Tissot, ***@***.***> wrote:
Hi, I've written a simple experiment, that just delay the Firebase
initialisation by 10 seconds. Just to check if a solution like this could
work in your case (
master...andrehtissot:delayed-firebase-initialization-experiment
<master...andrehtissot:delayed-firebase-initialization-experiment>
).
So, from the root app directory, execute something like:
cd ..
git clone https://github.com/andrehtissot/cordova-plugin-fcm-with-dependecy-updated.gitcd -cd ../cordova-plugin-fcm-with-dependecy-updated
git checkout delayed-firebase-initialization-experimentcd -
ionic cordova plugin remove cordova-plugin-fcm-with-dependecy-updated
ionic cordova plugin add ../cordova-plugin-fcm-with-dependecy-updated
And please let me know if the crashes still happen.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#28 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIWHZR37IDTBOP5LKLZCQ2LRLMCDLANCNFSM4LYSY73A>
.
|
This is an error due to Androidx migration. I suggest you to try some of the solutions found in https://stackoverflow.com/questions/51918301/program-type-already-present-android-support-v4-app-inotificationsidechannelst. If those don't work, let me know, then you might have to use a special version of the plugin, of which won't require androidx, by not importing |
But it's good to know that this solution avoids crashing on iOS. In the near future, I intend on implement the feature requested in #31, which, in theory would also fix the issue you found. |
HI Tried the solution in below link- But still could not be successful. arnesson/cordova-plugin-firebase#1083 (comment) But then also ran into an error |
I'll try to minimize the reliance on AndroidX dependency to avoid these compatibility issues. I'll update here, when I get it working. |
Also, just to let you know, a small delay was added to the main release version, so the first issue you mentioned (ios thread crashing), should not occur anymore. |
Hi @meghanadixit1, I published a new version of cordova-plugin-fcm-with-dependecy-updated@beta, which, besides a lot refactoring on the ios side, has fewer androidx dependencies. Would you give it a try, and let me know if it fixes the build on Android, and if for iOS it still works as expected? |
The new release v5.0.0 has the changes I mentioned. |
Issue closed due to inactivity. |
Hey, V5.0.0 beta The code is built but notification is not received in iOS devices. |
Facing below exception while using FCM plugin.
This is observed in iOS device only, n every app launch app is crashing.
Incident Identifier: 1467E172-6976-4820-BC8F-EC117C872B1A
CrashReporter Key: c6d17c65815372ba349e2a14fc1fcc9a155742c0
Hardware Model: iPhone8,1
Process: MyAppName [394]
Path: /private/var/containers/Bundle/Application/EC6C615A-938D-4771-8CA5-5B0C7BF58FCA/MyAppName.app/MyAppName
Identifier: MyPackageName
Version: 0.6.2 (0.6.2)
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
Coalition: MyPackageName [490]
Date/Time: 2020-03-27 17:44:05.4206 +0530
Launch Time: 2020-03-27 17:43:44.7608 +0530
OS Version: iPhone OS 13.3 (17C54)
Release Type: User
Baseband Version: 7.30.02
Report Version: 104
Exception Type: EXC_CRASH (SIGKILL)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Reason: Namespace SPRINGBOARD, Code 0x8badf00d
Termination Description: SPRINGBOARD, scene-create watchdog transgression: application:394 exhausted real (wall clock) time allowance of 19.78 seconds | ProcessVisibility: Foreground | ProcessState: Running | WatchdogEvent: scene-create | WatchdogVisibility: Foreground | WatchdogCPUStatistics: ( | "Elapsed total CPU time (seconds): 20.470 (user 20.470, system 0.000), 51% CPU", | "Elapsed application CPU time (seconds): 0.568, 1% CPU" | )
Triggered by Thread: 0
Thread 0 name: Dispatch queue: com.google.FirebaseInstanceID.Keychain
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x0000000185eb8634 0x185eb5000 + 13876
1 libsystem_kernel.dylib 0x0000000185eb7aa0 0x185eb5000 + 10912
2 libdispatch.dylib 0x0000000185d6a7cc 0x185d53000 + 96204
3 libdispatch.dylib 0x0000000185d6ab94 0x185d53000 + 97172
4 libxpc.dylib 0x0000000185cae440 0x185ca3000 + 46144
5 Security 0x0000000186f0d224 0x186eed000 + 131620
6 Security 0x0000000186f0dc38 0x186eed000 + 134200
7 Security 0x0000000186f8e17c 0x186eed000 + 659836
8 Security 0x0000000186f8d054 0x186eed000 + 655444
9 Security 0x0000000186f8b92c 0x186eed000 + 649516
10 Security 0x0000000186f8c2d4 0x186eed000 + 651988
11 Security 0x0000000186f8e084 0x186eed000 + 659588
12 Security 0x0000000186f89f48 0x186eed000 + 642888
13 Security 0x0000000186f8c6f4 0x186eed000 + 653044
Struggling with this issue since 3 days. PLease help ASAP!!!
The text was updated successfully, but these errors were encountered: