bytedeco / javacv

Java interface to OpenCV, FFmpeg, and more
Other
7.55k stars 1.58k forks source link

I tried to use FFmpegFrameGrabber , but by app crash with this log #1980

Closed januarydayfin closed 1 year ago

januarydayfin commented 1 year ago

build.gradle (:app) implementation group: 'org.bytedeco', name: 'javacv', version: '1.5.8' javacpp group: 'org.bytedeco', name: 'openblas-platform', version: '0.3.21-1.5.8' javacpp group: 'org.bytedeco', name: 'opencv-platform', version: '4.6.0-1.5.8' javacpp group: 'org.bytedeco', name: 'ffmpeg-platform', version: '5.1.2-1.5.8'

I have no idea. why this is crushing :(

2023-02-06 17:57:42.413 A/DEBUG: 2023-02-06 17:57:42.414 A/DEBUG: Build fingerprint: 'google/panther/panther:13/TQ1A.230105.001.A2/9325585:user/release-keys' 2023-02-06 17:57:42.414 A/DEBUG: Revision: 'MP1.0' 2023-02-06 17:57:42.414 A/DEBUG: ABI: 'arm64' 2023-02-06 17:57:42.414 A/DEBUG: Timestamp: 2023-02-06 17:57:42.204849936+0700 2023-02-06 17:57:42.414 A/DEBUG: Process uptime: 8s 2023-02-06 17:57:42.414 A/DEBUG: Cmdline: org.myApp.android.app.smart_home_services 2023-02-06 17:57:42.414 A/DEBUG: pid: 27103, tid: 27103, name: t_home_services >>> org.myApp.android.app.smart_home_services <<< 2023-02-06 17:57:42.414 A/DEBUG: uid: 10317 2023-02-06 17:57:42.414 A/DEBUG: tagged_addr_ctrl: 0000000000000001 (PR_TAGGED_ADDR_ENABLE) 2023-02-06 17:57:42.414 A/DEBUG: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0000000000000000 2023-02-06 17:57:42.414 A/DEBUG: Cause: null pointer dereference 2023-02-06 17:57:42.414 A/DEBUG: x0 0000000000000000 x1 0000006d0dd48f35 x2 0000000000000000 x3 4b6b0b3b29900398 2023-02-06 17:57:42.414 A/DEBUG: x4 0000000080000000 x5 1c675729670e1e1b x6 1b1e0ee72957671c x7 6e66644aff6e7271 2023-02-06 17:57:42.414 A/DEBUG: x8 0000000000000072 x9 00000000000000e1 x10 0101010101010101 x11 0000000000000003 2023-02-06 17:57:42.414 A/DEBUG: x12 00000000cce73011 x13 0000000000000000 x14 0000000000000000 x15 0000000000000000 2023-02-06 17:57:42.414 A/DEBUG: x16 0000006d0df29658 x17 0000006d1522ae50 x18 000000706f352000 x19 0000006d0dd1dd58 2023-02-06 17:57:42.414 A/DEBUG: x20 0000000000000000 x21 0000006d0dd19a70 x22 0000006d0dd1dd58 x23 0000006d0debf300 2023-02-06 17:57:42.414 A/DEBUG: x24 0000000000000001 x25 0000000000000000 x26 0000006d0dd1dd3b x27 000000706eb58000 2023-02-06 17:57:42.414 A/DEBUG: x28 0000000000000000 x29 0000007fe5dc562c 2023-02-06 17:57:42.414 A/DEBUG: lr 0000006d0d8e79a8 sp 0000007fe5dc5570 pc 0000006d1522ae58 pst 0000000080001000 2023-02-06 17:57:42.414 A/DEBUG: backtrace: 2023-02-06 17:57:42.414 A/DEBUG: #00 pc 0000000000017e58 /data/app/~~vGKjMaGlK4LReYVQPrcOvA==/org.myApp.android.app.smart_home_services-ZFE7b89uV_EUDwZ-ocdEtw==/lib/arm64/libavutil.so (av_strstart+8) 2023-02-06 17:57:42.414 A/DEBUG: #01 pc 000000000021e9a4 /data/app/~~vGKjMaGlK4LReYVQPrcOvA==/org.myApp.android.app.smart_home_services-ZFE7b89uV_EUDwZ-ocdEtw==/lib/arm64/libavformat.so 2023-02-06 17:57:42.414 A/DEBUG: #02 pc 000000000013189c /data/app/~~vGKjMaGlK4LReYVQPrcOvA==/org.myApp.android.app.smart_home_services-ZFE7b89uV_EUDwZ-ocdEtw==/lib/arm64/libavformat.so (av_probe_input_format3+344) 2023-02-06 17:57:42.414 A/DEBUG: #03 pc 0000000000131a7c /data/app/~~vGKjMaGlK4LReYVQPrcOvA==/org.myApp.android.app.smart_home_services-ZFE7b89uV_EUDwZ-ocdEtw==/lib/arm64/libavformat.so (av_probe_input_format2+16) 2023-02-06 17:57:42.414 A/DEBUG: #04 pc 0000000000115670 /data/app/~~vGKjMaGlK4LReYVQPrcOvA==/org.myApp.android.app.smart_home_services-ZFE7b89uV_EUDwZ-ocdEtw==/lib/arm64/libavformat.so (avformat_open_input+412) 2023-02-06 17:57:42.414 A/DEBUG: #05 pc 000000000007a118 /data/app/~~vGKjMaGlK4LReYVQPrcOvA==/org.myApp.android.app.smart_home_services-ZFE7b89uV_EUDwZ-ocdEtw==/lib/arm64/libjniavformat.so (Java_org_bytedeco_ffmpeg_global_avformat_avformat_1open_1input__Lorg_bytedeco_ffmpeg_avformat_AVFormatContext_2Ljava_lang_String_2Lorg_bytedeco_ffmpeg_avformat_AVInputFormat_2Lorg_bytedeco_ffmpeg_avutil_AVDictionary_2+344) 2023-02-06 17:57:42.414 A/DEBUG: #06 pc 000000000043e154 /apex/com.android.art/lib64/libart.so (art_quick_generic_jni_trampoline+148) (BuildId: 28c5aa8a2e8fc5df069f717d6e94f7fe) 2023-02-06 17:57:42.414 A/DEBUG: #07 pc 0000000000209398 /apex/com.android.art/lib64/libart.so (nterp_helper+152) (BuildId: 28c5aa8a2e8fc5df069f717d6e94f7fe) 2023-02-06 17:57:42.414 A/DEBUG: #08 pc 00000000002f83d8 [anon:dalvik-classes29.dex extracted in memory from /data/app/~~vGKjMaGlK4LReYVQPrcOvA==/org.myApp.android.app.smart_home_services-ZFE7b89uV_EUDwZ-ocdEtw==/base.apk!classes29.dex] (org.bytedeco.javacv.FFmpegFrameGrabber.startUnsafe+992) 2023-02-06 17:57:42.414 A/DEBUG: #09 pc 000000000020a254 /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: 28c5aa8a2e8fc5df069f717d6e94f7fe) 2023-02-06 17:57:42.414 A/DEBUG: #10 pc 00000000002f7fae [anon:dalvik-classes29.dex extracted in memory from /data/app/~~vGKjMaGlK4LReYVQPrcOvA==/org.myApp.android.app.smart_home_services-ZFE7b89uV_EUDwZ-ocdEtw==/base.apk!classes29.dex] (org.bytedeco.javacv.FFmpegFrameGrabber.start+6) 2023-02-06 17:57:42.414 A/DEBUG: #11 pc 000000000020a254 /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: 28c5aa8a2e8fc5df069f717d6e94f7fe) 2023-02-06 17:57:42.414 A/DEBUG: #12 pc 00000000002f7f8e [anon:dalvik-classes29.dex extracted in memory from /data/app/~~vGKjMaGlK4LReYVQPrcOvA==/org.myApp.android.app.smart_home_services-ZFE7b89uV_EUDwZ-ocdEtw==/base.apk!classes29.dex] (org.bytedeco.javacv.FFmpegFrameGrabber.start+2) 2023-02-06 17:57:42.414 A/DEBUG: #13 pc 000000000020a254 /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: 28c5aa8a2e8fc5df069f717d6e94f7fe) 2023-02-06 17:57:42.414 A/DEBUG: #14 pc 0000000000030fa6 [anon:dalvik-classes15.dex extracted in memory from /data/app/~~vGKjMaGlK4LReYVQPrcOvA==/org.myApp.android.app.smart_home_services-ZFE7b89uV_EUDwZ-ocdEtw==/base.apk!classes15.dex] (org.myApp.android.app.smart_home.utils.SingleFrameGrabber.getImageFromRtsp+14) 2023-02-06 17:57:42.414 A/DEBUG: #15 pc 000000000020a254 /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: 28c5aa8a2e8fc5df069f717d6e94f7fe) 2023-02-06 17:57:42.414 A/DEBUG: #16 pc 0000000000008458 [anon:dalvik-classes22.dex extracted in memory from /data/app/~~vGKjMaGlK4LReYVQPrcOvA==/org.myApp.android.app.smart_home_services-ZFE7b89uV_EUDwZ-ocdEtw==/base.apk!classes22.dex] (org.myApp.android.app.smart_home.ui.activity.camera.CamerasAdapter$ViewHolderCamera.loadSlPreview+36) 2023-02-06 17:57:42.414 A/DEBUG: #17 pc 000000000020a254 /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: 28c5aa8a2e8fc5df069f717d6e94f7fe) 2023-02-06 17:57:42.414 A/DEBUG: #18 pc 00000000000081f0 [anon:dalvik-classes22.dex extracted in memory from /data/app/~~vGKjMaGlK4LReYVQPrcOvA==/org.myApp.android.app.smart_home_services-ZFE7b89uV_EUDwZ-ocdEtw==/base.apk!classes22.dex] (org.myApp.android.app.smart_home.ui.activity.camera.CamerasAdapter$ViewHolderCamera.loadCameraPreview+20) 2023-02-06 17:57:42.414 A/DEBUG: #19 pc 000000000020a254 /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: 28c5aa8a2e8fc5df069f717d6e94f7fe) 2023-02-06 17:57:42.414 A/DEBUG: #20 pc 0000000000008526 [anon:dalvik-classes22.dex extracted in memory from /data/app/~~vGKjMaGlK4LReYVQPrcOvA==/org.myApp.android.app.smart_home_services-ZFE7b89uV_EUDwZ-ocdEtw==/base.apk!classes22.dex] (org.myApp.android.app.smart_home.ui.activity.camera.CamerasAdapter$ViewHolderCamera.setupView+22) 2023-02-06 17:57:42.414 A/DEBUG: #21 pc 000000000020a254 /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: 28c5aa8a2e8fc5df069f717d6e94f7fe) 2023-02-06 17:57:42.414 A/DEBUG: #22 pc 0000000000008714 [anon:dalvik-classes22.dex extracted in memory from /data/app/~~vGKjMaGlK4LReYVQPrcOvA==/org.myApp.android.app.smart_home_services-ZFE7b89uV_EUDwZ-ocdEtw==/base.apk!classes22.dex] (org.myApp.android.app.smart_home.ui.activity.camera.CamerasAdapter.onBindViewHolder+64) 2023-02-06 17:57:42.414 A/DEBUG: #23 pc 000000000020a254 /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: 28c5aa8a2e8fc5df069f717d6e94f7fe) 2023-02-06 17:57:42.414 A/DEBUG: #24 pc 0000000000349990 [anon:dalvik-classes.dex extracted in memory from /data/app/~~vGKjMaGlK4LReYVQPrcOvA==/org.myApp.android.app.smart_home_services-ZFE7b89uV_EUDwZ-ocdEtw==/base.apk] (androidx.recyclerview.widget.RecyclerView$Adapter.onBindViewHolder+0) 2023-02-06 17:57:42.414 A/DEBUG: #25 pc 000000000020a254 /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: 28c5aa8a2e8fc5df069f717d6e94f7fe) 2023-02-06 17:57:42.414 A/DEBUG: #26 pc 000000000034980c [anon:dalvik-classes.dex extracted in memory from /data/app/~~vGKjMaGlK4LReYVQPrcOvA==/org.myApp.android.app.smart_home_services-ZFE7b89uV_EUDwZ-ocdEtw==/base.apk] (androidx.recyclerview.widget.RecyclerView$Adapter.bindViewHolder+80) 2023-02-06 17:57:42.414 A/DEBUG: #27 pc 000000000020a254 /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: 28c5aa8a2e8fc5df069f717d6e94f7fe) 2023-02-06 17:57:42.414 A/DEBUG: #28 pc 000000000034d68a [anon:dalvik-classes.dex extracted in memory from /data/app/~~vGKjMaGlK4LReYVQPrcOvA==/org.myApp.android.app.smart_home_services-ZFE7b89uV_EUDwZ-ocdEtw==/base.apk] (androidx.recyclerview.widget.RecyclerView$Recycler.tryBindViewHolderByDeadline+86) 2023-02-06 17:57:42.414 A/DEBUG: #29 pc 000000000020a958 /apex/com.android.art/lib64/libart.so (nterp_helper+5720) (BuildId: 28c5aa8a2e8fc5df069f717d6e94f7fe) 2023-02-06 17:57:42.414 A/DEBUG: #30 pc 000000000034d528 [anon:dalvik-classes.dex extracted in memory from /data/app/~~vGKjMaGlK4LReYVQPrcOvA==/org.myApp.android.app.smart_home_services-ZFE7b89uV_EUDwZ-ocdEtw==/base.apk] (androidx.recyclerview.widget.RecyclerView$Recycler.tryGetViewHolderForPositionByDeadline+1040) 2023-02-06 17:57:42.414 A/DEBUG: #31 pc 000000000020a254 /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: 28c5aa8a2e8fc5df069f717d6e94f7fe) 2023-02-06 17:57:42.414 A/DEBUG: #32 pc 000000000034cd0e [anon:dalvik-classes.dex extracted in memory from /data/app/~~vGKjMaGlK4LReYVQPrcOvA==/org.myApp.android.app.smart_home_services-ZFE7b89uV_EUDwZ-ocdEtw==/base.apk] (androidx.recyclerview.widget.RecyclerView$Recycler.getViewForPosition+10) 2023-02-06 17:57:42.414 A/DEBUG: #33 pc 000000000020a254 /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: 28c5aa8a2e8fc5df069f717d6e94f7fe) 2023-02-06 17:57:42.414 A/DEBUG: #34 pc 000000000034ccea [anon:dalvik-classes.dex extracted in memory from /data/app/~~vGKjMaGlK4LReYVQPrcOvA==/org.myApp.android.app.smart_home_services-ZFE7b89uV_EUDwZ-ocdEtw==/base.apk] (androidx.recyclerview.widget.RecyclerView$Recycler.getViewForPosition+2) 2023-02-06 17:57:42.414 A/DEBUG: #35 pc 000000000020a254 /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: 28c5aa8a2e8fc5df069f717d6e94f7fe) 2023-02-06 17:57:42.414 A/DEBUG: #36 pc 00000000003436b4 [anon:dalvik-classes.dex extracted in memory from /data/app/~~vGKjMaGlK4LReYVQPrcOvA==/org.myApp.android.app.smart_home_services-ZFE7b89uV_EUDwZ-ocdEtw==/base.apk] (androidx.recyclerview.widget.LayoutState.next+4) 2023-02-06 17:57:42.414 A/DEBUG: #37 pc 000000000020a254 /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: 28c5aa8a2e8fc5df069f717d6e94f7fe) 2023-02-06 17:57:42.414 A/DEBUG: #38 pc 000000000035acd6 [anon:dalvik-classes.dex extracted in memory from /data/app/~~vGKjMaGlK4LReYVQPrcOvA==/org.myApp.android.app.smart_home_services-ZFE7b89uV_EUDwZ-ocdEtw==/base.apk] (androidx.recyclerview.widget.StaggeredGridLayoutManager.fill+202) 2023-02-06 17:57:42.414 A/DEBUG: #39 pc 000000000020a254 /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: 28c5aa8a2e8fc5df069f717d6e94f7fe) 2023-02-06 17:57:42.414 A/DEBUG: #40 pc 000000000035c2d8 [anon:dalvik-classes.dex extracted in memory from /data/app/~~vGKjMaGlK4LReYVQPrcOvA==/org.myApp.android.app.smart_home_services-ZFE7b89uV_EUDwZ-ocdEtw==/base.apk] (androidx.recyclerview.widget.StaggeredGridLayoutManager.onLayoutChildren+528) 2023-02-06 17:57:42.414 A/DEBUG: #41 pc 000000000020a254 /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: 28c5aa8a2e8fc5df069f717d6e94f7fe) 2023-02-06 17:57:42.414 A/DEBUG: #42 pc 000000000035c0ae [anon:dalvik-classes.dex extracted in memory from /data/app/~~vGKjMaGlK4LReYVQPrcOvA==/org.myApp.android.app.smart_home_services-ZFE7b89uV_EUDwZ-ocdEtw==/base.apk] (androidx.recyclerview.widget.StaggeredGridLayoutManager.onLayoutChildren+2) 2023-02-06 17:57:42.414 A/DEBUG: #43 pc 000000000020a254 /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: 28c5aa8a2e8fc5df069f717d6e94f7fe) 2023-02-06 17:57:42.414 A/DEBUG: #44 pc 0000000000353f04 [anon:dalvik-classes.dex extracted in memory from /data/app/~~vGKjMaGlK4LReYVQPrcOvA==/org.myApp.android.app.smart_home_services-ZFE7b89uV_EUDwZ-ocdEtw==/base.apk] (androidx.recyclerview.widget.RecyclerView.dispatchLayoutStep2+144) 2023-02-06 17:57:42.414 A/DEBUG: #45 pc 000000000020a254 /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: 28c5aa8a2e8fc5df069f717d6e94f7fe) 2023-02-06 17:57:42.414 A/DEBUG: #46 pc 0000000000353b82 [anon:dalvik-classes.dex extracted in memory from /data/app/~~vGKjMaGlK4LReYVQPrcOvA==/org.myApp.android.app.smart_home_services-ZFE7b89uV_EUDwZ-ocdEtw==/base.apk] (androidx.recyclerview.widget.RecyclerView.dispatchLayout+142) 2023-02-06 17:57:42.414 A/DEBUG: #47 pc 000000000020a254 /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: 28c5aa8a2e8fc5df069f717d6e94f7fe) 2023-02-06 17:57:42.414 A/DEBUG: #48 pc 00000000003552a6 [anon:dalvik-classes.dex extracted in memory from /data/app/~~vGKjMaGlK4LReYVQPrcOvA==/org.myApp.android.app.smart_home_services-ZFE7b89uV_EUDwZ-ocdEtw==/base.apk] (androidx.recyclerview.widget.RecyclerView.onLayout+10) 2023-02-06 17:57:42.414 A/DEBUG: #49 pc 000000000020a958 /apex/com.android.art/lib64/libart.so (nterp_helper+5720) (BuildId: 28c5aa8a2e8fc5df069f717d6e94f7fe) 2023-02-06 17:57:42.414 A/DEBUG: #50 pc 00000000003f311c /system/framework/framework.jar (android.view.View.layout+148) 2023-02-06 17:57:42.414 A/DEBUG: #51 pc 000000000020a254 /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: 28c5aa8a2e8fc5df069f717d6e94f7fe) 2023-02-06 17:57:42.414 A/DEBUG: #52 pc 00000000003cb726 /system/framework/framework.jar (android.view.ViewGroup.layout+42) 2023-02-06 17:57:42.414 A/DEBUG: #53 pc 000000000020a254 /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: 28c5aa8a2e8fc5df069f717d6e94f7fe) 2023-02-06 17:57:42.414 A/DEBUG: #54 pc 00000000003640f8 [anon:dalvik-classes.dex extracted in memory from /data/app/~~vGKjMaGlK4LReYVQPrcOvA==/org.myApp.android.app.smart_home_services-ZFE7b89uV_EUDwZ-ocdEtw==/base.apk] (androidx.swiperefreshlayout.widget.SwipeRefreshLayout.onLayout+128) 2023-02-06 17:57:42.414 A/DEBUG: #55 pc 000000000020a958 /apex/com.android.art/lib64/libart.so (nterp_helper+5720) (BuildId: 28c5aa8a2e8fc5df069f717d6e94f7fe) 2023-02-06 17:57:42.414 A/DEBUG: #56 pc 00000000003f311c /system/framework/framework.jar (android.view.View.layout+148) 2023-02-06 17:57:42.414 A/DEBUG: #57 pc 000000000020a254 /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: 28c5aa8a2e8fc5df069f717d6e94f7fe) 2023-02-06 17:57:42.414 A/DEBUG: #58 pc 00000000003cb726 /system/framework/framework.jar (android.view.ViewGroup.layout+42) 2023-02-06 17:57:42.414 A/DEBUG: #59 pc 000000000020a254 /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: 28c5aa8a2e8fc5df069f717d6e94f7fe) 2023-02-06 17:57:42.414 A/DEBUG: #60 pc 000000000026085a [anon:dalvik-classes.dex extracted in memory from /data/app/~~vGKjMaGlK4LReYVQPrcOvA==/org.myApp.android.app.smart_home_services-ZFE7b89uV_EUDwZ-ocdEtw==/base.apk] (androidx.coordinatorlayout.widget.CoordinatorLayout.layoutChild+286) 2023-02-06 17:57:42.414 A/DEBUG: #61 pc 000000000020a254 /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: 28c5aa8a2e8fc5df069f717d6e94f7fe) 2023-02-06 17:57:42.414 A/DEBUG: #62 pc 0000000000261190 [anon:dalvik-classes.dex extracted in memory from /data/app/~~vGKjMaGlK4LReYVQPrcOvA==/org.myApp.android.app.smart_home_services-ZFE7b89uV_EUDwZ-ocdEtw==/base.apk] (androidx.coordinatorlayout.widget.CoordinatorLayout.onLayoutChild+64) 2023-02-06 17:57:42.414 A/DEBUG: #63 pc 000000000020a254 /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: 28c5aa8a2e8fc5df069f717d6e94f7fe) 2023-02-06 17:57:42.414 A/DEBUG: #64 pc 0000000000261130 [anon:dalvik-classes.dex extracted in memory from /data/app/~~vGKjMaGlK4LReYVQPrcOvA==/org.myApp.android.app.smart_home_services-ZFE7b89uV_EUDwZ-ocdEtw==/base.apk] (androidx.coordinatorlayout.widget.CoordinatorLayout.onLayout+96) 2023-02-06 17:57:42.414 A/DEBUG: #65 pc 000000000020a958 /apex/com.android.art/lib64/libart.so (nterp_helper+5720) (BuildId: 28c5aa8a2e8fc5df069f717d6e94f7fe) 2023-02-06 17:57:42.414 A/DEBUG: #66 pc 00000000003f311c /system/framework/framework.jar (android.view.View.layout+148) 2023-02-06 17:57:42.414 A/DEBUG: #67 pc 000000000020a254 /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: 28c5aa8a2e8fc5df069f717d6e94f7fe) 2023-02-06 17:57:42.414 A/DEBUG: #68 pc 00000000003cb726 /system/framework/framework.jar (android.view.ViewGroup.layout+42) 2023-02-06 17:57:42.414 A/DEBUG: #69 pc 000000000020a254 /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: 28c5aa8a2e8fc5df069f717d6e94f7fe) 2023-02-06 17:57:42.414 A/DEBUG: #70 pc 00000000001d10b0 /system/framework/framework.jar (android.widget.LinearLayout.setChildFrame+8) 2023-02-06 17:57:42.414 A/DEBUG: #71 pc 000000000020a958 /apex/com.android.art/lib64/libart.so (nterp_helper+5720) (BuildId: 28c5aa8a2e8fc5df069f717d6e94f7fe) 2023-02-06 17:57:42.414 A/DEBUG: #72 pc 00000000001cf8b0 /system/framework/framework.jar (android.widget.LinearLayout.layoutVertical+368) 2023-02-06 17:57:42.414 A/DEBUG: #73 pc 000000000020a254 /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: 28c5aa8a2e8fc5df069f717d6e94f7fe) 2023-02-06 17:57:42.414 A/DEBUG: #74 pc 00000000001d0fa2 /system/framework/framework.jar (android.widget.LinearLayout.onLayout+10) 2023-02-06 17:57:42.414 A/DEBUG: #75 pc 000000000020a958 /apex/com.android.art/lib64/libart.so (nterp_helper+5720) (BuildId: 28c5aa8a2e8fc5df069f717d6e94f7fe) 2023-02-06 17:57:42.414 A/DEBUG: #76 pc 00000000003f311c /system/framework/framework.jar (android.view.View.layout+148) 2023-02-06 17:57:42.414 A/DEBUG: #77 pc 000000000020a254 /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: 28c5aa8a2e8fc5df069f717d6e94f7fe) 2023-02-06 17:57:42.414 A/DEBUG: #78 pc 00000000003cb726 /system/framework/framework.jar (android.view.ViewGroup.layout+42) 2023-02-06 17:57:42.414 A/DEBUG: #79 pc 000000000020a254 /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: 28c5aa8a2e8fc5df069f717d6e94f7fe) 2023-02-06 17:57:42.414 A/DEBUG: #80 pc 000000000024f754 [anon:dalvik-classes.dex extracted in memory from /data/app/~~vGKjMaGlK4LReYVQPrcOvA==/org.myApp.android.app.smart_home_services-ZFE7b89uV_EUDwZ-ocdEtw==/base.apk] (androidx.constraintlayout.widget.ConstraintLayout.onLayout+140) 2023-02-06 17:57:42.414 A/DEBUG: #81 pc 000000000020a958 /apex/com.android.art/lib64/libart.so (nterp_helper+5720) (BuildId: 28c5aa8a2e8fc5df069f717d6e94f7fe) 2023-02-06 17:57:42.414 A/DEBUG: #82 pc 00000000003f311c /system/framework/framework.jar (android.view.View.layout+148) 2023-02-06 17:57:42.414 A/DEBUG: #83 pc 000000000020a254 /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: 28c5aa8a2e8fc5df069f717d6e94f7fe) 2023-02-06 17:57:42.414 A/DEBUG: #84 pc 00000000003cb726 /system/framework/framework.jar (android.view.ViewGroup.layout+42) 2023-02-06 17:57:42.414 A/DEBUG: #85 pc 000000000020a254 /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: 28c5aa8a2e8fc5df069f717d6e94f7fe) 2023-02-06 17:57:42.414 A/DEBUG: #86 pc 00000000001c0c48 /system/framework/framework.jar (android.widget.FrameLayout.layoutChildren+320) 2023-02-06 17:57:42.414 A/DEBUG: #87 pc 000000000020a958 /apex/com.android.art/lib64/libart.so (nterp_helper+5720) (BuildId: 28c5aa8a2e8fc5df069f717d6e94f7fe) 2023-02-06 17:57:42.414 A/DEBUG: #88 pc 00000000001c0cc0 /system/framework/framework.jar (android.widget.FrameLayout.onLayout+12) 2023-02-06 17:57:42.414 A/DEBUG: #89 pc 000000000020a958 /apex/com.android.art/lib64/libart.so (nterp_helper+5720) (BuildId: 28c5aa8a2e8fc5df069f717d6e94f7fe) 2023-02-06 17:57:42.414 A/DEBUG: #90 pc 00000000003f311c /system/framework/framework.jar (android.view.View.layout+148) 2023-02-06 17:57:42.414 A/DEBUG: #91 pc 000000000020a254 /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: 28c5aa8a2e8fc5df069f717d6e94f7fe) 2023-02-06 17:57:42.414 A/DEBUG: #92 pc 00000000003cb726 /system/framework/framework.jar (android.view.ViewGroup.layout+42) 2023-02-06 17:57:42.414 A/DEBUG: #93 pc 000000000020a254 /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: 28c5aa8a2e8fc5df069f717d6e94f7fe) 2023-02-06 17:57:42.414 A/DEBUG: #94 pc 00000000001d10b0 /system/framework/framework.jar (android.widget.LinearLayout.setChildFrame+8) 2023-02-06 17:57:42.414 A/DEBUG: #95 pc 000000000020a958 /apex/com.android.art/lib64/libart.so (nterp_helper+5720) (BuildId: 28c5aa8a2e8fc5df069f717d6e94f7fe) 2023-02-06 17:57:42.414 A/DEBUG: #96 pc 00000000001cf8b0 /system/framework/framework.jar (android.widget.LinearLayout.layoutVertical+368) 2023-02-06 17:57:42.414 A/DEBUG: #97 pc 000000000020a254 /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: 28c5aa8a2e8fc5df069f717d6e94f7fe) 2023-02-06 17:57:42.414 A/DEBUG: #98 pc 00000000001d0fa2 /system/framework/framework.jar (android.widget.LinearLayout.onLayout+10) 2023-02-06 17:57:42.414 A/DEBUG: #99 pc 000000000020a958 /apex/com.android.art/lib64/libart.so (nterp_helper+5720) (BuildId: 28c5aa8a2e8fc5df069f717d6e94f7fe) 2023-02-06 17:57:42.414 A/DEBUG: #100 pc 00000000003f311c /system/framework/framework.jar (android.view.View.layout+148) 2023-02-06 17:57:42.414 A/DEBUG: #101 pc 000000000020a254 /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: 28c5aa8a2e8fc5df069f717d6e94f7fe) 2023-02-06 17:57:42.414 A/DEBUG: #102 pc 00000000003cb726 /system/framework/framework.jar (android.view.ViewGroup.layout+42) 2023-02-06 17:57:42.414 A/DEBUG: #103 pc 000000000020a254 /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: 28c5aa8a2e8fc5df069f717d6e94f7fe) 2023-02-06 17:57:42.414 A/DEBUG: #104 pc 00000000001c0c48 /system/framework/framework.jar (android.widget.FrameLayout.layoutChildren+320) 2023-02-06 17:57:42.414 A/DEBUG: #105 pc 000000000020a958 /apex/com.android.art/lib64/libart.so (nterp_helper+5720) (BuildId: 28c5aa8a2e8fc5df069f717d6e94f7fe) 2023-02-06 17:57:42.414 A/DEBUG: #106 pc 00000000001c0cc0 /system/framework/framework.jar (android.widget.FrameLayout.onLayout+12) 2023-02-06 17:57:42.414 A/DEBUG: #107 pc 000000000020a958 /apex/com.android.art/lib64/libart.so (nterp_helper+5720) (BuildId: 28c5aa8a2e8fc5df069f717d6e94f7fe) 2023-02-06 17:57:42.414 A/DEBUG: #108 pc 00000000003f311c /system/framework/framework.jar (android.view.View.layout+148) 2023-02-06 17:57:42.414 A/DEBUG: #109 pc 000000000020a254 /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: 28c5aa8a2e8fc5df069f717d6e94f7fe) 2023-02-06 17:57:42.414 A/DEBUG: #110 pc 00000000003cb726 /system/framework/framework.jar (android.view.ViewGroup.layout+42) 2023-02-06 17:57:42.414 A/DEBUG: #111 pc 000000000020a254 /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: 28c5aa8a2e8fc5df069f717d6e94f7fe) 2023-02-06 17:57:42.414 A/DEBUG: #112 pc 00000000001d10b0 /system/framework/framework.jar (android.widget.LinearLayout.setChildFrame+8) 2023-02-06 17:57:42.414 A/DEBUG: #113 pc 000000000020a958 /apex/com.android.art/lib64/libart.so (nterp_helper+5720) (BuildId: 28c5aa8a2e8fc5df069f717d6e94f7fe) 2023-02-06 17:57:42.414 A/DEBUG: #114 pc 00000000001cf8b0 /system/framework/framework.jar (android.widget.LinearLayout.layoutVertical+368) 2023-02-06 17:57:42.414 A/DEBUG: #115 pc 000000000020a254 /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: 28c5aa8a2e8fc5df069f717d6e94f7fe) 2023-02-06 17:57:42.414 A/DEBUG: #116 pc 00000000001d0fa2 /system/framework/framework.jar (android.widget.LinearLayout.onLayout+10) 2023-02-06 17:57:42.414 A/DEBUG: #117 pc 000000000020a958 /apex/com.android.art/lib64/libart.so (nterp_helper+5720) (BuildId: 28c5aa8a2e8fc5df069f717d6e94f7fe) 2023-02-06 17:57:42.414 A/DEBUG: #118 pc 00000000003f311c /system/framework/framework.jar (android.view.View.layout+148) 2023-02-06 17:57:42.414 A/DEBUG: #119 pc 000000000020a254 /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: 28c5aa8a2e8fc5df069f717d6e94f7fe) 2023-02-06 17:57:42.414 A/DEBUG: #120 pc 00000000003cb726 /system/framework/framework.jar (android.view.ViewGroup.layout+42) 2023-02-06 17:57:42.414 A/DEBUG: #121 pc 000000000020a254 /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: 28c5aa8a2e8fc5df069f717d6e94f7fe) 2023-02-06 17:57:42.414 A/DEBUG: #122 pc 00000000001c0c48 /system/framework/framework.jar (android.widget.FrameLayout.layoutChildren+320) 2023-02-06 17:57:42.414 A/DEBUG: #123 pc 000000000020a958 /apex/com.android.art/lib64/libart.so (nterp_helper+5720) (BuildId: 28c5aa8a2e8fc5df069f717d6e94f7fe) 2023-02-06 17:57:42.414 A/DEBUG: #124 pc 00000000001c0cc0 /system/framework/framework.jar (android.widget.FrameLayout.onLayout+12) 2023-02-06 17:57:42.414 A/DEBUG: #125 pc 000000000020a958 /apex/com.android.art/lib64/libart.so (nterp_helper+5720) (BuildId: 28c5aa8a2e8fc5df069f717d6e94f7fe) 2023-02-06 17:57:42.414 A/DEBUG: #126 pc 0000000000409930 /system/framework/framework.jar (com.android.internal.policy.DecorView.onLayout+0) 2023-02-06 17:57:42.414 A/DEBUG: #127 pc 000000000020a958 /apex/com.android.art/lib64/libart.so (nterp_helper+5720) (BuildId: 28c5aa8a2e8fc5df069f717d6e94f7fe) 2023-02-06 17:57:42.414 A/DEBUG: #128 pc 00000000003f311c /system/framework/framework.jar (android.view.View.layout+148) 2023-02-06 17:57:42.414 A/DEBUG: #129 pc 000000000020a254 /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: 28c5aa8a2e8fc5df069f717d6e94f7fe) 2023-02-06 17:57:42.414 A/DEBUG: #130 pc 00000000003cb726 /system/framework/framework.jar (android.view.ViewGroup.layout+42) 2023-02-06 17:57:42.414 A/DEBUG: #131 pc 000000000020a254 /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: 28c5aa8a2e8fc5df069f717d6e94f7fe) 2023-02-06 17:57:42.414 A/DEBUG: #132 pc 00000000003dc05a /system/framework/framework.jar (android.view.ViewRootImpl.performLayout+54) 2023-02-06 17:57:42.414 A/DEBUG: #133 pc 000000000202a264 /memfd:jit-cache (deleted) (android.view.ViewRootImpl.performTraversals+16804) 2023-02-06 17:57:42.414 A/DEBUG: #134 pc 000000000020a2b0 /apex/com.android.art/lib64/libart.so (nterp_helper+4016) (BuildId: 28c5aa8a2e8fc5df069f717d6e94f7fe) 2023-02-06 17:57:42.414 A/DEBUG: #135 pc 00000000003d9892 /system/framework/framework.jar (android.view.ViewRootImpl.doTraversal+62) 2023-02-06 17:57:42.414 A/DEBUG: #136 pc 000000000020a254 /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: 28c5aa8a2e8fc5df069f717d6e94f7fe) 2023-02-06 17:57:42.414 A/DEBUG: #137 pc 00000000003d2fe8 /system/framework/framework.jar (android.view.ViewRootImpl$TraversalRunnable.run+4) 2023-02-06 17:57:42.414 A/DEBUG: #138 pc 000000000020b074 /apex/com.android.art/lib64/libart.so (nterp_helper+7540) (BuildId: 28c5aa8a2e8fc5df069f717d6e94f7fe) 2023-02-06 17:57:42.414 A/DEBUG: #139 pc 0000000000374e94 /system/framework/framework.jar (android.view.Choreographer$CallbackRecord.run+40) 2023-02-06 17:57:42.414 A/DEBUG: #140 pc 000000000020a254 /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: 28c5aa8a2e8fc5df069f717d6e94f7fe) 2023-02-06 17:57:42.414 A/DEBUG: #141 pc 0000000000374e54 /system/framework/framework.jar (android.view.Choreographer$CallbackRecord.run+40) 2023-02-06 17:57:42.414 A/DEBUG: #142 pc 000000000020a254 /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: 28c5aa8a2e8fc5df069f717d6e94f7fe) 2023-02-06 17:57:42.414 A/DEBUG: #143 pc 0000000000375888 /system/framework/framework.jar (android.view.Choreographer.doCallbacks+164) 2023-02-06 17:57:42.414 A/DEBUG: #144 pc 000000000020a254 /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: 28c5aa8a2e8fc5df069f717d6e94f7fe) 2023-02-06 17:57:42.414 A/DEBUG: #145 pc 0000000000375c0e /system/framework/framework.jar (android.view.Choreographer.doFrame+706) 2023-02-06 17:57:42.414 A/DEBUG: #146 pc 000000000020a254 /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: 28c5aa8a2e8fc5df069f717d6e94f7fe) 2023-02-06 17:57:42.414 A/DEBUG: #147 pc 00000000003751c2 /system/framework/framework.jar (android.view.Choreographer$FrameDisplayEventReceiver.run+22) 2023-02-06 17:57:42.414 A/DEBUG: #148 pc 000000000020b074 /apex/com.android.art/lib64/libart.so (nterp_helper+7540) (BuildId: 28c5aa8a2e8fc5df069f717d6e94f7fe) 2023-02-06 17:57:42.414 A/DEBUG: #149 pc 00000000004758fc /system/framework/framework.jar (android.os.Handler.handleCallback+4) 2023-02-06 17:57:42.414 A/DEBUG: #150 pc 0000000000209334 /apex/com.android.art/lib64/libart.so (nterp_helper+52) (BuildId: 28c5aa8a2e8fc5df069f717d6e94f7fe) 2023-02-06 17:57:42.414 A/DEBUG: #151 pc 0000000000475750 /system/framework/framework.jar (android.os.Handler.dispatchMessage+8) 2023-02-06 17:57:42.414 A/DEBUG: #152 pc 000000000020a254 /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: 28c5aa8a2e8fc5df069f717d6e94f7fe) 2023-02-06 17:57:42.414 A/DEBUG: #153 pc 0000000000497dc6 /system/framework/framework.jar (android.os.Looper.loopOnce+346) 2023-02-06 17:57:42.414 A/DEBUG: #154 pc 0000000000209334 /apex/com.android.art/lib64/libart.so (nterp_helper+52) (BuildId: 28c5aa8a2e8fc5df069f717d6e94f7fe) 2023-02-06 17:57:42.414 A/DEBUG: #155 pc 0000000000498466 /system/framework/framework.jar (android.os.Looper.loop+162) 2023-02-06 17:57:42.414 A/DEBUG: #156 pc 0000000000209334 /apex/com.android.art/lib64/libart.so (nterp_helper+52) (BuildId: 28c5aa8a2e8fc5df069f717d6e94f7fe) 2023-02-06 17:57:42.414 A/DEBUG: #157 pc 00000000001bbd4a /system/framework/framework.jar (android.app.ActivityThread.main+202) 2023-02-06 17:57:42.414 A/DEBUG: #158 pc 0000000000434a00 /apex/com.android.art/lib64/libart.so (art_quick_invoke_static_stub+576) (BuildId: 28c5aa8a2e8fc5df069f717d6e94f7fe) 2023-02-06 17:57:42.414 A/DEBUG: #159 pc 0000000000467134 /apex/com.android.art/lib64/libart.so (_jobject art::InvokeMethod<(art::PointerSize)8>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject, _jobject, _jobject, unsigned long)+1960) (BuildId: 28c5aa8a2e8fc5df069f717d6e94f7fe) 2023-02-06 17:57:42.414 A/DEBUG: #160 pc 0000000000466964 /apex/com.android.art/lib64/libart.so (art::Method_invoke(_JNIEnv, _jobject, _jobject, _jobjectArray) (.uniq.165753521025965369065708152063621506277)+48) (BuildId: 28c5aa8a2e8fc5df069f717d6e94f7fe) 2023-02-06 17:57:42.414 A/DEBUG: #161 pc 00000000002fa148 /data/misc/apexdata/com.android.art/dalvik-cache/arm64/boot.oat (art_jni_trampoline+120) 2023-02-06 17:57:42.414 A/DEBUG: #162 pc 000000000020a2b0 /apex/com.android.art/lib64/libart.so (nterp_helper+4016) (BuildId: 28c5aa8a2e8fc5df069f717d6e94f7fe) 2023-02-06 17:57:42.414 A/DEBUG: #163 pc 00000000003fd04e /system/framework/framework.jar (com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run+22) 2023-02-06 17:57:42.414 A/DEBUG: #164 pc 0000000000e29dc8 /data/misc/apexdata/com.android.art/dalvik-cache/arm64/boot.oat (com.android.internal.os.ZygoteInit.main+3464) 2023-02-06 17:57:42.414 A/DEBUG: #165 pc 0000000000434a00 /apex/com.android.art/lib64/libart.so (art_quick_invoke_static_stub+576) (BuildId: 28c5aa8a2e8fc5df069f717d6e94f7fe) 2023-02-06 17:57:42.414 A/DEBUG: #166 pc 000000000057df48 /apex/com.android.art/lib64/libart.so (art::JValue art::InvokeWithVarArgs<_jmethodID>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject, _jmethodID*, std::va_list)+900) (BuildId: 28c5aa8a2e8fc5df069f717d6e94f7fe) 2023-02-06 17:57:42.414 A/DEBUG: #167 pc 00000000005f194c /apex/com.android.art/lib64/libart.so (art::JNI::CallStaticVoidMethodV(_JNIEnv, _jclass, _jmethodID, std::__va_list)+160) (BuildId: 28c5aa8a2e8fc5df069f717d6e94f7fe) 2023-02-06 17:57:42.414 A/DEBUG: #168 pc 00000000000bcce8 /system/lib64/libandroid_runtime.so (_JNIEnv::CallStaticVoidMethod(_jclass, _jmethodID, ...)+120) (BuildId: a92d69e6ea7149e795e11a26b81e3553) 2023-02-06 17:57:42.414 A/DEBUG: #169 pc 00000000000c8bf8 /system/lib64/libandroid_runtime.so (android::AndroidRuntime::start(char const, android::Vector const&, bool)+840) (BuildId: a92d69e6ea7149e795e11a26b81e3553) 2023-02-06 17:57:42.414 A/DEBUG: #170 pc 0000000000002560 /system/bin/app_process64 (main+1280) (BuildId: 6f97a590777bd06f31784c7272763a35) 2023-02-06 17:57:42.414 A/DEBUG: #171 pc 000000000004b600 /apex/com.android.runtime/lib64/bionic/libc.so (__libc_init+96) (BuildId: dc4001c2ef2dfc23467040797a96840c)

saudet commented 1 year ago

2023-02-06 17:57:42.414 A/DEBUG: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0000000000000000 2023-02-06 17:57:42.414 A/DEBUG: Cause: null pointer dereference

There's something that isn't getting initialized somewhere. If you're trying to use multiple threads, don't do that. Try to use only a single thread, that should help.

januarydayfin commented 1 year ago

2023-02-06 17:57:42.414 A/DEBUG: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0000000000000000 2023-02-06 17:57:42.414 A/DEBUG: Cause: null pointer dereference

There's something that isn't getting initialized somewhere. If you're trying to use multiple threads, don't do that. Try to use only a single thread, that should help.

Tried to use it in single thread, by using Handler(getMainLooper)


public class SingleFrameGrabber {
    private FFmpegFrameGrabber grabber;
    private Frame frame;
    private AndroidFrameConverter converter;

    private Bitmap bmp;

    public SingleFrameGrabber() {
        converter = new AndroidFrameConverter();
    }

    public Runnable grabFromRtsp(String rtsp) {
        return () -> {
            try {
                grabber = new FFmpegFrameGrabber(rtsp);
                grabber.start();
                frame = grabber.grabImage();
                grabber.stop();
                grabber.release();
            } catch (FFmpegFrameGrabber.Exception e) {

            }

            bmp = converter.convert(frame);

        };
    }
}

Call by

private void loadPreview(CameraCommon camera) {
            SingleFrameGrabber grabber = new SingleFrameGrabber();
            Handler handler = new Handler(context().getMainLooper());
            handler.postDelayed(grabber.grabFromRtsp(camera.getRtspStream()),0);
        }

So we have now other stacktrace)

