Android crash with SIGSEGV


#1

Hello!

On some device I noticed, that the app crash after rotating the device and pressing a touchable component.
It happens both in Expo client and standalone app.
On Expo client I was able to recreate the bug when the remote debugger wasn’t runing.

I run the logcat and got this report at the time of the crash:

E/ConnectivityService( 1007): RemoteException caught trying to send a callback msg for NetworkRequest [ id=150, legacyType=-1, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VPN] ]
E/Watchdog( 1007): !@Sync 613
E/SMD     (  372): DCD OFF
E/SMD     (  372): DCD OFF
F/libc    (29659): Fatal signal 11 (SIGSEGV), code 1, fault addr 0xbbadbeef in tid 31310 (mqt_js)
E/NativeCrashListener( 1007): Exception dealing with report
E/NativeCrashListener( 1007): android.system.ErrnoException: read failed: EAGAIN (Try again)
E/NativeCrashListener( 1007):   at libcore.io.Posix.readBytes(Native Method)
E/NativeCrashListener( 1007):   at libcore.io.Posix.read(Posix.java:147)
E/NativeCrashListener( 1007):   at libcore.io.BlockGuardOs.read(BlockGuardOs.java:230)
E/NativeCrashListener( 1007):   at android.system.Os.read(Os.java:364)
E/NativeCrashListener( 1007):   at com.android.server.am.NativeCrashListener.consumeNativeCrashData(NativeCrashListener.java:240)
E/NativeCrashListener( 1007):   at com.android.server.am.NativeCrashListener.run(NativeCrashListener.java:138)
E/Adjust  (30043): Adjust not initialized correctly
E/SMD     (  372): DCD OFF
E/        (  368): ro.product_ship = true
E/        (  368): ro.debug_level = 0x4f4c
E/audit   ( 2042): type=1701 msg=audit(1533721477.126:331): auid=4294967295 uid=10216 gid=10216 ses=4294967295 subj=u:r:untrusted_app:s0 pid=31310 comm="mqt_js" reason="memory violation" sig=11
E/SharedPreferencesImpl( 1007): Couldn't create directory for SharedPreferences file shared_prefs/log_files.xml
E/InputDispatcher( 1007): channel ~ Channel is unrecoverably broken and will be disposed!
E/InputDispatcher( 1007): channel ~ Channel is unrecoverably broken and will be disposed!
E/WindowState( 1007): getStack: Window{3067fc29 u0 host.exp.exponent/host.exp.exponent.experience.ExperienceActivity} couldn't find taskId=1719 Callers=com.android.server.wm.WindowState.computeFrameLw:105
4 com.android.internal.policy.impl.PhoneWindowManager.layoutWindowLw:4904 com.android.server.wm.WindowManagerService.performLayoutLockedInner:10918 com.android.server.wm.WindowManagerService.performLayout
AndPlaceSurfacesLockedInner:11858 
E/ActivityManager( 1007): checkUser: useridlist=null, currentuser=0
E/ActivityManager( 1007): checkUser: useridlist=null, currentuser=0
E/ActivityManager( 1007): checkUser: useridlist=null, currentuser=0
E/ActivityManager( 1007): checkUser: useridlist=null, currentuser=0
E/WindowState( 1007): getStack: Window{3067fc29 u0 host.exp.exponent/host.exp.exponent.experience.ExperienceActivity} couldn't find taskId=1719 Callers=com.android.server.wm.WindowState.computeFrameLw:105
4 com.android.internal.policy.impl.PhoneWindowManager.layoutWindowLw:4904 com.android.server.wm.WindowManagerService.performLayoutLockedInner:10918 com.android.server.wm.WindowManagerService.performLayout
AndPlaceSurfacesLockedInner:11858 
E/Zygote  (31741): MountEmulatedStorage()

#2

Hey @fitsolutionskft,

