Skip to content

[FIREBASE_MESSAGING] Setting onBackgroundMessage causes crash (Android) #174

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

Closed
dakaugu opened this issue Sep 18, 2019 · 9 comments
Closed
Labels
type: bug Something isn't working

Comments

@dakaugu
Copy link

dakaugu commented Sep 18, 2019

Describe the bug
following the readme on how to setup handling background messages with fcm ex: fcm.configure(...);
adding onBackgroundMessage: myBackgroundMessageHandler crashes application
commenting out that line and everything works fine.
followed all steps. added Application.Java, changed manifest, added top level dart function for myBackgroundMessageHandler

Additional context

Initializing gradle...
Resolving dependencies...
Running Gradle task 'assembleDebug'...
Built build/app/outputs/apk/debug/app-debug.apk.
Installing build/app/outputs/apk/app.apk...
W/Gralloc3( 8891): mapper 3.x is not supported
E/libc    ( 8891): Access denied finding property "vendor.gralloc.disable_ahardware_buffer"
W/RenderThread( 8891): type=1400 audit(0.0:55001): avc: denied { read } for name="u:object_r:vendor_default_prop:s0" dev="tmpfs" ino=20950 scontext=u:r:untrusted_app_27:s0:c201,c257,c512,c768 tcontext=u:object_r:vendor_default_prop:s0 tclass=file permissive=0
Syncing files to device Pixel 3...
F/libc    ( 8891): Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x1 in tid 8926 (1.ui), pid 8891 (om.package.name)
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'google/blueline/blueline:10/QP1A.190711.019/5790879:user/release-keys'
Revision: 'MP1.0'
ABI: 'arm64'
Timestamp: 2019-09-18 02:04:08-0700
pid: 8891, tid: 8926, name: 1.ui  >>> com.package.name <<<
uid: 10457
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x1
Cause: null pointer dereference
    x0  0000000000000001  x1  0000007abf5fa400  x2  0000000000000001  x3  0000000000000002
    x4  0000000000000001  x5  0000000000000000  x6  0000007a64f7d750  x7  0000000000003c2c
    x8  0000007b54814a80  x9  0000007b54814a80  x10 000000000000000a  x11 0000007a80000000
    x12 0000000000000020  x13 0000000022e7e368  x14 00000000004c0238  x15 0000007a64f7d750
    x16 0000007b523328f0  x17 0000007b523248c0  x18 0000007a62d0c000  x19 0000007abf5e1de0
    x20 0000007ac3c75380  x21 0000007a514a8ed0  x22 0000007a514a8f00  x23 0000007abf5e1298
    x24 0000000000000032  x25 0000007a64f7e020  x26 0000000000000000  x27 0000000000000001
    x28 0000000000000032  x29 0000007a64f7dc00
    sp  0000007a64f7d950  lr  0000007a66159c58  pc  0000007a66155990
backtrace:
      #00 pc 00000000011d3990  /data/app/com.package.name-RSRp60hecUrBSjYtED7XQQ==/lib/arm64/libflutter.so!libflutter.so (offset 0x11c0000) (BuildId: d8bf9b314511c944)
      #01 pc 00000000011d7c54  /data/app/com.package.name-RSRp60hecUrBSjYtED7XQQ==/lib/arm64/libflutter.so!libflutter.so (offset 0x11c0000) (BuildId: d8bf9b314511c944)
      #02 pc 00000000011cf744  /data/app/com.package.name-RSRp60hecUrBSjYtED7XQQ==/lib/arm64/libflutter.so!libflutter.so (offset 0x11c0000) (BuildId: d8bf9b314511c944)
      #03 pc 00000000011d5a78  /data/app/com.package.name-RSRp60hecUrBSjYtED7XQQ==/lib/arm64/libflutter.so!libflutter.so (offset 0x11c0000) (BuildId: d8bf9b314511c944)
      #04 pc 00000000011d6154  /data/app/com.package.name-RSRp60hecUrBSjYtED7XQQ==/lib/arm64/libflutter.so!libflutter.so (offset 0x11c0000) (BuildId: d8bf9b314511c944)
      #05 pc 00000000011d55b0  /data/app/com.package.name-RSRp60hecUrBSjYtED7XQQ==/lib/arm64/libflutter.so!libflutter.so (offset 0x11c0000) (BuildId: d8bf9b314511c944)
      #06 pc 00000000011da7c8  /data/app/com.package.name-RSRp60hecUrBSjYtED7XQQ==/lib/arm64/libflutter.so!libflutter.so (offset 0x11c0000) (BuildId: d8bf9b314511c944)
      #07 pc 0000000000017d54  /system/lib64/libutils.so (android::Looper::pollInner(int)+856) (BuildId: 9a341f2ddf907ec1f48e20e83444ada0)
      #08 pc 000000000001795c  /system/lib64/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+56) (BuildId: 9a341f2ddf907ec1f48e20e83444ada0)
      #09 pc 0000000000013658  /system/lib64/libandroid.so (ALooper_pollOnce+96) (BuildId: b484f0895bb60fd5cae43b418437cccd)
      #10 pc 00000000011da74c  /data/app/com.package.name-RSRp60hecUrBSjYtED7XQQ==/lib/arm64/libflutter.so!libflutter.so (offset 0x11c0000) (BuildId: d8bf9b314511c944)
      #11 pc 00000000011d54fc  /data/app/com.package.name-RSRp60hecUrBSjYtED7XQQ==/lib/arm64/libflutter.so!libflutter.so (offset 0x11c0000) (BuildId: d8bf9b314511c944)
      #12 pc 00000000011d86a0  /data/app/com.package.name-RSRp60hecUrBSjYtED7XQQ==/lib/arm64/libflutter.so!libflutter.so (offset 0x11c0000) (BuildId: d8bf9b314511c944)
      #13 pc 00000000000e1100  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+36) (BuildId: 676a709a0ee633ec9cf6ab05ec6410ae)
      #14 pc 0000000000083ab0  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: 676a709a0ee633ec9cf6ab05ec6410ae)
Lost connection to device.```
@dakaugu dakaugu added the type: bug Something isn't working label Sep 18, 2019
@pihariev
Copy link

I have exactly the same issue. Looking for a solution.

@samlotti
Copy link

Also have this exact issue.

@suhardiyan
Copy link

have same issue

@ChrisOwen101
Copy link

Related issue:
#144

@tigertore
Copy link

I have the same issue. Seems to kick in on flutter 1.9. Worked on 1.7.

@anatter
Copy link

anatter commented Sep 27, 2019

Also have this issue on 1.7.

@KoChunKai
Copy link

I have the same issue on flutter 1.9.1
flutter doctor

@billymahmood
Copy link

billymahmood commented Oct 11, 2019

Same issue

[✓] Flutter (Channel stable, v1.9.1+hotfix.4, on Mac OS X 10.15 19A583, locale en-GB)
 
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 11.0)
[✓] Android Studio (version 3.5)
[✓] VS Code (version 1.38.1)
[✓] Connected device (2 available)

• No issues found!

@iapicca
Copy link

iapicca commented Oct 23, 2019

Hi @dakaugu
I see there's an open issue addressing the case you described.
Please follow up on that issue,
I'm closing the current one as duplicate.
If you disagree please write in the comments
and I will reopen it.
Thank you

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

10 participants