G: Build fingerprint: 'Xiaomi/dipper/dipper:8.1.0/OPM1.171019.011/V9.5.5.0.OEAMIFA:user/release-keys'
        2023-02-07 10:05:31.406 A/DEBUG: Revision: '0'
        2023-02-07 10:05:31.406 A/DEBUG: ABI: 'arm64'
        2023-02-07 10:05:31.406 A/DEBUG: Timestamp: 2023-02-07 10:05:30.894388639+0700
        2023-02-07 10:05:31.406 A/DEBUG: Process uptime: 4s
        2023-02-07 10:05:31.406 A/DEBUG: Cmdline: org.myApp.android.app.smart_home_services
        2023-02-07 10:05:31.406 A/DEBUG: pid: 15614, tid: 15614, name: t_home_services  >>> org.myApp.android.app.smart_home_services <<<
2023-02-07 10:05:31.406 A/DEBUG: uid: 10195
        2023-02-07 10:05:31.406 A/DEBUG: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0000000000000000
        2023-02-07 10:05:31.406 A/DEBUG: Cause: null pointer dereference
        2023-02-07 10:05:31.406 A/DEBUG:     x0  0000000000000000  x1  00000070655d6f35  x2  0000000000000000  x3  4b6b0b3b29900398
        2023-02-07 10:05:31.406 A/DEBUG:     x4  0000000080000000  x5  1c675729670e1e1b  x6  1b1e0ee72957671c  x7  6e66644aff6e7271
        2023-02-07 10:05:31.406 A/DEBUG:     x8  0000000000000072  x9  00000000000000e1  x10 0101010101010101  x11 0000000000000003
        2023-02-07 10:05:31.406 A/DEBUG:     x12 0000000029804ab1  x13 0000000000000000  x14 0000000000000000  x15 0000000000000000
        2023-02-07 10:05:31.406 A/DEBUG:     x16 00000070657b7658  x17 000000706b019e50  x18 00000073cfba4000  x19 00000070655abd58
        2023-02-07 10:05:31.406 A/DEBUG:     x20 0000000000000000  x21 00000070655a7a70  x22 00000070655abd58  x23 000000706574d300
        2023-02-07 10:05:31.406 A/DEBUG:     x24 0000000000000001  x25 0000000000000000  x26 00000070655abd3b  x27 00000073cf060000
        2023-02-07 10:05:31.406 A/DEBUG:     x28 0000000000000000  x29 0000007ff13d7cfc
        2023-02-07 10:05:31.406 A/DEBUG:     lr  00000070651759a8  sp  0000007ff13d7c40  pc  000000706b019e58  pst 0000000080000000
        2023-02-07 10:05:31.406 A/DEBUG: backtrace:
        2023-02-07 10:05:31.406 A/DEBUG:       #00 pc 0000000000017e58  /data/app/~~B5NPaTc7PXdhO_HHNtWc-A==/org.myApp.android.app.smart_home_services-EQlfsO8_afHNavdhu9d-LA==/lib/arm64/libavutil.so (av_strstart+8)
        2023-02-07 10:05:31.406 A/DEBUG:       #01 pc 000000000021e9a4  /data/app/~~B5NPaTc7PXdhO_HHNtWc-A==/org.myApp.android.app.smart_home_services-EQlfsO8_afHNavdhu9d-LA==/lib/arm64/libavformat.so
        2023-02-07 10:05:31.406 A/DEBUG:       #02 pc 000000000013189c  /data/app/~~B5NPaTc7PXdhO_HHNtWc-A==/org.myApp.android.app.smart_home_services-EQlfsO8_afHNavdhu9d-LA==/lib/arm64/libavformat.so (av_probe_input_format3+344)
        2023-02-07 10:05:31.406 A/DEBUG:       #03 pc 0000000000131a7c  /data/app/~~B5NPaTc7PXdhO_HHNtWc-A==/org.myApp.android.app.smart_home_services-EQlfsO8_afHNavdhu9d-LA==/lib/arm64/libavformat.so (av_probe_input_format2+16)
        2023-02-07 10:05:31.406 A/DEBUG:       #04 pc 0000000000115670  /data/app/~~B5NPaTc7PXdhO_HHNtWc-A==/org.myApp.android.app.smart_home_services-EQlfsO8_afHNavdhu9d-LA==/lib/arm64/libavformat.so (avformat_open_input+412)
        2023-02-07 10:05:31.406 A/DEBUG:       #05 pc 000000000007a118  /data/app/~~B5NPaTc7PXdhO_HHNtWc-A==/org.myApp.android.app.smart_home_services-EQlfsO8_afHNavdhu9d-LA==/lib/arm64/libjniavformat.so (Java_org_bytedeco_ffmpeg_global_avformat_avformat_1open_1input__Lorg_bytedeco_ffmpeg_avformat_AVFormatContext_2Ljava_lang_String_2Lorg_bytedeco_ffmpeg_avformat_AVInputFormat_2Lorg_bytedeco_ffmpeg_avutil_AVDictionary_2+344)
        2023-02-07 10:05:31.406 A/DEBUG:       #06 pc 000000000021a354  /apex/com.android.art/lib64/libart.so (art_quick_generic_jni_trampoline+148) (BuildId: 130fdd18a91169da4ffb397268eb5c87)
        2023-02-07 10:05:31.406 A/DEBUG:       #07 pc 0000000000209398  /apex/com.android.art/lib64/libart.so (nterp_helper+152) (BuildId: 130fdd18a91169da4ffb397268eb5c87)
        2023-02-07 10:05:31.406 A/DEBUG:       #08 pc 00000000019be0bc  /data/app/~~B5NPaTc7PXdhO_HHNtWc-A==/org.myApp.android.app.smart_home_services-EQlfsO8_afHNavdhu9d-LA==/oat/arm64/base.vdex (org.bytedeco.javacv.FFmpegFrameGrabber.startUnsafe+992)
        2023-02-07 10:05:31.406 A/DEBUG:       #09 pc 000000000020a254  /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: 130fdd18a91169da4ffb397268eb5c87)
        2023-02-07 10:05:31.406 A/DEBUG:       #10 pc 00000000019bdc92  /data/app/~~B5NPaTc7PXdhO_HHNtWc-A==/org.myApp.android.app.smart_home_services-EQlfsO8_afHNavdhu9d-LA==/oat/arm64/base.vdex (org.bytedeco.javacv.FFmpegFrameGrabber.start+6)
        2023-02-07 10:05:31.406 A/DEBUG:       #11 pc 000000000020a254  /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: 130fdd18a91169da4ffb397268eb5c87)
        2023-02-07 10:05:31.406 A/DEBUG:       #12 pc 00000000019bdc72  /data/app/~~B5NPaTc7PXdhO_HHNtWc-A==/org.myApp.android.app.smart_home_services-EQlfsO8_afHNavdhu9d-LA==/oat/arm64/base.vdex (org.bytedeco.javacv.FFmpegFrameGrabber.start+2)
        2023-02-07 10:05:31.406 A/DEBUG:       #13 pc 000000000020a254  /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: 130fdd18a91169da4ffb397268eb5c87)
        2023-02-07 10:05:31.406 A/DEBUG:       #14 pc 0000000000031072  /data/data/org.myApp.android.app.smart_home_services/code_cache/.overlay/base.apk/classes15.dex (org.myApp.android.app.smart_home.utils.SingleFrameGrabber.lambda$grabFromRtsp$0$org-myApp-android-app-smart_home-utils-SingleFrameGrabber+14)
        2023-02-07 10:05:31.406 A/DEBUG:       #15 pc 000000000020a254  /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: 130fdd18a91169da4ffb397268eb5c87)
        2023-02-07 10:05:31.406 A/DEBUG:       #16 pc 0000000000031008  /data/data/org.myApp.android.app.smart_home_services/code_cache/.overlay/base.apk/classes15.dex (org.myApp.android.app.smart_home.utils.SingleFrameGrabber$$ExternalSyntheticLambda0.run+8)
        2023-02-07 10:05:31.406 A/DEBUG:       #17 pc 000000000020b074  /apex/com.android.art/lib64/libart.so (nterp_helper+7540) (BuildId: 130fdd18a91169da4ffb397268eb5c87)
        2023-02-07 10:05:31.406 A/DEBUG:       #18 pc 000000000046730c  /system/framework/framework.jar (android.os.Handler.handleCallback+4)
        2023-02-07 10:05:31.406 A/DEBUG:       #19 pc 0000000000209334  /apex/com.android.art/lib64/libart.so (nterp_helper+52) (BuildId: 130fdd18a91169da4ffb397268eb5c87)
        2023-02-07 10:05:31.406 A/DEBUG:       #20 pc 0000000000467160  /system/framework/framework.jar (android.os.Handler.dispatchMessage+8)
        2023-02-07 10:05:31.406 A/DEBUG:       #21 pc 000000000020a254  /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: 130fdd18a91169da4ffb397268eb5c87)
        2023-02-07 10:05:31.406 A/DEBUG:       #22 pc 0000000000488dec  /system/framework/framework.jar (android.os.Looper.loopOnce+324)
        2023-02-07 10:05:31.406 A/DEBUG:       #23 pc 0000000000209334  /apex/com.android.art/lib64/libart.so (nterp_helper+52) (BuildId: 130fdd18a91169da4ffb397268eb5c87)
        2023-02-07 10:05:31.406 A/DEBUG:       #24 pc 00000000004893e2  /system/framework/framework.jar (android.os.Looper.loop+162)
        2023-02-07 10:05:31.406 A/DEBUG:       #25 pc 0000000000209334  /apex/com.android.art/lib64/libart.so (nterp_helper+52) (BuildId: 130fdd18a91169da4ffb397268eb5c87)
        2023-02-07 10:05:31.406 A/DEBUG:       #26 pc 00000000001b3164  /system/framework/framework.jar (android.app.ActivityThread.main+200)
        2023-02-07 10:05:31.406 A/DEBUG:       #27 pc 0000000000210c00  /apex/com.android.art/lib64/libart.so (art_quick_invoke_static_stub+576) (BuildId: 130fdd18a91169da4ffb397268eb5c87)
        2023-02-07 10:05:31.406 A/DEBUG:       #28 pc 000000000027adac  /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+236) (BuildId: 130fdd18a91169da4ffb397268eb5c87)
        2023-02-07 10:05:31.406 A/DEBUG:       #29 pc 0000000000622e14  /apex/com.android.art/lib64/libart.so (_jobject* art::InvokeMethod<(art::PointerSize)8>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jobject*, _jobject*, unsigned long)+1396) (BuildId: 130fdd18a91169da4ffb397268eb5c87)
        2023-02-07 10:05:31.406 A/DEBUG:       #30 pc 00000000005a39f0  /apex/com.android.art/lib64/libart.so (art::Method_invoke(_JNIEnv*, _jobject*, _jobject*, _jobjectArray*)+48) (BuildId: 130fdd18a91169da4ffb397268eb5c87)
        2023-02-07 10:05:31.406 A/DEBUG:       #31 pc 00000000000a2148  /system/framework/arm64/boot.oat (art_jni_trampoline+120) (BuildId: a57d01be497110707f03fe3098b9ebb98b01c0ee)
        2023-02-07 10:05:31.406 A/DEBUG:       #32 pc 000000000020a2b0  /apex/com.android.art/lib64/libart.so (nterp_helper+4016) (BuildId: 130fdd18a91169da4ffb397268eb5c87)
        2023-02-07 10:05:31.406 A/DEBUG:       #33 pc 00000000003e86aa  /system/framework/framework.jar (com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run+22)
        2023-02-07 10:05:31.406 A/DEBUG:       #34 pc 0000000000806dcc  /system/framework/arm64/boot-framework.oat (com.android.internal.os.ZygoteInit.main+3148) (BuildId: d70eb65828572281c15ff2c605eb35f7bd79524c)
        2023-02-07 10:05:31.407 A/DEBUG:       #35 pc 0000000000210c00  /apex/com.android.art/lib64/libart.so (art_quick_invoke_static_stub+576) (BuildId: 130fdd18a91169da4ffb397268eb5c87)
        2023-02-07 10:05:31.407 A/DEBUG:       #36 pc 000000000027adac  /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+236) (BuildId: 130fdd18a91169da4ffb397268eb5c87)
        2023-02-07 10:05:31.407 A/DEBUG:       #37 pc 0000000000623640  /apex/com.android.art/lib64/libart.so (art::JValue art::InvokeWithVarArgs<art::ArtMethod*>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, art::ArtMethod*, std::__va_list)+448) (BuildId: 130fdd18a91169da4ffb397268eb5c87)
        2023-02-07 10:05:31.407 A/DEBUG:       #38 pc 0000000000623bdc  /apex/com.android.art/lib64/libart.so (art::JValue art::InvokeWithVarArgs<_jmethodID*>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, std::__va_list)+92) (BuildId: 130fdd18a91169da4ffb397268eb5c87)
        2023-02-07 10:05:31.407 A/DEBUG:       #39 pc 000000000050b554  /apex/com.android.art/lib64/libart.so (art::JNI<true>::CallStaticVoidMethodV(_JNIEnv*, _jclass*, _jmethodID*, std::__va_list)+644) (BuildId: 130fdd18a91169da4ffb397268eb5c87)
        2023-02-07 10:05:31.407 A/DEBUG:       #40 pc 00000000000bccd8  /system/lib64/libandroid_runtime.so (_JNIEnv::CallStaticVoidMethod(_jclass*, _jmethodID*, ...)+120) (BuildId: 3b82f88da832d1ed136476339c04755d)
        2023-02-07 10:05:31.407 A/DEBUG:       #41 pc 00000000000c8c08  /system/lib64/libandroid_runtime.so (android::AndroidRuntime::start(char const*, android::Vector<android::String8> const&, bool)+856) (BuildId: 3b82f88da832d1ed136476339c04755d)
        2023-02-07 10:05:31.407 A/DEBUG:       #42 pc 0000000000002560  /system/bin/app_process64 (main+1280) (BuildId: d73f2fec3cc1b304c3da2dc971816ba5)
        2023-02-07 10:05:31.407 A/DEBUG:       #43 pc 000000000004b590  /apex/com.android.runtime/lib64/bionic/libc.so (__libc_init+96) (BuildId: dda6667e09f4c64aae339908c2c24a5f)
