App crashes with SQLiteConstraintException but I am not using SQLite - android

Apologies for this vague question. My app crashes due to SQLite exception - SQLiteConstraintException. I am using Realm but not SQLite in my project. By looking at the logs I could not understand what might be causing this.
It would be very helpful if you could shed some light on what it can be.
UPDATE: This issue is only occurring on my Samsung Galaxy S6. I run my app on other Android devices including a different Samsung Galaxy S6 and it works fine.
Not found why though.(This update is just to help others facing similar issue)
here are my logs
04-03 11:35:29.425 5343-5411/? E/ContactsProvider_EventLog: Flush buffer to file cnt : 1 size : 1Kb duration : 2ms lastUpdatedAfter : 60140 ms mFlush_time_threasold : 2000 mCurrentSize : 795
04-03 11:35:40.980 3643-4317/? E/Watchdog: !#Sync 1309 [2018-04-03 11:35:40.980]
04-03 11:35:53.033 3643-4392/? E/ActivityManager: applyOptionsLocked: pendingOptions.getStartX()=39pendingOptions.getStartY()=748
04-03 11:35:53.193 3643-15410/? E/SensorService: getSensorList a sensor (MAX86900) without holding its required permission: com.samsung.permission.SSENSOR
04-03 11:35:53.193 3643-15410/? E/SensorService: getSensorList a sensor (HRM Ambient Light Canceling) without holding its required permission: com.samsung.permission.HRM_EXT
04-03 11:35:53.193 3643-15410/? E/SensorService: getSensorList a sensor (HRMLED IR) without holding its required permission: android.permission.BODY_SENSORS
04-03 11:35:53.193 3643-15410/? E/SensorService: getSensorList a sensor (HRMLED RED) without holding its required permission: android.permission.BODY_SENSORS
04-03 11:35:53.193 3643-15410/? E/SensorService: getSensorList a sensor (HRM Proximity detecting) without holding its required permission: com.samsung.permission.HRM_EXT
04-03 11:35:53.193 3643-15410/? E/SensorService: getSensorList a sensor (HRM Sensor) without holding its required permission: com.samsung.permission.SSENSOR
04-03 11:35:53.193 3643-15410/? E/SensorService: getSensorList a sensor (HeartRate Sensor) without holding its required permission: android.permission.BODY_SENSORS
04-03 11:35:53.193 3643-15410/? E/SensorService: getSensorList a sensor (Sensor Diagnostic Monitor) without holding its required permission: com.samsung.permission.SSENSOR
04-03 11:35:54.392 3132-3132/? E/OMXNodeInstance: getConfig(c3c0240:Exynos.AVC.Encoder, ConfigAndroidIntraRefresh(0x6f60000a)) ERROR: UnsupportedIndex(0x8000101a)
04-03 11:35:55.011 3643-15413/? E/InputMethodManagerService: Perflock object null
04-03 11:35:55.031 20342-20342/? E/KeyboardInfoUtils: getInstance start
04-03 11:35:55.031 20342-20342/? E/KeyboardInfoUtils: sendSIPInformation state:6 isAbstractKeyboardView : true
04-03 11:35:55.032 20342-3743/? E/KeyboardInfoUtils: sending null keyboardInfo as SIP is closed
04-03 11:35:57.154 3325-3325/com.XXXX.onboarding.t3st.dev E/BoostFramework: BoostFramework() : Exception_1 = java.lang.ClassNotFoundException: Didn't find class "com.qualcomm.qti.Performance" on path: DexPathList[[],nativeLibraryDirectories=[/system/lib64, /vendor/lib64]]
04-03 11:35:57.229 20342-3760/? E/SKBD: updateShiftState() : 2
04-03 11:36:04.048 5061-3847/? E/SQLiteCastStore: Skip saving CastDeviceInfo: "Nearby device" (__cast_nearby___V_6178185b-e5e2-4698-9522-a98bfe27e0b3)
04-03 11:36:04.054 5061-3847/? E/SQLiteDatabase: Error inserting is_responding_to_probe=1 last_probed_timestamp_millis=1522750899426 device_id=e895d0b9e85682899f45a2bdb0d8457a probing_error_code=0 number_of_probed_times=0 network_id=null
android.database.sqlite.SQLiteConstraintException: NOT NULL constraint failed: ProbedNetwork.network_id (code 1299)
#################################################################
Error Code : 1299 (SQLITE_CONSTRAINT_NOTNULL)
Caused By : Abort due to constraint violation.
(NOT NULL constraint failed: ProbedNetwork.network_id (code 1299))
#################################################################
at android.database.sqlite.SQLiteConnection.nativeExecuteForLastInsertedRowId(Native Method)
at android.database.sqlite.SQLiteConnection.executeForLastInsertedRowId(SQLiteConnection.java:865)
at android.database.sqlite.SQLiteSession.executeForLastInsertedRowId(SQLiteSession.java:788)
at android.database.sqlite.SQLiteStatement.executeInsert(SQLiteStatement.java:86)
at android.database.sqlite.SQLiteDatabase.insertWithOnConflict(SQLiteDatabase.java:1862)
at android.database.sqlite.SQLiteDatabase.replace(SQLiteDatabase.java:1778)
at lda.b(com.google.android.gms#12221440#12.2.21 (440-188803320):30)
at lcw.b(com.google.android.gms#12221440#12.2.21 (440-188803320):31)
at lbv.run(Unknown Source)
at njd.call(com.google.android.gms#12221440#12.2.21 (440-188803320):2)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at nil.run(com.google.android.gms#12221440#12.2.21 (440-188803320):1)
at njk.run(com.google.android.gms#12221440#12.2.21 (440-188803320):26)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
at npg.run(com.google.android.gms#12221440#12.2.21 (440-188803320))
at java.lang.Thread.run(Thread.java:762)
04-03 11:36:04.054 5061-3847/? E/SQLiteCastStore: Unable to insert probedNetwork: CastProbedNetwork. Network ID: null, isDeviceRespondingToProbe: true, lastProbedTimestampMillis: 1522750899426, probingErrorCode: 0, numberOfProbedTimes: 0.
04-03 11:36:04.057 5061-3847/? E/SQLiteDatabase: Error inserting is_responding_to_probe=1 last_probed_timestamp_millis=1522751620475 device_id=69c4a49c55feb8e888d4fa20bb53d4a3 probing_error_code=0 number_of_probed_times=0 network_id=null
android.database.sqlite.SQLiteConstraintException: NOT NULL constraint failed: ProbedNetwork.network_id (code 1299)
#################################################################
Error Code : 1299 (SQLITE_CONSTRAINT_NOTNULL)
Caused By : Abort due to constraint violation.
(NOT NULL constraint failed: ProbedNetwork.network_id (code 1299))
#################################################################
at android.database.sqlite.SQLiteConnection.nativeExecuteForLastInsertedRowId(Native Method)
at android.database.sqlite.SQLiteConnection.executeForLastInsertedRowId(SQLiteConnection.java:865)
at android.database.sqlite.SQLiteSession.executeForLastInsertedRowId(SQLiteSession.java:788)
at android.database.sqlite.SQLiteStatement.executeInsert(SQLiteStatement.java:86)
at android.database.sqlite.SQLiteDatabase.insertWithOnConflict(SQLiteDatabase.java:1862)
at android.database.sqlite.SQLiteDatabase.replace(SQLiteDatabase.java:1778)
at lda.b(com.google.android.gms#12221440#12.2.21 (440-188803320):30)
at lcw.b(com.google.android.gms#12221440#12.2.21 (440-188803320):31)
at lbv.run(Unknown Source)
at njd.call(com.google.android.gms#12221440#12.2.21 (440-188803320):2)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at nil.run(com.google.android.gms#12221440#12.2.21 (440-188803320):1)
at njk.run(com.google.android.gms#12221440#12.2.21 (440-188803320):26)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
at npg.run(com.google.android.gms#12221440#12.2.21 (440-188803320))
at java.lang.Thread.run(Thread.java:762)
04-03 11:36:04.058 5061-3847/? E/SQLiteCastStore: Unable to insert probedNetwork: CastProbedNetwork. Network ID: null, isDeviceRespondingToProbe: true, lastProbedTimestampMillis: 1522751620475, probingErrorCode: 0, numberOfProbedTimes: 0.
04-03 11:36:04.058 5061-3847/? E/SQLiteCastStore: Skip saving CastDeviceInfo: "Nearby device" (__cast_nearby___V_0d078fcb-70a1-48bf-9f36-3c936aafdab9)
04-03 11:36:04.061 5061-3847/? E/SQLiteDatabase: Error inserting is_responding_to_probe=0 last_probed_timestamp_millis=1522737046620 device_id=65db08770005e75584d7a699e13bbda1 probing_error_code=2 number_of_probed_times=1 network_id=null
android.database.sqlite.SQLiteConstraintException: NOT NULL constraint failed: ProbedNetwork.network_id (code 1299)
#################################################################
Error Code : 1299 (SQLITE_CONSTRAINT_NOTNULL)
Caused By : Abort due to constraint violation.
(NOT NULL constraint failed: ProbedNetwork.network_id (code 1299))
#################################################################
at android.database.sqlite.SQLiteConnection.nativeExecuteForLastInsertedRowId(Native Method)
at android.database.sqlite.SQLiteConnection.executeForLastInsertedRowId(SQLiteConnection.java:865)
at android.database.sqlite.SQLiteSession.executeForLastInsertedRowId(SQLiteSession.java:788)
at android.database.sqlite.SQLiteStatement.executeInsert(SQLiteStatement.java:86)
at android.database.sqlite.SQLiteDatabase.insertWithOnConflict(SQLiteDatabase.java:1862)
at android.database.sqlite.SQLiteDatabase.replace(SQLiteDatabase.java:1778)
at lda.b(com.google.android.gms#12221440#12.2.21 (440-188803320):30)
at lcw.b(com.google.android.gms#12221440#12.2.21 (440-188803320):31)
at lbv.run(Unknown Source)
at njd.call(com.google.android.gms#12221440#12.2.21 (440-188803320):2)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at nil.run(com.google.android.gms#12221440#12.2.21 (440-188803320):1)
at njk.run(com.google.android.gms#12221440#12.2.21 (440-188803320):26)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
at npg.run(com.google.android.gms#12221440#12.2.21 (440-188803320))
at java.lang.Thread.run(Thread.java:762)
04-03 11:36:04.061 5061-3847/? E/SQLiteCastStore: Unable to insert probedNetwork: CastProbedNetwork. Network ID: null, isDeviceRespondingToProbe: false, lastProbedTimestampMillis: 1522737046620, probingErrorCode: 2, numberOfProbedTimes: 1.
04-03 11:36:08.582 3643-3656/? E/InputMethodManagerService: Perflock object null
04-03 11:36:08.669 20342-20342/? E/KeyboardInfoUtils: getInstance start
04-03 11:36:08.669 20342-20342/? E/KeyboardInfoUtils: sendSIPInformation state:6 isAbstractKeyboardView : true
04-03 11:36:08.669 20342-3839/? E/KeyboardInfoUtils: sending null keyboardInfo as SIP is closed
04-03 11:36:10.046 20342-3853/? E/SKBD: updateShiftState() : 2
04-03 11:36:10.988 3643-4317/? E/Watchdog: !#Sync 1310 [2018-04-03 11:36:10.988]
04-03 11:36:11.486 3643-7478/? E/InputMethodManagerService: Perflock object null
04-03 11:36:11.585 20342-20342/? E/KeyboardInfoUtils: getInstance start
04-03 11:36:11.585 20342-20342/? E/KeyboardInfoUtils: sendSIPInformation state:6 isAbstractKeyboardView : true
04-03 11:36:11.585 20342-3868/? E/KeyboardInfoUtils: sending null keyboardInfo as SIP is closed
04-03 11:36:25.404 3132-3725/? E/Exynos_OSAL_Android: [Exynos_OSAL_LockMetaData]: Failed to Exynos_OSAL_GetInfoFromMetaData (err:0x80001005)
04-03 11:36:25.405 3132-3719/? E/Exynos_OSAL_Android: [Exynos_OSAL_UnlockMetaData]: Failed to Exynos_OSAL_GetInfoFromMetaData (err:0x80001005)
04-03 11:36:25.411 3132-3132/? E/BufferQueueProducer: [GraphicBufferSource] dequeueBuffer: BufferQueue has been abandoned
[ 04-03 11:36:25.412 3325: 3615 D/ ]
NULL == surf->write_back_color_buffer
04-03 11:36:25.412 3325-3615/com.XXXX.onboarding.t3st.dev E/OpenGLRenderer: GL error: Out of memory!
04-03 11:36:25.412 3325-3615/com.XXXX.onboarding.t3st.dev A/OpenGLRenderer: GL errors! frameworks/base/libs/hwui/renderthread/CanvasContext.cpp:544
04-03 11:36:25.613 3325-3615/com.XXXX.onboarding.t3st.dev A/libc: Fatal signal 6 (SIGABRT), code -6 in tid 3615 (RenderThread)
[ 04-03 11:36:25.613 3014: 3014 W/ ]
debuggerd: handling request: pid=3325 uid=10892 gid=10892 tid=3615
04-03 11:36:25.622 3021-3021/? E/audit: type=1400 audit(1522751785.616:4482): avc: denied { search } for pid=3966 comm="debuggerd64" name="com.XXXX.onboarding.t3st.dev" dev="sda18" ino=592097 scontext=u:r:debuggerd:s0 tcontext=u:object_r:app_data_file:s0:c512,c768 tclass=dir permissive=0 SEPF_SECMOBILE_7.0_0009
04-03 11:36:25.690 3966-3966/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
04-03 11:36:25.690 3966-3966/? A/DEBUG: Build fingerprint: 'samsung/zerofltexx/zeroflte:7.0/NRD90M/G920FXXS5ERB6:user/release-keys'
04-03 11:36:25.690 3966-3966/? A/DEBUG: Revision: '11'
04-03 11:36:25.690 3966-3966/? A/DEBUG: ABI: 'arm64'
04-03 11:36:25.690 3966-3966/? A/DEBUG: pid: 3325, tid: 3615, name: RenderThread >>> com.XXXX.onboarding.t3st.dev <<<
04-03 11:36:25.690 3966-3966/? A/DEBUG: signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
04-03 11:36:25.693 3966-3966/? A/DEBUG: Abort message: 'GL errors! frameworks/base/libs/hwui/renderthread/CanvasContext.cpp:544'
04-03 11:36:25.693 3966-3966/? A/DEBUG: x0 0000000000000000 x1 0000000000000e1f x2 0000000000000006 x3 0000000000000008
04-03 11:36:25.693 3966-3966/? A/DEBUG: x4 0000000000000021 x5 0000000000000000 x6 0000007157f08000 x7 0000000000000000
04-03 11:36:25.693 3966-3966/? A/DEBUG: x8 0000000000000083 x9 ffffffffffffffdf x10 0000000000000000 x11 0000000000000001
04-03 11:36:25.693 3966-3966/? A/DEBUG: x12 ffffffffffffffff x13 0000000000000000 x14 0000000000000000 x15 0018937837e3eceb
04-03 11:36:25.693 3966-3966/? A/DEBUG: x16 00000071554c9ee0 x17 00000071554735ac x18 000000000000f000 x19 00000071329d74f8
04-03 11:36:25.693 3966-3966/? A/DEBUG: x20 0000000000000006 x21 00000071329d7450 x22 000000000000000b x23 00000071552d8030
04-03 11:36:25.693 3966-3966/? A/DEBUG: x24 00000071332126e0 x25 00000071537d2b20 x26 000000712d956e10 x27 00000071537d2b38
04-03 11:36:25.693 3966-3966/? A/DEBUG: x28 7fffffffffffffff x29 00000071329d66a0 x30 0000007155470a54
04-03 11:36:25.693 3966-3966/? A/DEBUG: sp 00000071329d6680 pc 00000071554735b4 pstate 0000000060000000
04-03 11:36:25.697 3966-3966/? A/DEBUG: backtrace:
04-03 11:36:25.697 3966-3966/? A/DEBUG: #00 pc 000000000006b5b4 /system/lib64/libc.so (tgkill+8)
04-03 11:36:25.697 3966-3966/? A/DEBUG: #01 pc 0000000000068a50 /system/lib64/libc.so (pthread_kill+64)
04-03 11:36:25.697 3966-3966/? A/DEBUG: #02 pc 0000000000023f68 /system/lib64/libc.so (raise+24)
04-03 11:36:25.697 3966-3966/? A/DEBUG: #03 pc 000000000001c9ec /system/lib64/libc.so (abort+52)
04-03 11:36:25.697 3966-3966/? A/DEBUG: #04 pc 00000000000112ec /system/lib64/libcutils.so (__android_log_assert+232)
04-03 11:36:25.697 3966-3966/? A/DEBUG: #05 pc 0000000000033e18 /system/lib64/libhwui.so
04-03 11:36:25.697 3966-3966/? A/DEBUG: #06 pc 000000000003454c /system/lib64/libhwui.so
04-03 11:36:25.697 3966-3966/? A/DEBUG: #07 pc 000000000003b980 /system/lib64/libhwui.so (_ZN7android10uirenderer12renderthread12RenderThread22dispatchFrameCallbacksEv+212)
04-03 11:36:25.697 3966-3966/? A/DEBUG: #08 pc 000000000003bb5c /system/lib64/libhwui.so (_ZN7android10uirenderer12renderthread12RenderThread10threadLoopEv+148)
04-03 11:36:25.697 3966-3966/? A/DEBUG: #09 pc 0000000000012488 /system/lib64/libutils.so (_ZN7android6Thread11_threadLoopEPv+272)
04-03 11:36:25.698 3966-3966/? A/DEBUG: #10 pc 00000000000a4d40 /system/lib64/libandroid_runtime.so (_ZN7android14AndroidRuntime15javaThreadShellEPv+116)
04-03 11:36:25.698 3966-3966/? A/DEBUG: #11 pc 0000000000068258 /system/lib64/libc.so (_ZL15__pthread_startPv+196)
04-03 11:36:25.698 3966-3966/? A/DEBUG: #12 pc 000000000001dc00 /system/lib64/libc.so (__start_thread+16)
04-03 11:36:28.774 3993-3993/? E/Zygote: v2
04-03 11:36:28.778 3993-3993/? E/Zygote: accessInfo : 0
04-03 11:36:29.563 5343-5411/? E/ContactsProvider_EventLog: Flush buffer to file cnt : 1 size : 1Kb duration : 3ms lastUpdatedAfter : 60138 ms mFlush_time_threasold : 2000 mCurrentSize : 795
04-03 11:36:41.000 3643-4317/? E/Watchdog: !#Sync 1311 [2018-04-03 11:36:41.000]

Your real problem is E/OpenGLRenderer: GL error: Out of memory! that then leads to the FATAL error i.e. crash.
The sqlite stacktrace is from Google Play Services and is not from a fatal crash, just an exception logged with error log level.

Related

React Native Vision Camera - Bar Code Scanner crashes the android app

I used vision-camera-code-scanner to scan bar codes. the code is working fine on IOS. but android it gives several errors including build fingerprint error. here is some error log of it.
> 02-14 00:17:17.605   494  2654 W libc    : Unable to set property "ctl.interface_start" to "com.qualcomm.qti.uceservice#2.3::IUceService/com.qualcomm.qti.uceservice": error code: 0x2002-14 00:17:18.604 25357 25378 W HidlServiceManagement: Waited one second for com.qualcomm.qti.uceservice#2.3::IUceService/com.qualcomm.qti.uceservice02-14 00:17:18.607   494  2655 W libc    : Unable to set property "ctl.interface_start" to "com.qualcomm.qti.uceservice#2.3::IUceService/com.qualcomm.qti.uceservice": error code: 0x2002-14 00:17:19.377  1556 23090 W ServiceManager: Permission failure: android.permission.CAMERA_OPEN_CLOSE_LISTENER from uid=10345 pid=182102-14 00:17:19.400  1821  2663 W libc    : Access denied finding property "vendor.camera.aux.packagelist"02-14 00:17:19.400  1821  2663 W CameraManagerGlobal: [soar.cts] ignore the status update of camera: 202-14 00:17:19.400  1821  2663 W libc    : Access denied finding property "vendor.camera.aux.packagelist"02-14 00:17:19.400  1821  2663 W CameraManagerGlobal: [soar.cts] ignore the status update of camera: 302-14 00:17:19.400  1821  2663 W libc    : Access denied finding property "vendor.camera.aux.packagelist"02-14 00:17:19.400  1821  2663 W CameraManagerGlobal: [soar.cts] ignore the status update of camera: 402-14 00:17:19.400  1821  2663 W libc    : Access denied finding property "vendor.camera.aux.packagelist"02-14 00:17:19.400  1821  2663 W CameraManagerGlobal: [soar.cts] ignore the status update of camera: 502-14 00:17:19.400  1821  2663 W libc    : Access denied finding property "vendor.camera.aux.packagelist"02-14 00:17:19.400  1821  2663 W CameraManagerGlobal: [soar.cts] ignore the status update of camera: 602-14 00:17:19.401  1821  2663 W libc    : Access denied finding property "vendor.camera.aux.packagelist"02-14 00:17:19.401  1821  2663 W CameraManagerGlobal: [soar.cts] ignore the status update of camera: 702-14 00:17:19.401  1821  2663 W libc    : Access denied finding property "vendor.camera.aux.packagelist"02-14 00:17:19.401  1821  1882 W libc    : Access denied finding property "vendor.camera.aux.packagelist"02-14 00:17:19.401  1821  1882 W CameraManagerGlobal: ignore the torch status update of camera: 202-14 00:17:19.402  1821  1882 W libc    : Access denied finding property "vendor.camera.aux.packagelist"02-14 00:17:19.402  1821  1882 W CameraManagerGlobal: ignore the torch status update of camera: 302-14 00:17:19.421  1821  1882 W libc    : Access denied finding property "vendor.camera.aux.packagelist"02-14 00:17:19.421  1821  1882 W CameraManagerGlobal: ignore the torch status update of camera: 502-14 00:17:19.421  1821  1882 W libc    : Access denied finding property "vendor.camera.aux.packagelist"02-14 00:17:19.421  1821  1882 W CameraManagerGlobal: ignore the torch status update of camera: 602-14 00:17:19.476  1821  2656 W libc    : Access denied finding property "vendor.camera.aux.packagelist"02-14 00:17:19.606 25357 25378 W HidlServiceManagement: Waited one second for com.qualcomm.qti.uceservice#2.3::IUceService/com.qualcomm.qti.uceservice02-14 00:17:19.608   494  2668 W libc    : Unable to set property "ctl.interface_start" to "com.qualcomm.qti.uceservice#2.3::IUceService/com.qualcomm.qti.uceservice": error code: 0x2002-14 00:17:19.669  1821  2656 W CameraView: CameraViewModule::getAvailableCameraDevices took: 321 ms02-14 00:17:19.862  1821  2667 W libc    : Access denied finding property "persist.vendor.camera.privapp.list"02-14 00:17:19.905  1821  2665 E CameraManagerGlobal: Camera 5 is not available. Ignore physical camera status change02-14 00:17:19.916  1821  1965 E unknown:SoftAssertions: Unhandled SoftException02-14 00:17:19.916  1821  1965 E unknown:SoftAssertions: com.facebook.react.bridge.AssertionException: Expected to run on UI thread!02-14 00:17:19.916  1821  1965 E unknown:SoftAssertions:     at com.facebook.react.bridge.SoftAssertions.assertCondition(SoftAssertions.java:37)02-14 00:17:19.916  1821  1965 E unknown:SoftAssertions:     at com.facebook.react.bridge.UiThreadUtil.assertOnUiThread(UiThreadUtil.java:32)02-14 00:17:19.916  1821  1965 E unknown:SoftAssertions:     at com.facebook.react.uimanager.UIManagerModule.resolveView(UIManagerModule.java:948)02-14 00:17:19.916  1821  1965 E unknown:SoftAssertions:     at com.mrousavy.camera.frameprocessor.FrameProcessorRuntimeManager.findCameraViewById(FrameProcessorRuntimeManager.kt:65)02-14 00:17:19.916  1821  1965 E unknown:SoftAssertions:     at com.facebook.jni.NativeRunnable.run(Native Method)02-14 00:17:19.916  1821  1965 E unknown:SoftAssertions:     at android.os.Handler.handleCallback(Handler.java:938)02-14 00:17:19.916  1821  1965 E unknown:SoftAssertions:     at android.os.Handler.dispatchMessage(Handler.java:99)02-14 00:17:19.916  1821  1965 E unknown:SoftAssertions:     at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:27)02-14 00:17:19.916  1821  1965 E unknown:SoftAssertions:     at android.os.Looper.loopOnce(Looper.java:210)02-14 00:17:19.916  1821  1965 E unknown:SoftAssertions:     at android.os.Looper.loop(Looper.java:299)02-14 00:17:19.916  1821  1965 E unknown:SoftAssertions:     at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:228)02-14 00:17:19.916  1821  1965 E unknown:SoftAssertions:     at java.lang.Thread.run(Thread.java:1012)02-14 00:17:19.927  1556 23090 E CameraService: onTorchStatusChangedLocked: cannot get torch status of camera 1: No such file or directory (-2)02-14 00:17:19.928  1556 23090 E CameraService: onTorchStatusChangedLocked: cannot get torch status of camera 4: No such file or directory (-2)02-14 00:17:19.929  1821  1880 W libc    : Access denied finding property "vendor.camera.aux.packagelist"02-14 00:17:19.929  1821  1880 W CameraManagerGlobal: ignore the torch status update of camera: 202-14 00:17:19.929  1821  1880 W libc    : Access denied finding property "vendor.camera.aux.packagelist"02-14 00:17:19.929  1556 23090 E CameraService: onTorchStatusChangedLocked: cannot get torch status of camera 7: No such file or directory (-2)02-14 00:17:19.929  1821  1880 W CameraManagerGlobal: ignore the torch status update of camera: 302-14 00:17:19.929  1053  1333 W ISPHVX  : HalOp:OPEN+ lId:0 cId:002-14 00:17:19.929  1821  1880 W libc    : Access denied finding property "vendor.camera.aux.packagelist"02-14 00:17:19.929  1821  1880 W CameraManagerGlobal: ignore the torch status update of camera: 5
it always logged this line. Access denied finding property "vendor.camera.aux.packagelist
and also this is one of build fingerprint error.
> 02-14 11:21:29.428 8542 8542 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
02-14 11:21:29.429 8542 8542 F DEBUG : Build fingerprint: 'google/sdk_gphone64_x86_64/emulator64_x86_64_arm64:12/S2B2.211203.006/8015633:userdebug/dev-keys'
02-14 11:21:29.441 8542 8542 F DEBUG : Revision: '0'
02-14 11:21:29.441 8542 8542 F DEBUG : ABI: 'x86_64'
02-14 11:21:29.441 8542 8542 F DEBUG : Timestamp: 2023-02-14 11:21:09.738929948+0530
02-14 11:21:29.442 8542 8542 F DEBUG : Process uptime: 0s
02-14 11:21:29.442 8542 8542 F DEBUG : Cmdline: com.abc
02-14 11:21:29.444 8542 8542 F DEBUG : pid: 7135, tid: 8498, name: pool-14-thread- >>> com.abc <<<
02-14 11:21:29.444 8542 8542 F DEBUG : uid: 10148
02-14 11:21:29.444 8542 8542 F DEBUG : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x3
02-14 11:21:29.444 8542 8542 F DEBUG : Cause: null pointer dereference
02-14 11:21:29.444 8542 8542 F DEBUG : rax 0000000000000004 rbx 0000000000000000 rcx 000072b2d616ba10 rdx 0000000000000001
02-14 11:21:29.445 8542 8542 F DEBUG : r8 000072b1516af678 r9 00000000000000ac r10 000072b1516aefa8 r11 000072b1a7d24ce8
02-14 11:21:29.445 8542 8542 F DEBUG : r12 0000000000000001 r13 000072b15aa68260 r14 000072b1a7dfe070 r15 ffff8d4e58201f8f
02-14 11:21:29.445 8542 8542 F DEBUG : rdi 000072b1516af678 rsi 0000000000000002
02-14 11:21:29.445 8542 8542 F DEBUG : rbp 0000000000000003 rsp 000072b1516af430 rip 000072b1bad3d280
02-14 11:21:29.445 8542 8542 F DEBUG : backtrace:
02-14 11:21:29.446 8542 8542 F DEBUG : #00 pc 00000000000bb280 /data/app/~~5LceSa2L9UH7l0rINZjSmw==/com.abc-RWaZWBcOMl5Z6_PJ-qvZtA==/base.apk!libc++_shared.so (BuildId: 0516d55561abea9d0a07bd4694edf00e363f9880)
02-14 11:21:29.446 8542 8542 F DEBUG : #01 pc 00000000000bb07b /data/app/~~5LceSa2L9UH7l0rINZjSmw==/com.abc-RWaZWBcOMl5Z6_PJ-qvZtA==/base.apk!libc++_shared.so (__gxx_personality_v0+123) (BuildId: 0516d55561abea9d0a07bd4694edf00e363f9880)
02-14 11:21:29.447 8542 8542 F DEBUG : #02 pc 0000000000231d44 /data/app/~~5LceSa2L9UH7l0rINZjSmw==/com.abc-RWaZWBcOMl5Z6_PJ-qvZtA==/base.apk!libreanimated.so (BuildId: 5cc729cfb31b745687777f760d09e5a1f3348457)
02-14 11:21:29.447 8542 8542 F DEBUG : #03 pc 0000000000231dde /data/app/~~5LceSa2L9UH7l0rINZjSmw==/com.abc-RWaZWBcOMl5Z6_PJ-qvZtA==/base.apk!libreanimated.so (BuildId: 5cc729cfb31b745687777f760d09e5a1f3348457)
02-14 11:21:29.447 8542 8542 F DEBUG : #04 pc 00000000001ac11c /data/app/~~5LceSa2L9UH7l0rINZjSmw==/com.abc-RWaZWBcOMl5Z6_PJ-qvZtA==/base.apk!libreanimated.so (facebook::jsi::Function::callWithThis(facebook::jsi::Runtime&, facebook::jsi::Object const&, facebook::jsi::Value const*, unsigned long) const+172) (BuildId: 5cc729cfb31b745687777f760d09e5a1f3348457)
02-14 11:21:29.447 8542 8542 F DEBUG : #05 pc 00000000001b97f5 /data/app/~~5LceSa2L9UH7l0rINZjSmw==/com.abc-RWaZWBcOMl5Z6_PJ-qvZtA==/base.apk!libreanimated.so (BuildId: 5cc729cfb31b745687777f760d09e5a1f3348457)
02-14 11:21:29.447 8542 8542 F DEBUG : #06 pc 00000000001b9686 /data/app/~~5LceSa2L9UH7l0rINZjSmw==/com.abc-RWaZWBcOMl5Z6_PJ-qvZtA==/base.apk!libreanimated.so (BuildId: 5cc729cfb31b745687777f760d09e5a1f3348457)
02-14 11:21:29.447 8542 8542 F DEBUG : #07 pc 00000000001b95d3 /data/app/~~5LceSa2L9UH7l0rINZjSmw==/com.abc-RWaZWBcOMl5Z6_PJ-qvZtA==/base.apk!libreanimated.so (BuildId: 5cc729cfb31b745687777f760d09e5a1f3348457)
02-14 11:21:29.448 8542 8542 F DEBUG : #08 pc 00000000001b9543 /data/app/~~5LceSa2L9UH7l0rINZjSmw==/com.abc-RWaZWBcOMl5Z6_PJ-qvZtA==/base.apk!libreanimated.so (BuildId: 5cc729cfb31b745687777f760d09e5a1f3348457)
02-14 11:21:29.448 8542 8542 F DEBUG : #09 pc 00000000001b8712 /data/app/~~5LceSa2L9UH7l0rINZjSmw==/com.abc-RWaZWBcOMl5Z6_PJ-qvZtA==/base.apk!libreanimated.so (BuildId: 5cc729cfb31b745687777f760d09e5a1f3348457)
02-14 11:21:29.448 8542 8542 F DEBUG : #10 pc 0000000000036feb /data/app/~~5LceSa2L9UH7l0rINZjSmw==/com.abc-RWaZWBcOMl5Z6_PJ-qvZtA==/base.apk!libjscexecutor.so (BuildId: 7179657edadbbd5b8c29994b3250e81c891dce63)
02-14 11:21:29.448 8542 8542 F DEBUG : #11 pc 00000000000cc1ca /data/app/~~5LceSa2L9UH7l0rINZjSmw==/com.abc-RWaZWBcOMl5Z6_PJ-qvZtA==/base.apk!libjsc.so (BuildId: 18b38a5ee0eae09182d82130076d6c39e59b7128)
02-14 11:21:29.448 8542 8542 F DEBUG : #12 pc 0000000000342f94 /data/app/~~5LceSa2L9UH7l0rINZjSmw==/com.abc-RWaZWBcOMl5Z6_PJ-qvZtA==/base.apk!libjsc.so (BuildId: 18b38a5ee0eae09182d82130076d6c39e59b7128)
02-14 11:21:29.449 8542 8542 F DEBUG : #13 pc 000000000032ca9f /data/app/~~5LceSa2L9UH7l0rINZjSmw==/com.abc-RWaZWBcOMl5Z6_PJ-qvZtA==/base.apk!libjsc.so (BuildId: 18b38a5ee0eae09182d82130076d6c39e59b7128)
The log displays another error Cause: null pointer dereference
Unfortunately didn't receive any reply. There is no solution for now to this issue for me.
Anyways i found the root cause, that is the app crashed when scanning the bar code. as well as i have used vision-camera-ocr also. I removed the vision-camera-ocr for a while, and that's it. app works fine with barcode.
seems the issue, app is not working with barcode scanner and ocr both.. the issue is something with ocr library. Thanks!

Fatal signal 11 (SIGSEGV), code 1, fault addr 0x0 in tid 16163 , how to fix this?

The issue I'm having is that, the application I'm developing is running till Lollipop version and now when I trying to run an application on Marshmallow my application is getting crash and the log I getting are as follow :
05-12 11:22:34.402 848-978/system_process I/ActivityManager: START u0
{act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER]
flg=0x10200000 cmp=com.aceroute.mobile.aceroute/.SplashII (has
extras)} from uid 10008 on display 0 05-12 11:22:34.443 16163-16163/?
I/art: Late-enabling -Xcheck:jni 0
5-12 11:22:34.449
848-860/system_process I/ActivityManager: Start proc
16163:com.aceroute.mobile.aceroute/u0a83 for activity
com.aceroute.mobile.aceroute/.SplashII 05-12 11:22:34.455 505-876/?
D/AudioFlinger: mixer(0xf1d80000) throttle end: throttle time(8) 05-12
11:22:34.482 16163-16168/? I/art: Debugger is no longer active 05-12
11:22:34.513 16163-16163/? A/libc: Fatal signal 11 (SIGSEGV), code 1,
fault addr 0x0 in tid 16163 (mobile.aceroute) 05-12 11:22:34.614
104-104/? A/DEBUG: *
05-12 11:22:34.614 104-104/? A/DEBUG: Build fingerprint: 'Android/vbox86p/vbox86p:6.0/MRA58K/buildbot01102000:userdebug/test-keys'
05-12 11:22:34.614 104-104/? A/DEBUG: Revision: '0' 05-12 11:22:34.614
104-104/? A/DEBUG: ABI: 'x86' 05-12 11:22:34.614 104-104/? A/DEBUG:
pid: 16163, tid: 16163, name: mobile.aceroute >>>
com.aceroute.mobile.aceroute <<< 05-12 11:22:34.614 104-104/? A/DEBUG:
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0 05-12
11:22:34.621 104-104/? A/DEBUG: eax 00000000 ebx f77469c0 ecx
00000000 edx 00000000 05-12 11:22:34.621 104-104/? A/DEBUG: esi
f3e19a80 edi 00000000 05-12 11:22:34.621 104-104/? A/DEBUG: xcs
00000023 xds 0000002b xes 0000002b xfs 00000007 xss 0000002b 05-12
11:22:34.621 104-104/? A/DEBUG: eip f732c442 ebp 12c6f280 esp
fff7f21c flags 00210283 05-12 11:22:34.629 104-104/? A/DEBUG: #00
pc 0001e442 /system/lib/libc.so (strlen+18) 05-12 11:22:34.630
104-104/? A/DEBUG: #01 pc 0001322b /system/lib/libutils.so
(android::String16::String16(char const)+29) 05-12 11:22:34.630
104-104/? A/DEBUG: #02 pc 0004172d /system/lib/libmedia_jni.so
05-12 11:22:34.630 104-104/? A/DEBUG: #03 pc 720eff30
/data/dalvik-cache/x86/system#framework#boot.oat (offset 0x1eb9000)
05-12 11:22:34.637 1116-1345/com.android.launcher3 E/Surface:
getSlotFromBufferLocked: unknown buffer: 0xdec7bcd0 05-12 11:22:34.742
104-104/? E/DEBUG: AM write failed: Broken pipe 05-12 11:22:34.742
848-865/system_process I/BootReceiver: Copying
/data/tombstones/tombstone_04 to DropBox (SYSTEM_TOMBSTONE) 05-12
11:22:34.757 848-16180/system_process W/ActivityManager: Force
finishing activity com.aceroute.mobile.aceroute/.SplashII 05-12
11:22:34.780 503-503/? I/Zygote: Process 16163 exited due to signal
(11) 05-12 11:22:34.783 826-826/? E/EGL_emulation: tid 826:
eglCreateSyncKHR(1215): error 0x3004 (EGL_BAD_ATTRIBUTE) 05-12
11:22:34.898 848-16180/system_process W/ActivityManager: Exception
thrown during pause
android.os.DeadObjectException
at android.os.BinderProxy.transactNative(Native Method)
at android.os.BinderProxy.transact(Binder.java:503)
at android.app.ApplicationThreadProxy.schedulePauseActivity(ApplicationThreadNative.java:727)
at com.android.server.am.ActivityStack.startPausingLocked(ActivityStack.java:867)
at com.android.server.am.ActivityStack.finishActivityLocked(ActivityStack.java:2907)
at com.android.server.am.ActivityStack.finishTopRunningActivityLocked(ActivityStack.java:2763)
at com.android.server.am.ActivityStackSupervisor.finishTopRunningActivityLocked(ActivityStackSupervisor.java:2755)
at com.android.server.am.ActivityManagerService.handleAppCrashLocked(ActivityManagerService.java:11971)
at com.android.server.am.ActivityManagerService.makeAppCrashingLocked(ActivityManagerService.java:11867)
at com.android.server.am.ActivityManagerService.crashApplication(ActivityManagerService.java:12556)
at com.android.server.am.ActivityManagerService.handleApplicationCrashInner(ActivityManagerService.java:12063)
at com.android.server.am.NativeCrashListener$NativeCrashReporter.run(NativeCrashListener.java:86)
05-12 11:22:34.941 848-1160/system_process I/ActivityManager: Process
com.aceroute.mobile.aceroute (pid 16163) has died 05-12 11:22:34.992
848-867/system_process W/WindowManager: Failed looking up window
java.lang.IllegalArgumentException: Requested window
android.view.ViewRootImpl$W#bbc7de0 does not exist
at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:8733)
at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:8724)
at com.android.server.wm.WindowManagerService.removeWindow(WindowManagerService.java:2697)
at com.android.server.wm.Session.remove(Session.java:187)
at android.view.ViewRootImpl.dispatchDetachedFromWindow(ViewRootImpl.java:3099)
at android.view.ViewRootImpl.doDie(ViewRootImpl.java:5606)
at android.view.ViewRootImpl$ViewRootHandler.handleMessage(ViewRootImpl.java:3409)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.os.HandlerThread.run(HandlerThread.java:61)
at com.android.server.ServiceThread.run(ServiceThread.java:46) 05-12
11:22:35.035 848-1719/system_process I/OpenGLRenderer: Initialized
EGL, version 1.4 05-12 11:22:35.041 1116-1345/com.android.launcher3
W/EGL_emulation: eglSurfaceAttrib not implemented 05-12 11:22:35.041
1116-1345/com.android.launcher3 W/OpenGLRenderer: Failed to set
EGL_SWAP_BEHAVIOR on surface 0xe06b6dc0, error=EGL_SUCCESS 05-12
11:22:35.103 848-1719/system_process W/EGL_emulation: eglSurfaceAttrib
not implemented 05-12 11:22:35.103 848-1719/system_process
W/OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface
0xd972c800, error=EGL_SUCCESS 05-12 11:22:37.435
848-1719/system_process E/Surface: getSlotFromBufferLocked: unknown
buffer: 0xf2cf5c60 05-12 11:22:37.437 848-1719/system_process
D/OpenGLRenderer: endAllStagingAnimators on 0xdeed2280
(RippleDrawable) with handle 0xdbb22df0 05-12 11:22:37.441
848-1160/system_process W/InputMethodManagerService: Window already
focused, ignoring focus gain of:
com.android.internal.view.IInputMethodClient$Stub$Proxy#c3b1c3c
attribute=null, token = android.os.BinderProxy#5926644 05-12
11:22:37.475 505-876/? D/AudioFlinger: mixer(0xf1d80000) throttle end:
throttle time(15) 05-12 11:22:37.689 848-867/system_process W/AppOps:
Finishing op nesting under-run: uid 1000 pkg android code 24 time=0
duration=0 nesting=0 05-12 11:23:02.221 100-100/? D/Genyd: Received
Set Clipboard 05-12 11:23:02.221 100-100/? D/Genymotion: Received Set
Some reference I have got are :
Android Fatal signal 11 (SIGSEGV) at 0x636f7d89 (code=1). How can it be tracked down?
Please have a look and help me.

Android - App runs on install, crashes when it is re-opened

When I first install the app onto my device, it works fine. Then, if I close it and re-open it, the app will crash with the below logcat message.
I don't think the first line regarding libwvm.so has anything to do with it, because that appears on install as well, but doesn't cause a crash.
I'm not sure what to do with this message, because as far as I can tell it doesn't point to anything in my code that I can try to fix.
I am following this tutorial to learn developing games with libGDX.
Any help appreciated. Thanks!
02-13 11:01:59.292 13140-13156/? E/WVMExtractor: Failed to open libwvm.so: dlopen failed: library "libwvm.so" not found
02-13 11:02:01.317 13140-13154/? A/libc: Fatal signal 11 (SIGSEGV), code 2, fault addr 0x76a96000 in tid 13154 (GLThread 823)
02-13 11:02:01.424 3254-3254/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
02-13 11:02:01.425 3254-3254/? A/DEBUG: Build fingerprint: 'google/bullhead/bullhead:6.0.1/MMB29Q/2480792:user/release-keys'
02-13 11:02:01.426 3254-3254/? A/DEBUG: Revision: 'rev_1.0'
02-13 11:02:01.426 3254-3254/? A/DEBUG: ABI: 'arm64'
02-13 11:02:01.427 3254-3254/? A/DEBUG: pid: 13140, tid: 13154, name: GLThread 823 >>> com.mypackage.name <<<
02-13 11:02:01.427 3254-3254/? A/DEBUG: signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0x76a96000
02-13 11:02:01.462 3254-3254/? A/DEBUG: x0 00000000be39c000 x1 0000000076a96000 x2 00000000000000a0 x3 0000000000000120
02-13 11:02:01.463 3254-3254/? A/DEBUG: x4 0000000000000000 x5 0000000000000000 x6 00000000be39c000 x7 0000000000000000
02-13 11:02:01.463 3254-3254/? A/DEBUG: x8 0000000000000000 x9 0000000000000000 x10 0000000000000120 x11 0000000000000000
02-13 11:02:01.463 3254-3254/? A/DEBUG: x12 0000000000000000 x13 0000007f8b9ad468 x14 0000007f8b9ad458 x15 0000007f8b9ad4b8
02-13 11:02:01.464 3254-3254/? A/DEBUG: x16 0000007f82329148 x17 0000007f900d4140 x18 0000000000000001 x19 0000000076a96120
02-13 11:02:01.464 3254-3254/? A/DEBUG: x20 00000000be39c000 x21 0000000000000001 x22 0000000000000120 x23 0000000000000120
02-13 11:02:01.464 3254-3254/? A/DEBUG: x24 0000000000000120 x25 0000000000000001 x26 0000000000000001 x27 0000000000000120
02-13 11:02:01.464 3254-3254/? A/DEBUG: x28 0000000076a96000 x29 0000007f8b9ace60 x30 0000007f81e57f74
02-13 11:02:01.464 3254-3254/? A/DEBUG: sp 0000007f8b9ace60 pc 0000007f900d4280 pstate 0000000020000000
02-13 11:02:01.468 3254-3254/? A/DEBUG: #00 pc 000000000001c280 /system/lib64/libc.so (memcpy+312)
02-13 11:02:01.469 3254-3254/? A/DEBUG: #01 pc 000000000025df70 /vendor/lib64/egl/libGLESv2_adreno.so (BltDevice::ExecFastCopyBlock(void*, void const*, unsigned int, unsigned int, unsigned int, unsigned int, BltRect const*, BltRect const*, int)+144)
02-13 11:02:01.650 3254-3254/? E/DEBUG: AM write failed: Broken pipe
02-13 11:02:01.675 4413-13173/? E/JavaBinder: !!! FAILED BINDER TRANSACTION !!! (parcel size = 112)
02-13 11:02:01.682 366-366/? E/lowmemorykiller: Error writing /proc/13140/oom_score_adj; errno=22
02-13 11:02:06.360 3321-3321/? E/QCALOG: [MessageQ] ProcessNewMessage: [LOWI-SERVER] unknown deliver target [OS-Agent]
02-13 11:02:32.344 6226-6226/? E/NetworkScheduler.SchedulerReceiver: Invalid parameter app
02-13 11:02:32.344 6226-6226/? E/NetworkScheduler.SchedulerReceiver: Invalid package name : Perhaps you didn't include a PendingIntent in the extras?
02-13 11:02:32.945 7266-7266/? E/clatd: plat_prefix/dns(ipv4only.arpa) status = 7/No address associated with hostname
I don't think this is a logcat filtering issue. I selected "no filter" in the logcat and the message was the same, except for the last few lines which went like this instead of as above:
02-13 12:02:54.902 3254-3254/? E/DEBUG: AM write failed: Broken pipe
02-13 12:02:54.923 4413-17149/? E/JavaBinder: !!! FAILED BINDER TRANSACTION !!! (parcel size = 112)
02-13 12:02:54.928 4413-4459/? E/JavaBinder: !!! FAILED BINDER TRANSACTION !!! (parcel size = 60)
02-13 12:03:22.680 4413-5547/? E/native: do suspend true
02-13 12:03:22.688 6053-6302/? E/NxpTml: _i2c_write() errno : 5
02-13 12:03:22.688 6053-6302/? E/NxpTml: PN54X - Error in I2C Write.....
02-13 12:03:22.689 6053-6304/? E/NxpHal: write error status = 0x1ff
02-13 12:03:22.689 6053-6267/? E/NxpHal: write_unlocked failed - PN54X Maybe in Standby Mode - Retry
Android Manifest:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.mypackage.name"
android:versionCode="1"
android:versionName="1.0" >
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<application
android:allowBackup="true"
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:theme="#style/GdxTheme" >
<activity
android:name="com.mypackage.name.AndroidLauncher"
android:label="#string/app_name"
android:screenOrientation="portrait"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
I think the most likely cause is that the OpenGL context is being released when the game goes into the background.
Lots of OpenGL based games use a class called glSurfaceView to manage the OpenGL surface, and by default, you get these sorts of crashes if you don't very carefully reinitialize all of your OpenGL objects after returning from suspend because they all get invalidated. In Ice Cream Sandwich, a function called setPreserveEGLContextOnPause was added to let you easily request that the OpenGL context is kept alive after your game goes into the background.
After some cursory research (so apologies if this is wrong) I believe libgdx uses it or something similar, but that it might be failing to work because you're not specifying a min or target sdk version in your manifest. Try adding a line like this to your manifest:
<uses-sdk android:targetSdkVersion="19" android:minSdkVersion="14" />
Documentation of the uses-sdk tag is here: http://developer.android.com/guide/topics/manifest/uses-sdk-element.html

Using front camera on Nexus 7 with Android 4.2.2 doesn't work?

I've got Android app where I shoot a picture with front camera. I've used approach described here: http://android-er.blogspot.sk/2010/12/add-overlay-on-camera-preview.html.
It works on Nexus S with Android 2.3.6 and it works on HTC One X with Android 4.1.1
It doesn't work on Asus Nexus 7 with latest Android 4.2.2 and I get this in logs when I try to take a picture:
04-03 22:06:56.181: I/MainSSCActivity(24745): camera take picture START
04-03 22:06:56.191: E/NvOmxCamera(24952): OMX_ERRORTYPE android::NvOmxCamera::getCameraStereoMode(NvxComponent*, NvOmxCameraUserStereoMode&): Error: invalid NVX mode 0.
04-03 22:06:56.191: E/NvOmxCamera(24952): OMX_ERRORTYPE android::NvOmxCamera::getCameraStereoModeAndCaptureInfo(NvxComponent*, NvOmxCameraUserStereoMode&, NVX_STEREOCAPTUREINFO&): getCameraStereoMode failed with 0x00000000
04-03 22:06:56.191: D/NvOsDebugPrintf(24952): NvMMLiteJPEGEncSetAttribute: Incorrect value 0 for stereo capture type
04-03 22:06:56.191: E/NvOmxCameraSettings(24952): OMX_ERRORTYPE android::programStereoInfo(OMX_HANDLETYPE, const NVX_STEREOCAPTUREINFO&, android::NvxWrappers*): pNvxWrappers->OMX_SetConfigIL failed with 0x80001005
04-03 22:06:56.351: I/MainSSCActivity(24745): camera take picture END
04-03 22:06:56.391: I/MainSSCActivity(24745): ***** surface destroyed
04-03 22:06:56.401: I/hwcomposer(130): Setting interactive mode: On
04-03 22:06:56.481: E/BufferQueue(130): [SurfaceView] queueBuffer: SurfaceTexture has been abandoned!
04-03 22:06:56.491: E/SurfaceTextureClient(24952): queueBuffer: error queuing buffer to SurfaceTexture, -19
04-03 22:06:56.491: E/NvOmxCamera(24952): Queue Buffer Failed
04-03 22:06:56.491: A/libc(24952): Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1), thread 25019 (Binder_3)
04-03 22:06:56.491: D/MainSSCActivity(24745): RAW bytes: null
04-03 22:06:56.491: D/MainSSCActivity(24745): shutter
04-03 22:06:56.591: I/DEBUG(128): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
04-03 22:06:56.591: I/DEBUG(128): Build fingerprint: 'google/nakasig/tilapia:4.2.2/JDQ39/573038:user/release-keys'
04-03 22:06:56.591: I/DEBUG(128): Revision: '0'
04-03 22:06:56.591: I/DEBUG(128): pid: 24952, tid: 25019, name: Binder_3 >>> /system/bin/mediaserver <<<
04-03 22:06:56.591: I/DEBUG(128): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr deadbaad
04-03 22:06:56.701: I/DEBUG(128): r0 00000027 r1 deadbaad r2 4022f258 r3 00000000
04-03 22:06:56.701: I/DEBUG(128): r4 00000000 r5 42de4d6c r6 415dc640 r7 411b7c58
04-03 22:06:56.701: I/DEBUG(128): r8 411cfe30 r9 415dc8c8 sl 00000000 fp 00000001
04-03 22:06:56.701: I/DEBUG(128): ip 40be2de4 sp 42de4d68 lr 402022f9 pc 401fe992 cpsr 60000030
04-03 22:06:56.701: I/DEBUG(128): d0 0000000000000000 d1 000000007fc00000
04-03 22:06:56.701: I/DEBUG(128): d2 3fb15bd900000000 d3 3f114ee7df28fa15
04-03 22:06:56.701: I/DEBUG(128): d4 0000000000000000 d5 3ff0000000000000
04-03 22:06:56.701: I/DEBUG(128): d6 0000000541000000 d7 7fc0000000000000
04-03 22:06:56.701: I/DEBUG(128): d8 0000000000000000 d9 0000000000000000
04-03 22:06:56.701: I/DEBUG(128): d10 0000000000000000 d11 0000000000000000
So far, I don't really have a clue what's wrong and how to fix it.
Can anybody help me? Thanks in advance.
OK, thanks to everybody pointing me to the fact, that surface is destroyed sooner as it should be. I had a specific situation with more views displayed on each other and by calling surfaceView.setVisibility((View.INVISIBLE) at wrong place, it was me actually destroying it. I have put it at the end, so, the way it works for me is following:
myPictureCallback_JPG = new PictureCallback() {
#Override
public void onPictureTaken(byte[] bytes, Camera arg1) {
Log.d(TAG, "bytes.length: " + bytes.length);
String image = Base64.encodeToString(bytes, Base64.NO_WRAP);
Log.i(TAG, "base64 image: " + image);
String url = "javascript:takePicture('" + image + "');";
wv.loadUrl(url);
camera.stopPreview();
camera.release();
camera = null;
surfaceView.setVisibility(View.INVISIBLE);
wv.setVisibility(View.VISIBLE);
viewControl.setVisibility(View.INVISIBLE);
}
};
Try doing this, it might work. Override the "onPause" method in your activity and call "stopPreview()". Looks like the surface gets destroyed even before you have called stopPreview(), hence the error "SurfaceTexture has been abandoned!".
#Override
public void onPause(Bundle savedInstanceState) {
super.onPause(savedInstanceState);
if(camera != null)
camera.stopPreview();
}
This happens when the Surface (buffers) that app passes to the Camera drivers get destroyed while the driver is still accessing them.
Let me know if that works. If that does not work, post the entire logcat from the start of the camera app to the point where you close the app.
This solved the issue in my case:
I was using mcamera.setOneShotPreviewCallback(mPreviewCallback); to get the Picture from the Camera.
I've changed that by mCamera.takePicture(null, null,mPictureCallback);
In mPictureCallBack I proccess the jpeg and in my case I take another picture restarting the preview between taken pictures (stopPreview and startPreview).
By the way, my Preview is based in which is provided in Samples Api 17 /android-sdks/samples/android-17/ApiDemos/src/com/example/android/apis/graphics/CameraPreview.

Live Streaming crashing on Honeycomb

Code:
path = "httplive://<host>/moviets/index.m3u8";
// Create a new media player and set the listeners
mMediaPlayer = new MediaPlayer();
mMediaPlayer.setDataSource(path);
mMediaPlayer.setOnErrorListener(this);
mMediaPlayer.setDisplay(holder);
mMediaPlayer.prepare(); // Crashes here. prepareAsync() does not help either
mMediaPlayer.setOnBufferingUpdateListener(this);
mMediaPlayer.setOnCompletionListener(this);
mMediaPlayer.setOnPreparedListener(this);
mMediaPlayer.setOnVideoSizeChangedListener(this);
mMediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC);
mMediaPlayer.start();
Stack trace:
ERROR/MediaPlayer(1349): error (100, 0)
ERROR/MediaPlayerDemo(1349): error: Prepare failed.: status=0x64
ERROR/MediaPlayerDemo(1349): java.io.IOException: Prepare failed.: status=0x64
ERROR/MediaPlayerDemo(1349): at android.media.MediaPlayer.prepare(Native Method)
ERROR/MediaPlayerDemo(1349): at com.example.Example.VideoPlayerActivity.playVideo(VideoPlayerActivity.java:81)
ERROR/MediaPlayerDemo(1349): at com.example.Example.VideoPlayerActivity.surfaceCreated(VideoPlayerActivity.java:138)
ERROR/MediaPlayerDemo(1349): at android.view.SurfaceView.updateWindow(SurfaceView.java:565)
ERROR/MediaPlayerDemo(1349): at android.view.SurfaceView.access$000(SurfaceView.java:84)
ERROR/MediaPlayerDemo(1349): at android.view.SurfaceView$3.onPreDraw(SurfaceView.java:173)
ERROR/MediaPlayerDemo(1349): at android.view.ViewTreeObserver.dispatchOnPreDraw(ViewTreeObserver.java:590)
ERROR/MediaPlayerDemo(1349): at android.view.ViewRoot.performTraversals(ViewRoot.java:1325)
ERROR/MediaPlayerDemo(1349): at android.view.ViewRoot.handleMessage(ViewRoot.java:1944)
ERROR/MediaPlayerDemo(1349): at android.os.Handler.dispatchMessage(Handler.java:99)
ERROR/MediaPlayerDemo(1349): at android.os.Looper.loop(Looper.java:126)
ERROR/MediaPlayerDemo(1349): at android.app.ActivityThread.main(ActivityThread.java:3997)
ERROR/MediaPlayerDemo(1349): at java.lang.reflect.Method.invokeNative(Native Method)
ERROR/MediaPlayerDemo(1349): at java.lang.reflect.Method.invoke(Method.java:491)
ERROR/MediaPlayerDemo(1349): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:841)
ERROR/MediaPlayerDemo(1349): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599)
ERROR/MediaPlayerDemo(1349): at dalvik.system.NativeStart.main(Native Method)
DEBUG/MediaPlayerDemo(1349): surfaceChanged called
Logcat:
DEBUG/MediaPlayerDemo(1349): surfaceCreated called
INFO/System.out(1349): the path is httplive://192.168.0.196/moviets/index.m3u8
INFO/StagefrightPlayer(1312): setDataSource('httplive://192.168.0.196/moviets/index.m3u8')
INFO/LiveSession(1312): onConnect 'http://192.168.0.196/moviets/index.m3u8'
INFO/NuHTTPDataSource(1312): connect to 192.168.0.196:80/moviets/index.m3u8 #0
INFO/NuHTTPDataSource(1312): connect to 192.168.0.196:80/moviets/index.m3u8 #0
INFO/NuHTTPDataSource(1312): connect to 192.168.0.196:80/moviets/file5.ts #0
INFO/avc_utils(1312): found AVC codec config (320 x 240, Baseline-profile level 3.0)
INFO/ESQueue(1312): found something resembling an AAC syncword at offset 1017
INFO/NuHTTPDataSource(1312): connect to 192.168.0.196:80/moviets/file6.ts #0
INFO/ESQueue(1312): found AAC codec config (48000 Hz, 7 channels)
INFO/ESQueue(1312): [ 06-26 17:37:17.397 1312:0x550 F/ESQueue ]
INFO/ESQueue(1312): frameworks/base/media/libstagefright/mpeg2ts/ESQueue.cpp:255 Should not be here.
INFO/DEBUG(31): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
INFO/DEBUG(31): Build fingerprint: 'generic/sdk/generic:3.0/HONEYCOMB/104254:eng/test-keys'
INFO/DEBUG(31): pid: 1312, tid: 1360 >>> /system/bin/mediaserver <<<
INFO/DEBUG(31): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr deadbaad
INFO/DEBUG(31): r0 deadbaad r1 0000000c r2 00000027 r3 00000000
INFO/DEBUG(31): r4 00000080 r5 aff46658 r6 00000007 r7 00000000
INFO/DEBUG(31): r8 a2b72589 r9 00012a6c 10 00100000 fp 00000001
INFO/DEBUG(31): ip ffffffff sp 4060f488 lr aff193e9 pc aff15f58 cpsr 00000030
INFO/NuHTTPDataSource(1312): connect to 192.168.0.196:80/moviets/file7.ts #0
INFO/DEBUG(31): #00 pc 00015f58 /system/lib/libc.so
INFO/DEBUG(31): #01 pc 00001466 /system/lib/liblog.so (__android_log_assert)
INFO/DEBUG(31): libc base address: aff00000
What stumps me is the line "found AAC codec config", while the video file contains mp3 encoding. Is that normal or my Android client is wrongly detecting mp3 as aac? FYI, other videos with aac encoding are playing okay on the client
Any clue?
This seems like a bug in Honeycomb emulator where Android wrongly detects mp3 stream as aac. FFmpeg, on the other hand, detects the mp3 stream correctly, as below
ffmpeg -i file6.ts
Stream #0.1[0x101]: Audio: mp3, 48000 Hz, 2 channels, s16, 192 kb/s
Unfortunately, Android thinks it is AAC
INFO/avc_utils(1312): found AVC codec config (320 x 240, Baseline-profile level 3.0)
INFO/ESQueue(1312): found something resembling an AAC syncword at offset 1017
INFO/NuHTTPDataSource(1312): connect to <ip>:<port>/moviets/file6.ts #0
INFO/ESQueue(1312): found AAC codec config (48000 Hz, 7 channels)
INFO/ESQueue(1312): [ 06-26 17:37:17.397 1312:0x550 F/ESQueue ]
INFO/ESQueue(1312): frameworks/base/media/libstagefright/mpeg2ts/ESQueue.cpp:255 \
Should not be here.
The workaround is to use AAC encoding. If you are using ffmpeg, use the -acodec libfaac option. This works for our project because we have the liberty of choosing the source video formats. This might not necessarily be your case though.

Categories

Resources