Thanks for reporting this. Do you think you could create a github issue here (https://github.com/expo/expo/issues) and provide a small github repo or Snack that has a MVCE (https://stackoverflow.com/help/mcve) to help us debug?

Cheers,

Adam


#3

@fitsolutionskft, @adamjnav , i’m have the same issue on some devices reported on Play Store Error Analytics


#4

Hy @adamjnav,

I can’t create an MVCE, because I don’t know what is causing this. The only thing I can do is describe what i’m doing when the crash happens.

If there is something else I could do, please let me know.

Thanks!


#5

Oh, my bad. I thought you had figured out what was causing the crash when you said “after rotating the device and pressing a touchable component”.

I’ll bring this up internally and see what the Android gurus can glean from it.


#6

Thanks!

If I can do anything else to help you, please let me know. (other then a MVCE :slight_smile:)


#7

Hi! Please let us know which devices are reporting this.


SDK28 / SDK29 problem on ImagePicker.launchImageLibraryAsync()
takeSnapshotAsync() SDK 29 Error On Any Real Device
#8

Reports

Jul 27, 1:42 PM on app version 69
Motorola Moto G (5S) Plus (sanders_nt), Android 7.1
Report 1 of 1
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
pid: 0, tid: 0 >>> br.com.i9xp.ecocard <<<

backtrace:
  #00  pc 0000000000181522  /data/app/br.com.i9xp.ecocard-1/lib/arm/libjsc.so (_ZN3WTF7Unicode18convertUTF8ToUTF16EPPKcS2_PPtS4_Pbb+37)
  #01  pc 0000000000042b93  /data/app/br.com.i9xp.ecocard-1/lib/arm/libjsc.so (JSStringCreateWithUTF8CString+120)
  #02  pc 00000000000322a3  /data/app/br.com.i9xp.ecocard-1/lib/arm/libreactnativejni.so (_ZN8facebook5react11JSCExecutor11adoptStringESt10unique_ptrIKNS0_11JSBigStringESt14default_deleteIS4_EE+42)
  #03  pc 000000000003340b  /data/app/br.com.i9xp.ecocard-1/lib/arm/libreactnativejni.so (_ZN8facebook5react11JSCExecutor21loadApplicationScriptESt10unique_ptrIKNS0_11JSBigStringESt14default_deleteIS4_EESs+138)
  #04  pc 00000000000361db  /data/app/br.com.i9xp.ecocard-1/lib/arm/libreactnativejni.so
  #05  pc 0000000000035c61  /data/app/br.com.i9xp.ecocard-1/lib/arm/libreactnativejni.so
  #06  pc 0000000000016601  /data/app/br.com.i9xp.ecocard-1/lib/arm/libreactnativejni.so (_ZNKSt8functionIFvvEEclEv+12)
  #07  pc 000000000001e5cd  /data/app/br.com.i9xp.ecocard-1/lib/arm/libreactnativejni.so
  #08  pc 0000000000016601  /data/app/br.com.i9xp.ecocard-1/lib/arm/libreactnativejni.so (_ZNKSt8functionIFvvEEclEv+12)
  #09  pc 000000000001840d  /data/app/br.com.i9xp.ecocard-1/lib/arm/libreactnativejni.so
  #10  pc 000000000001844b  /data/app/br.com.i9xp.ecocard-1/lib/arm/libreactnativejni.so
  #11  pc 0000000001a7c08f  /data/app/br.com.i9xp.ecocard-1/oat/arm/base.odex
Jul 29, 11:56 PM on app version 69
Asus ZenFone 5 (ASUS_T00J), Android 4.4
Report 1 of 1
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
pid: 0, tid: 0 >>> br.com.i9xp.ecocard <<<

backtrace:
  #00  pc 00000000003adeb0  /data/app-lib/br.com.i9xp.ecocard-1/libjsc.so
  #01  pc 000000000005035f  /data/app-lib/br.com.i9xp.ecocard-1/libjsc.so
  #02  pc 000000000006210f  /data/app-lib/br.com.i9xp.ecocard-1/libreactnativejni.so
  #03  pc 0000000000063b7b  /data/app-lib/br.com.i9xp.ecocard-1/libreactnativejni.so
Jul 28, 4:14 PM on app version 69
OnePlus OnePlus 6 (OnePlus6), Android 8.1
Report 1 of 1
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
pid: 0, tid: 0 >>> br.com.i9xp.ecocard <<<

backtrace:
  #00  pc 0000000000011c12  /data/data/com.google.android.gms/app_vision/barcode/libs/armeabi-v7a/libbarhopper.so
  #01  pc 000000000000a2ef  /data/data/com.google.android.gms/app_vision/barcode/libs/armeabi-v7a/libbarhopper.so
  #02  pc 0000000000003333  /data/data/com.google.android.gms/app_vision/barcode/libs/armeabi-v7a/libbarhopper.so
  #03  pc 000000000000442d  /data/data/com.google.android.gms/app_vision/barcode/libs/armeabi-v7a/libbarhopper.so
  #04  pc 0000000000001e63  /data/data/com.google.android.gms/app_vision/barcode/libs/armeabi-v7a/libbarhopper.so
  #05  pc 0000000000002a91  /data/data/com.google.android.gms/app_vision/barcode/libs/armeabi-v7a/libbarhopper.so
  #06  pc 000000000040b679  /system/lib/libart.so (art_quick_generic_jni_trampoline+40)
  #07  pc 00000000000ac825  /dev/ashmem/dalvik-jit-code-cache (deleted)

#9

@jesse Samsung GT-I9506, Android 5.0.1


#10

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.