saudet commented 1 year ago

Please make sure that FFmpegLogCallback.set() has been called.

saudet commented 1 year ago

It looks like it's crashing on a null string in avformat_open_input():

        2023-02-07 10:05:31.406 A/DEBUG:       #00 pc 0000000000017e58  /data/app/~~B5NPaTc7PXdhO_HHNtWc-A==/org.myApp.android.app.smart_home_services-EQlfsO8_afHNavdhu9d-LA==/lib/arm64/libavutil.so (av_strstart+8)
        2023-02-07 10:05:31.406 A/DEBUG:       #01 pc 000000000021e9a4  /data/app/~~B5NPaTc7PXdhO_HHNtWc-A==/org.myApp.android.app.smart_home_services-EQlfsO8_afHNavdhu9d-LA==/lib/arm64/libavformat.so
        2023-02-07 10:05:31.406 A/DEBUG:       #02 pc 000000000013189c  /data/app/~~B5NPaTc7PXdhO_HHNtWc-A==/org.myApp.android.app.smart_home_services-EQlfsO8_afHNavdhu9d-LA==/lib/arm64/libavformat.so (av_probe_input_format3+344)
        2023-02-07 10:05:31.406 A/DEBUG:       #03 pc 0000000000131a7c  /data/app/~~B5NPaTc7PXdhO_HHNtWc-A==/org.myApp.android.app.smart_home_services-EQlfsO8_afHNavdhu9d-LA==/lib/arm64/libavformat.so (av_probe_input_format2+16)
        2023-02-07 10:05:31.406 A/DEBUG:       #04 pc 0000000000115670  /data/app/~~B5NPaTc7PXdhO_HHNtWc-A==/org.myApp.android.app.smart_home_services-EQlfsO8_afHNavdhu9d-LA==/lib/arm64/libavformat.so (avformat_open_input+412)

That probably means you're passing a null string to FFmpegFrameGrabber...