Skip to content

call of crash() shutdown the VM and generate a FATAL EXCEPTION: main #48

@jocafi

Description

@jocafi

Hi ReallySmallSoftware !!!

Steps to Reproduce the Problem

I am using Ionic 5 + Capacitor.

I just put two buttons: one to log random values and the other to execute the command crash():

  testCrash() {
    log.debug('test Crash called ...');
    this.crashlyticsService.log('Forcing a CRASH !');
    this.crashlyticsService.crash();
  }

The method above generates the output below and exits the App:

I/Capacitor/Console: File: http://localhost/main-es2015.js - Line 1642 - Msg: Logging using Crashlytics ...
V/Capacitor/Plugin: To native (Cordova plugin): callbackId: INVALID, service: FirebaseCrashlytics, action: log, actionArgs: ["Logging error: 128.40662929749215 - 487f-e77d-31d-9edc"]
D/FBCrashlyticsPlugin: log
V/Capacitor/Plugin: To native (Cordova plugin): callbackId: INVALID, service: FirebaseCrashlytics, action: logPriority, actionArgs: [5,"dashboard","This should not happened: 4309-6dda-ad9-05f1"]
D/FBCrashlyticsPlugin: logPriority
V/Capacitor/Plugin: To native (Cordova plugin): callbackId: INVALID, service: FirebaseCrashlytics, action: logException, actionArgs: [{}]
D/FBCrashlyticsPlugin: logException
D/InputMethodManager: HSIFW - flag : 0
I/ViewRootImpl@b5d398a[MainActivity]: ViewPostIme pointer 0
I/ViewRootImpl@b5d398a[MainActivity]: ViewPostIme pointer 1
V/Capacitor/Plugin: To native (Cordova plugin): callbackId: INVALID, service: FirebaseCrashlytics, action: log, actionArgs: ["Forcing a CRASH !"]
D/FBCrashlyticsPlugin: log
I/Capacitor/Console: File: http://localhost/main-es2015.js - Line 1637 - Msg: test Crash called ...
V/Capacitor/Plugin: To native (Cordova plugin): callbackId: INVALID, service: FirebaseCrashlytics, action: crash, actionArgs: []
D/FBCrashlyticsPlugin: crash
D/AndroidRuntime: Shutting down VM
    
    
    --------- beginning of crash
E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.test.test2, PID: 30041
    java.lang.RuntimeException
        at uk.co.reallysmall.cordova.plugin.firebase.crashlytics.CrashHandler$1.run(CrashHandler.java:16)
        at android.os.Handler.handleCallback(Handler.java:938)
        at android.os.Handler.dispatchMessage(Handler.java:99)
        at android.os.Looper.loop(Looper.java:246)
        at android.app.ActivityThread.main(ActivityThread.java:8419)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:596)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130)
V/FA: Connecting to remote service
V/FA: Recording user engagement, ms: 74456

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions