Android process has died

Hi,

When I try to run my project on android via fuse build --target=Android --run --trace the following message appears and the app shuts down.

I see a fatal error (signal 6?), but I don’t know what it means. Anyone an idea?

Fuse version 1.2.1 (build 13974)

Uno 1.2.2 (build 5754) macOS 10.13 i386 8fb0cf0

Configuring
Target is up-to-date -- stopping build (pass --force to override)

Build completed in 0.31 seconds

---
Installing APK on 1 device(s)
Launching activity 'OnsZorgt'
Running logcat on 0172312f988652ea
I/ActivityManager(  547): Start proc 29869:nl.onszorgt.app/u0a129 for activity nl.onszorgt.app/.OnsZorgt
I/art     (29869): Late-enabling -Xcheck:jni
D/OnsZorgt(29869): SDK: 22
W/linker  (29869): libgnustl_shared.so: unused DT entry: type 0x6ffffffe arg 0x47d58
W/linker  (29869): libgnustl_shared.so: unused DT entry: type 0x6fffffff arg 0x2
W/linker  (29869): libV8Simple.so: unused DT entry: type 0x6ffffffe arg 0x2e070
W/linker  (29869): libV8Simple.so: unused DT entry: type 0x6fffffff arg 0x3
W/linker  (29869): libOnsZorgt.so: unused DT entry: type 0x6ffffffe arg 0x2ec330
W/linker  (29869): libOnsZorgt.so: unused DT entry: type 0x6fffffff arg 0x2
I/Adreno-EGL(29869): <qeglDrvAPI_eglInitialize:379>: QUALCOMM Build: 01/15/15, ab0075f, Id3510ff6dc
D/OnsZorgt(29869): Fuse.PushNotifications: You have tried to start the android push notification service but do not have a 'Project.Android.GooglePlay.SenderID' specified in your unoproj file. Please add one and try again.
F/libc    (29869): Fatal signal 6 (SIGABRT), code -6 in tid 29869 (nl.onszorgt.app)
I/DEBUG   (  184): pid: 29869, tid: 29869, name: nl.onszorgt.app  >>> nl.onszorgt.app <<<
E/lowmemorykiller(  168): Error writing /proc/29869/oom_score_adj; errno=22
I/Zygote  (  196): Process 29869 exited due to signal (6)
I/ActivityManager(  547): Process nl.onszorgt.app (pid 29869) has died
Process nl.onszorgt.app terminated.

When I try the app on iOS the same error pops up: Thread 1: signal SIGABRT : libc++abi.dylib: terminating with uncaught exception of type uThrowable: Uno.Exception (lldb) in :

#include <Uno/Uno.h>
#include <UIKit/UIKit.h>
#include <Uno-iOS/AppDelegate.h>
int main(int argc, char **argv)
{
    // TODO: Report unhandled exceptions.
    // Can't rely on exceptions propagating outside UIApplicationMain as it
    // won't work with latest arm64 ABI

    @autoreleasepool
    {
        return UIApplicationMain(
            argc, argv, nil, NSStringFromClass([uAppDelegate class]));
    }
}

The log also contains this line:

D/OnsZorgt(29869): Fuse.PushNotifications: You have tried to start the android push notification service but do not have a 'Project.Android.GooglePlay.SenderID' specified in your unoproj file. Please add one and try again.

@Remi Pedersen: That doesn’t solve the problem, please reopen the thread.

I’ve added the GooglePlay SenderID (that message has gone), but the error still exists. As mentioned above I’m also getting this Fatal signal 6 (SIGABRT) message on iOS.

Uno 1.2.2 (build 5754) macOS 10.13 i386 8fb0cf0

Configuring (3.3 s)
Compiling syntax tree (1.8 s)
Generating code and data (7.8 s)
Building Android app
2/2: OnsZorgt.apk
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
(1:9)

Build completed in 82.52 seconds

---
Installing APK on 1 device(s)
Launching activity 'OnsZorgt'
Running logcat on 0172312f988652ea
I/ActivityManager(  575): Start proc 3958:nl.onszorgt.app/u0a130 for activity nl.onszorgt.app/.OnsZorgt
I/art     ( 3958): Late-enabling -Xcheck:jni
D/OnsZorgt( 3958): SDK: 22
W/linker  ( 3958): libgnustl_shared.so: unused DT entry: type 0x6ffffffe arg 0x47d58
W/linker  ( 3958): libgnustl_shared.so: unused DT entry: type 0x6fffffff arg 0x2
W/linker  ( 3958): libV8Simple.so: unused DT entry: type 0x6ffffffe arg 0x2e070
W/linker  ( 3958): libV8Simple.so: unused DT entry: type 0x6fffffff arg 0x3
W/linker  ( 3958): libOnsZorgt.so: unused DT entry: type 0x6ffffffe arg 0x2ec330
W/linker  ( 3958): libOnsZorgt.so: unused DT entry: type 0x6fffffff arg 0x2
I/Adreno-EGL( 3958): <qeglDrvAPI_eglInitialize:379>: QUALCOMM Build: 01/15/15, ab0075f, Id3510ff6dc
W/InstanceID/Rpc( 3958): Found 10008
F/libc    ( 3958): Fatal signal 6 (SIGABRT), code -6 in tid 3958 (nl.onszorgt.app)
I/DEBUG   (  185): pid: 3958, tid: 3958, name: nl.onszorgt.app  >>> nl.onszorgt.app <<<
I/Zygote  (  197): Process 3958 exited due to signal (6)
I/ActivityManager(  575): Process nl.onszorgt.app (pid 3958) has died
Process nl.onszorgt.app terminated.

@toine: could you try running the same build commands, but with -d flag, and then a) enable breakpoints in XCode, and b) choose Debug option in Android Studio?

Seeing the native stack trace should give a pretty good indication on what causes the crash.