Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash on start #12010

Closed
PyroDevil opened this issue Jun 10, 2024 · 16 comments
Closed

Crash on start #12010

PyroDevil opened this issue Jun 10, 2024 · 16 comments

Comments

@PyroDevil
Copy link

  • KOReader version: 2024.04 from github apk
  • Device: OnePlus 8 plus, LineageOS 21 MicroG

Issue

Koreader kernel crash on startup

Steps to reproduce

  • Installing the apk
  • Starting app and giving it file access permissions
  • Starting the app again, crash is shown
crash.log (if applicable)
crash.log
--------- beginning of main
06-10 11:36:46.760 V/NativeGlue(16028): Pause: 0xb400007c1788a910
--------- beginning of crash
06-10 11:36:46.844 F/libc    (16028): FORTIFY: pthread_mutex_lock called on a destroyed mutex (0x7dcb96afd8)
06-10 11:36:46.844 F/libc    (16028): FORTIFY: pthread_mutex_lock called on a destroyed mutex (0x7dcb96afd8)
--------- beginning of kernel
06-10 11:36:34.408 W/        (16051): (5)[16051:hwuiTask0]Some other process 16051:hwuiTask0 want to send sig:6 to pid:16051 tgid:16028 comm:hwuiTask0
06-10 11:36:46.844 F/libc    (16028): FORTIFY: pthread_mutex_lock called on a destroyed mutex (0x7b157c8298)
06-10 11:36:47.074 F/DEBUG   (16116): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
06-10 11:36:47.074 F/DEBUG   (16116): LineageOS Version: '21.0-20240508-microG-instantnoodlep'
06-10 11:36:47.074 F/DEBUG   (16116): Build fingerprint: 'OnePlus/OnePlus9Pro/OnePlus9Pro:12/SKQ1.210216.001/R.202109102211:user/release-keys'
06-10 11:36:47.074 F/DEBUG   (16116): Revision: '0'
06-10 11:36:47.074 F/DEBUG   (16116): ABI: 'arm64'
06-10 11:36:47.074 F/DEBUG   (16116): Timestamp: 2024-06-10 11:36:46.869814455+0200
06-10 11:36:47.074 F/DEBUG   (16116): Process uptime: 27s
06-10 11:36:47.074 F/DEBUG   (16116): Cmdline: org.koreader.launcher
06-10 11:36:47.074 F/DEBUG   (16116): pid: 16028, tid: 16103, name: Thread-49  >>> org.koreader.launcher <<<
06-10 11:36:47.074 F/DEBUG   (16116): uid: 10396
06-10 11:36:47.074 F/DEBUG   (16116): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0000007b1b5c0e20
06-10 11:36:47.074 F/DEBUG   (16116):     x0  0000007b1b5d7c48  x1  0000007dbc5a07e4  x2  0000000000000001  x3  0000007b1fa79668
06-10 11:36:47.074 F/DEBUG   (16116):     x4  0000000000000190  x5  0000007b6785597c  x6  0000000000000001  x7  0000126c0000180d
06-10 11:36:47.074 F/DEBUG   (16116):     x8  0000000000000001  x9  0000007dd5543b30  x10 000000000000022f  x11 0000007dbc5a0000
06-10 11:36:47.074 F/DEBUG   (16116):     x12 0000000000000000  x13 000000000000000b  x14 0000000000001f6c  x15 0000000000000000
06-10 11:36:47.074 F/DEBUG   (16116):     x16 0000000000000001  x17 0000007dbc137618  x18 0000007b12938000  x19 0000000000000000
06-10 11:36:47.074 F/DEBUG   (16116):     x20 0000007dbc5a07e4  x21 0000007b1b5d7c48  x22 0000000000001000  x23 0000007b1b5c0e20
06-10 11:36:47.074 F/DEBUG   (16116):     x24 0000007dbc5a0000  x25 0000000000007b30  x26 0000000000000751  x27 0000000000000522
06-10 11:36:47.074 F/DEBUG   (16116):     x28 0000000000007000  x29 0000007b1fa796d0
06-10 11:36:47.074 F/DEBUG   (16116):     lr  0000007dbc139a2c  sp  0000007b1fa796a0  pc  0000007b1b5c0e20  pst 0000000080001000
06-10 11:36:47.074 F/DEBUG   (16116): 7 total frames
06-10 11:36:47.074 F/DEBUG   (16116): backtrace:
06-10 11:36:47.074 F/DEBUG   (16116):       #00 pc 0000007b1b5c0e20  <unknown>
06-10 11:36:47.074 F/DEBUG   (16116):       #01 pc 00000000000c2a28  /apex/com.android.runtime/lib64/bionic/libc.so (__cxa_finalize+144) (BuildId: 3d07239ca249ec10f6b9ffcbac96d553)
06-10 11:36:47.074 F/DEBUG   (16116):       #02 pc 00000000000b56b0  /apex/com.android.runtime/lib64/bionic/libc.so (exit+24) (BuildId: 3d07239ca249ec10f6b9ffcbac96d553)
06-10 11:36:47.074 F/DEBUG   (16116):       #03 pc 0000000000002400  /data/app/~~wOZvnCKOz06wqBtXYUl6Fw==/org.koreader.launcher-3gWsJY0H2GezQzaDl_QcGA==/lib/arm64/libluajit-launcher.so (android_main+400) (BuildId: 961b3aace73d69b5e541c54969363649439875ac)
06-10 11:36:47.074 F/DEBUG   (16116):       #04 pc 0000000000003a2c  /data/app/~~wOZvnCKOz06wqBtXYUl6Fw==/org.koreader.launcher-3gWsJY0H2GezQzaDl_QcGA==/lib/arm64/libluajit-launcher.so (BuildId: 961b3aace73d69b5e541c54969363649439875ac)
06-10 11:36:47.074 F/DEBUG   (16116):       #05 pc 00000000000bf1f4  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+208) (BuildId: 3d07239ca249ec10f6b9ffcbac96d553)
06-10 11:36:47.074 F/DEBUG   (16116):       #06 pc 000000000005d984  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: 3d07239ca249ec10f6b9ffcbac96d553)
06-10 11:36:34.742 I/(4)[16122:reader.launcher]binder(16122): 16122:16122 ioctl 40046210 7fd904d624 returned -22
06-10 11:36:34.857 I/(6)[16143:RenderThread]binder(16143): 16122:16143 ioctl 40046210 7b1198d234 returned -22

@pazos
Copy link
Member

pazos commented Jun 10, 2024

It seems that your device doesn't generate a tombstone.

It should be a line in the log, after the backtrace telling you where it is placed.

For instance:

backtrace:
    #00 pc 0004793e  /system/lib/libc.so (pthread_mutex_lock+1)
    #01 pc 0001aa1b  /system/lib/libc.so (readdir+10)
    #02 pc 00001b91  /system/xbin/crasher (readdir_null+20)
    #03 pc 0000184b  /system/xbin/crasher (do_action+978)
    #04 pc 00001459  /system/xbin/crasher (thread_callback+24)
    #05 pc 00047317  /system/lib/libc.so (_ZL15__pthread_startPv+22)
    #06 pc 0001a7e5  /system/lib/libc.so (__start_thread+34)
Tombstone written to: /data/tombstones/tombstone_06

Without that we can't really know what happens until we can reproduce on a device.

Feel free to try a nightly, from http://ota.koreader.rocks/ and catch the entire log with adb logcat. If you manage to reproduce the crash please also share the logs.

@pazos pazos changed the title Kernel crash on start, Android arm64, Koreader 2024.4, (ioctl returned -22) Crash on start Jun 10, 2024
@PyroDevil
Copy link
Author

I installed the current nightly build, reproduced the issue and catched the logcat.

Since the logcat seems pretty massive, I prefiltered it with 'koreader', if I should use another, please mention it.

logcat_06-11-2024_16-09-23.txt

@pazos
Copy link
Member

pazos commented Jun 12, 2024

Since the logcat seems pretty massive, I prefiltered it with 'koreader', if I should use another, please mention it.

I'm interested. How did you get those logs?

I usually use pidcat org.koreader.launcher, which reports statements for all processes from the application package.
I would like to know if your filtered logs the same way. If they're not please use pidcat instead.

I installed the current nightly build, reproduced the issue and catched the logcat.

Logs miss information. Not sure if caused by the rom or not.

Without an affected device I can't tell you more. I'm fairly sure you can reproduce on other LineageOS MicroG builds if they share the same framework.

But the absence of a tombstone after a native crash implies that the crash happens on system libraries, not on application runtime (or the rom is a joke!)

I would gladly help if somebody could repro on plain LineageOS 21.

@PyroDevil
Copy link
Author

Since the logcat seems pretty massive, I prefiltered it with 'koreader', if I should use another, please mention it.

I'm interested. How did you get those logs?

I used the "Logcat Reader" app on the phone and used the filters and added koreader as keyword.

I usually use pidcat org.koreader.launcher, which reports statements for all processes from the application package. I would like to know if your filtered logs the same way. If they're not please use pidcat instead.

Here is the log with pidcat... I had to compile and install python 2 just for that, since it isn't packaged for my distro anymore.

❯ pidcat org.koreader.launcher

                            Process org.koreader.launcher created for next-top-activity {org.koreader.launcher/org.koreader.launcher.MainActivity}
                            PID: 21198   UID:    GIDs:

:reader.launcher]binder  I  21198:21198 ioctl 40046210 7fd904d624 returned -22
:reader.launcher]binder  I  21198:21198 ioctl 40046210 7fd904c014 returned -22
              Thread-13  W  type=1400 audit(0.0:482503): avc:  granted  { execute } for  path="/data/data/org.koreader.launcher/files/libs/libkoreader-lfs.so" dev="dm-43" ino=1089281 sconte
                            xt=u:r:untrusted_app_30:s0:c140,c257,c512,c768 tcontext=u:object_r:app_data_file:s0:c140,c257,c512,c768 tclass=file
              Thread-17  W  type=1400 audit(0.0:482504): avc:  granted  { execute } for  path="/data/data/org.koreader.launcher/files/libs/libutf8proc.so.3" dev="dm-43" ino=141078 scontext=
                            u:r:untrusted_app_30:s0:c140,c257,c512,c768 tcontext=u:object_r:app_data_file:s0:c140,c257,c512,c768 tclass=file
                         W  type=1400 audit(0.0:482505): avc:  granted  { execute } for  path="/data/data/org.koreader.launcher/files/libs/libblitbuffer.so" dev="dm-43" ino=1936625 scontext
                            =u:r:untrusted_app_30:s0:c140,c257,c512,c768 tcontext=u:object_r:app_data_file:s0:c140,c257,c512,c768 tclass=file
              Thread-47  W  type=1400 audit(0.0:482506): avc:  granted  { execute } for  path="/data/data/org.koreader.launcher/files/libs/libfreetype.so.6" dev="dm-43" ino=1657669 scontext
                            =u:r:untrusted_app_30:s0:c140,c257,c512,c768 tcontext=u:object_r:app_data_file:s0:c140,c257,c512,c768 tclass=file
                         W  type=1400 audit(0.0:482507): avc:  granted  { execute } for  path="/data/data/org.koreader.launcher/files/libs/libharfbuzz.so.0" dev="dm-43" ino=1502532 scontext
                            =u:r:untrusted_app_30:s0:c140,c257,c512,c768 tcontext=u:object_r:app_data_file:s0:c140,c257,c512,c768 tclass=file
                         W  type=1400 audit(0.0:482508): avc:  granted  { execute } for  path="/data/data/org.koreader.launcher/files/libs/libjpeg.so.8" dev="dm-43" ino=1466424 scontext=u:r
                            :untrusted_app_30:s0:c140,c257,c512,c768 tcontext=u:object_r:app_data_file:s0:c140,c257,c512,c768 tclass=file
                         W  type=1400 audit(0.0:482509): avc:  granted  { execute } for  path="/data/data/org.koreader.launcher/files/libs/libsharpyuv.so.0" dev="dm-43" ino=148304 scontext=
                            u:r:untrusted_app_30:s0:c140,c257,c512,c768 tcontext=u:object_r:app_data_file:s0:c140,c257,c512,c768 tclass=file
                         W  type=1400 audit(0.0:482510): avc:  granted  { execute } for  path="/data/data/org.koreader.launcher/files/libs/libwebp.so.7" dev="dm-43" ino=139249 scontext=u:r:
                            untrusted_app_30:s0:c140,c257,c512,c768 tcontext=u:object_r:app_data_file:s0:c140,c257,c512,c768 tclass=file
                         W  type=1400 audit(0.0:482511): avc:  granted  { execute } for  path="/data/data/org.koreader.launcher/files/libs/libwebpdemux.so.2" dev="dm-43" ino=137968 scontext
                            =u:r:untrusted_app_30:s0:c140,c257,c512,c768 tcontext=u:object_r:app_data_file:s0:c140,c257,c512,c768 tclass=file
 InteractionJankMonitor  W  Initializing without READ_DEVICE_CONFIG permission. enabled=false, interval=1, missedFrameThreshold=3, frameTimeThreshold=64, package=org.koreader.launcher
          Choreographer  W  Frame time is 0.017906 ms in the future!  Check that graphics HAL is generating vsync timestamps using the correct timebase.
             NativeGlue  V  Pause: 0xb400007c1788e170
                   libc  F  Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x7b1b5c0e20 in tid 21218 (Thread-49), pid 21198 (reader.launcher)
                         F  FORTIFY: pthread_mutex_lock called on a destroyed mutex (0x7b157c8298)
                  DEBUG  F  #00 pc 0000007b1b5c0e20  <unknown>
                         F  #01 pc 00000000000c2a28  /apex/com.android.runtime/lib64/bionic/libc.so (__cxa_finalize+144) (BuildId: 3d07239ca249ec10f6b9ffcbac96d553)
                         F  #02 pc 00000000000b56b0  /apex/com.android.runtime/lib64/bionic/libc.so (exit+24) (BuildId: 3d07239ca249ec10f6b9ffcbac96d553)
                         F  #03 pc 0000000000002408  /data/app/~~2L7KxJmArMWiIQnqbMVdJg==/org.koreader.launcher-8RiYAf5u_rSKT9iJHEP3Fw==/lib/arm64/libluajit-launcher.so (android_main+408) (
                            BuildId: 2bbeec87e45c674ab4b6c9612d012aaf3eb3ddc6)
                         F  #04 pc 0000000000003a34  /data/app/~~2L7KxJmArMWiIQnqbMVdJg==/org.koreader.launcher-8RiYAf5u_rSKT9iJHEP3Fw==/lib/arm64/libluajit-launcher.so (BuildId: 2bbeec87e4
                            5c674ab4b6c9612d012aaf3eb3ddc6)
                         F  #05 pc 00000000000bf1f4  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+208) (BuildId: 3d07239ca249ec10f6b9ffcbac96d553)
                         F  #06 pc 000000000005d984  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: 3d07239ca249ec10f6b9ffcbac96d553)

                            Process org.koreader.launcher created for next-top-activity {org.koreader.launcher/org.koreader.launcher.MainActivity}
                            PID: 21368   UID:    GIDs:

        reader.launcher  I  Using CollectorTypeCC GC.
                         E  Not starting debugger since process cannot load the jdwp agent.
:reader.launcher]binder  I  21368:21368 ioctl 40046210 7fd904d624 returned -22
atibilityChangeReporter  D  Compat change id reported: 171979766; UID 10396; state: DISABLED
                         D  Compat change id reported: 242716250; UID 10396; state: DISABLED
           nativeloader  D  Configuring clns-4 for other apk /data/app/~~2L7KxJmArMWiIQnqbMVdJg==/org.koreader.launcher-8RiYAf5u_rSKT9iJHEP3Fw==/base.apk. target_sdk_version=30, uses_librar
                            ies=, library_path=/data/app/~~2L7KxJmArMWiIQnqbMVdJg==/org.koreader.launcher-8RiYAf5u_rSKT9iJHEP3Fw==/lib/arm64:/data/app/~~2L7KxJmArMWiIQnqbMVdJg==/org.koreade
                            r.launcher-8RiYAf5u_rSKT9iJHEP3Fw==/base.apk!/lib/arm64-v8a, permitted_path=/data:/mnt/expand:/data/user/0/org.koreader.launcher
    GraphicsEnvironment  V  Currently set values for:
                         V    angle_gl_driver_selection_pkgs=[]
                         V    angle_gl_driver_selection_values=[]
                         V  Global.Settings values are invalid: number of packages: 0, number of values: 0
                         V  Neither updatable production driver nor prerelease driver is supported.
               MultiDex  I  VM with version 2.1.0 has multidex support
                         I  Installing application
                         I  VM has multidex support, MultiDex support library is disabled.
           MainActivity  I  loading libluajit
atibilityChangeReporter  D  Compat change id reported: 309578419; UID 10396; state: DISABLED
                         D  Compat change id reported: 279646685; UID 10396; state: DISABLED
                         D  Compat change id reported: 232195501; UID 10396; state: DISABLED
             NativeGlue  V  User FIFO already exists at `/data/user/0/org.koreader.launcher/files/alooper.fifo`
           NativeThread  V  waiting for activity
                 Assets  I  loading lib7z
                 Lights  I  Using Generic driver
                Surface  V  Using Native Content implementation
           MainActivity  V  native orientation: portrait
          EventReceiver  V  Filtering 3 events:
                         V  android.intent.action.ACTION_POWER_CONNECTED
                         V  android.intent.action.ACTION_POWER_DISCONNECTED
                         V  android.intent.action.DOWNLOAD_COMPLETE
             NativeGlue  V  Start: 0xb400007c1788e170
                         V  Resume: 0xb400007c1788e170
                Timeout  V  onResume: updating system timeout: 10
                         V  onResume
atibilityChangeReporter  D  Compat change id reported: 237531167; UID 10396; state: DISABLED
             NativeGlue  V  InputQueueCreated: 0xb400007c1788e170 -- 0xb400007ba784c700
                Surface  D  onAttachedToWindow()
                         V  top 110 pixels are not available, reason: window inset
             NativeGlue  V  NativeWindowCreated: 0xb400007c1788e170 -- 0xb400007c2785f2b0
           NativeThread  V  Activity window ready.
:reader.launcher]binder  I  21368:21368 ioctl 40046210 7fd904c014 returned -22
               Gralloc4  I  Adding additional valid usage bits: 0x8202000
                Surface  V  surface changed {
                         V    width:  1080
                         V    height: 2266
                         V   format: RGB_565
                         V  }
             NativeGlue  V  NativeWindowResized: 0xb400007c1788e170 -- 0xb400007c2785f2b0
      VRI[MainActivity]  D  applyTransactionOnDraw applyImmediately
             NativeGlue  V  ContentRectChanged: l=0,t=0,r=1080,b=1578
                         V  NativeWindowRedrawNeeded: 0xb400007c1788e170 -- 0xb400007c2785f2b0
                         V  NativeWindowRedrawNeeded: 0xb400007c1788e170 -- 0xb400007c2785f2b0
                         V  WindowFocusChanged: 0xb400007c1788e170 -- 1
           NativeThread  V  Activity gained focus.
                         V  Launching LuaJIT assets
             NativeGlue  V  ContentRectChanged: l=0,t=0,r=1080,b=2266
                 Assets  I  Skip installation for revision v2024.04-163-ge1f2acf68_2024-06-10
                 dlopen  I  dl.dlopen - libs/libkoreader-lfs.so => /data/user/0/org.koreader.launcher/files/libs/libkoreader-lfs.so
                         V      dl.dlopen - needed => libluajit.so (1 of 2) <= /data/user/0/org.koreader.launcher/files/libs/libkoreader-lfs.so
                         V      dl.dlopen - libluajit.so => /data/app/~~2L7KxJmArMWiIQnqbMVdJg==/org.koreader.launcher-8RiYAf5u_rSKT9iJHEP3Fw==/lib/arm64/libluajit.so
                         V          dl.dlopen - needed => libm.so (1 of 3) <= /data/app/~~2L7KxJmArMWiIQnqbMVdJg==/org.koreader.launcher-8RiYAf5u_rSKT9iJHEP3Fw==/lib/arm64/libluajit.so
                         V          dl.dlopen - libm.so => /system/lib64/libm.so
                         V          dl.dlopen - skipping /system/lib64/libm.so (system lib)
                         V          dl.dlopen - needed => libdl.so (2 of 3) <= /data/app/~~2L7KxJmArMWiIQnqbMVdJg==/org.koreader.launcher-8RiYAf5u_rSKT9iJHEP3Fw==/lib/arm64/libluajit.so
                         V          dl.dlopen - libdl.so => /system/lib64/libdl.so
                         V          dl.dlopen - skipping /system/lib64/libdl.so (system lib)
                         V          dl.dlopen - needed => libc.so (3 of 3) <= /data/app/~~2L7KxJmArMWiIQnqbMVdJg==/org.koreader.launcher-8RiYAf5u_rSKT9iJHEP3Fw==/lib/arm64/libluajit.so
              Thread-13  W  type=1400 audit(0.0:482555): avc:  granted  { execute } for  path="/data/data/org.koreader.launcher/files/libs/libkoreader-lfs.so" dev="dm-43" ino=1089281 sconte
                            xt=u:r:untrusted_app_30:s0:c140,c257,c512,c768 tcontext=u:object_r:app_data_file:s0:c140,c257,c512,c768 tclass=file app=io.homeassistant.companion.android.minima
                            l
                 dlopen  V          dl.dlopen - libc.so => /system/lib64/libc.so
                         V          dl.dlopen - skipping /system/lib64/libc.so (system lib)
                         V      sys_dlopen - loading library /data/app/~~2L7KxJmArMWiIQnqbMVdJg==/org.koreader.launcher-8RiYAf5u_rSKT9iJHEP3Fw==/lib/arm64/libluajit.so (in local namespace)
                         V      dl.dlopen - needed => libc.so (2 of 2) <= /data/user/0/org.koreader.launcher/files/libs/libkoreader-lfs.so
                         V      dl.dlopen - libc.so => /system/lib64/libc.so
                         V      dl.dlopen - skipping /system/lib64/libc.so (system lib)
                         V  sys_dlopen - loading library /data/user/0/org.koreader.launcher/files/libs/libkoreader-lfs.so (in local namespace)
                 linker  W  Warning: "/data/data/org.koreader.launcher/files/libs/libkoreader-lfs.so" unused DT entry: DT_RPATH (type 0xf arg 0x29e) (ignoring)
                 dlopen  W  could not find library rt.so.1
                         I  dl.dlopen - libs/libutf8proc.so.3 => /data/user/0/org.koreader.launcher/files/libs/libutf8proc.so.3
                         V      dl.dlopen - needed => libc.so (1 of 1) <= /data/user/0/org.koreader.launcher/files/libs/libutf8proc.so.3
              Thread-17  W  type=1400 audit(0.0:482556): avc:  granted  { execute } for  path="/data/data/org.koreader.launcher/files/libs/libutf8proc.so.3" dev="dm-43" ino=141078 scontext=
                            u:r:untrusted_app_30:s0:c140,c257,c512,c768 tcontext=u:object_r:app_data_file:s0:c140,c257,c512,c768 tclass=file app=io.homeassistant.companion.android.minimal
                 dlopen  V      dl.dlopen - libc.so => /system/lib64/libc.so
                         V      dl.dlopen - skipping /system/lib64/libc.so (system lib)
                         V  dl.dlopen - load_func -> /data/user/0/org.koreader.launcher/files/libs/libutf8proc.so.3
                 linker  W  Warning: "/data/data/org.koreader.launcher/files/libs/libutf8proc.so.3" unused DT entry: DT_RPATH (type 0xf arg 0x28a) (ignoring)
              Thread-17  W  type=1400 audit(0.0:482557): avc:  granted  { execute } for  path="/data/data/org.koreader.launcher/files/libs/libblitbuffer.so" dev="dm-43" ino=1936625 scontext
                            =u:r:untrusted_app_30:s0:c140,c257,c512,c768 tcontext=u:object_r:app_data_file:s0:c140,c257,c512,c768 tclass=file app=io.homeassistant.companion.android.minimal
                 dlopen  W  could not find library blitbuffer
                         I  dl.dlopen - ./libs/libblitbuffer.so => /data/user/0/org.koreader.launcher/files/./libs/libblitbuffer.so
                         V      dl.dlopen - needed => libc.so (1 of 1) <= /data/user/0/org.koreader.launcher/files/./libs/libblitbuffer.so
                         V      dl.dlopen - libc.so => /system/lib64/libc.so
                         V      dl.dlopen - skipping /system/lib64/libc.so (system lib)
                         V  dl.dlopen - load_func -> /data/user/0/org.koreader.launcher/files/./libs/libblitbuffer.so
                 linker  W  Warning: "/data/data/org.koreader.launcher/files/libs/libblitbuffer.so" unused DT entry: DT_RPATH (type 0xf arg 0x1be) (ignoring)
               KOReader  I  Android 14 - S (API 34) - flavor: rocks
                         I  initializing for device oneplus8pro
                         I  framebuffer resolution: {
                         I    h = 2266,
                         I    w = 1080
                         I  } --[[table: 0x7dc2d4c418]]
                 dlopen  I  dl.dlopen - libs/libmupdf.so => /data/user/0/org.koreader.launcher/files/libs/libmupdf.so
                         V      dl.dlopen - needed => libfreetype.so.6 (1 of 9) <= /data/user/0/org.koreader.launcher/files/libs/libmupdf.so
              Thread-47  W  type=1400 audit(0.0:482558): avc:  granted  { execute } for  path="/data/data/org.koreader.launcher/files/libs/libfreetype.so.6" dev="dm-43" ino=1657669 scontext
                            =u:r:untrusted_app_30:s0:c140,c257,c512,c768 tcontext=u:object_r:app_data_file:s0:c140,c257,c512,c768 tclass=file app=io.homeassistant.companion.android.minimal
                 dlopen  V      dl.dlopen - libfreetype.so.6 => /data/user/0/org.koreader.launcher/files/libs/libfreetype.so.6
                         V          dl.dlopen - needed => libc.so (1 of 1) <= /data/user/0/org.koreader.launcher/files/libs/libfreetype.so.6
                         V          dl.dlopen - libc.so => /system/lib64/libc.so
                         V          dl.dlopen - skipping /system/lib64/libc.so (system lib)
                         V      sys_dlopen - loading library /data/user/0/org.koreader.launcher/files/libs/libfreetype.so.6 (in local namespace)
                 linker  W  Warning: "/data/data/org.koreader.launcher/files/libs/libfreetype.so.6" unused DT entry: DT_RPATH (type 0xf arg 0x11b8) (ignoring)
                 dlopen  V      dl.dlopen - needed => libharfbuzz.so.0 (2 of 9) <= /data/user/0/org.koreader.launcher/files/libs/libmupdf.so
                         V      dl.dlopen - libharfbuzz.so.0 => /data/user/0/org.koreader.launcher/files/libs/libharfbuzz.so.0
                         V          dl.dlopen - needed => libfreetype.so.6 (1 of 3) <= /data/user/0/org.koreader.launcher/files/libs/libharfbuzz.so.0
                         V          dl.dlopen - libfreetype.so.6 => /data/user/0/org.koreader.launcher/files/libs/libfreetype.so.6
                         V              dl.dlopen - needed => libc.so (1 of 1) <= /data/user/0/org.koreader.launcher/files/libs/libfreetype.so.6
                         V              dl.dlopen - libc.so => /system/lib64/libc.so
                         V              dl.dlopen - skipping /system/lib64/libc.so (system lib)
                         V          sys_dlopen - loading library /data/user/0/org.koreader.launcher/files/libs/libfreetype.so.6 (in local namespace)
                         V          dl.dlopen - needed => libm.so (2 of 3) <= /data/user/0/org.koreader.launcher/files/libs/libharfbuzz.so.0
                         V          dl.dlopen - libm.so => /system/lib64/libm.so
                         V          dl.dlopen - skipping /system/lib64/libm.so (system lib)
                         V          dl.dlopen - needed => libc.so (3 of 3) <= /data/user/0/org.koreader.launcher/files/libs/libharfbuzz.so.0
                         V          dl.dlopen - libc.so => /system/lib64/libc.so
                         V          dl.dlopen - skipping /system/lib64/libc.so (system lib)
                         V      sys_dlopen - loading library /data/user/0/org.koreader.launcher/files/libs/libharfbuzz.so.0 (in local namespace)
                 linker  W  Warning: "/data/data/org.koreader.launcher/files/libs/libharfbuzz.so.0" unused DT entry: DT_RPATH (type 0xf arg 0x1916c) (ignoring)
                 dlopen  V      dl.dlopen - needed => libjpeg.so.8 (3 of 9) <= /data/user/0/org.koreader.launcher/files/libs/libmupdf.so
                         V      dl.dlopen - libjpeg.so.8 => /data/user/0/org.koreader.launcher/files/libs/libjpeg.so.8
                         V          dl.dlopen - needed => libc.so (1 of 1) <= /data/user/0/org.koreader.launcher/files/libs/libjpeg.so.8
                         V          dl.dlopen - libc.so => /system/lib64/libc.so
                         V          dl.dlopen - skipping /system/lib64/libc.so (system lib)
                         V      sys_dlopen - loading library /data/user/0/org.koreader.launcher/files/libs/libjpeg.so.8 (in local namespace)
                 linker  W  Warning: "/data/data/org.koreader.launcher/files/libs/libjpeg.so.8" unused DT entry: DT_RPATH (type 0xf arg 0x1108) (ignoring)
                 dlopen  V      dl.dlopen - needed => libwebp.so.7 (4 of 9) <= /data/user/0/org.koreader.launcher/files/libs/libmupdf.so
                         V      dl.dlopen - libwebp.so.7 => /data/user/0/org.koreader.launcher/files/libs/libwebp.so.7
                         V          dl.dlopen - needed => libsharpyuv.so.0 (1 of 3) <= /data/user/0/org.koreader.launcher/files/libs/libwebp.so.7
                         V          dl.dlopen - libsharpyuv.so.0 => /data/user/0/org.koreader.launcher/files/libs/libsharpyuv.so.0
              Thread-47  W  type=1400 audit(0.0:482559): avc:  granted  { execute } for  path="/data/data/org.koreader.launcher/files/libs/libharfbuzz.so.0" dev="dm-43" ino=1502532 scontext
                            =u:r:untrusted_app_30:s0:c140,c257,c512,c768 tcontext=u:object_r:app_data_file:s0:c140,c257,c512,c768 tclass=file app=io.homeassistant.companion.android.minimal
                         W  type=1400 audit(0.0:482560): avc:  granted  { execute } for  path="/data/data/org.koreader.launcher/files/libs/libjpeg.so.8" dev="dm-43" ino=1466424 scontext=u:r
                            :untrusted_app_30:s0:c140,c257,c512,c768 tcontext=u:object_r:app_data_file:s0:c140,c257,c512,c768 tclass=file app=io.homeassistant.companion.android.minimal
                 dlopen  V              dl.dlopen - needed => libm.so (1 of 2) <= /data/user/0/org.koreader.launcher/files/libs/libsharpyuv.so.0
                         V              dl.dlopen - libm.so => /system/lib64/libm.so
                         V              dl.dlopen - skipping /system/lib64/libm.so (system lib)
                         V              dl.dlopen - needed => libc.so (2 of 2) <= /data/user/0/org.koreader.launcher/files/libs/libsharpyuv.so.0
                         V              dl.dlopen - libc.so => /system/lib64/libc.so
                         V              dl.dlopen - skipping /system/lib64/libc.so (system lib)
                         V          sys_dlopen - loading library /data/user/0/org.koreader.launcher/files/libs/libsharpyuv.so.0 (in local namespace)
                 linker  W  Warning: "/data/data/org.koreader.launcher/files/libs/libsharpyuv.so.0" unused DT entry: DT_RPATH (type 0xf arg 0xdd) (ignoring)
                 dlopen  V          dl.dlopen - needed => libm.so (2 of 3) <= /data/user/0/org.koreader.launcher/files/libs/libwebp.so.7
                         V          dl.dlopen - libm.so => /system/lib64/libm.so
                         V          dl.dlopen - skipping /system/lib64/libm.so (system lib)
                         V          dl.dlopen - needed => libc.so (3 of 3) <= /data/user/0/org.koreader.launcher/files/libs/libwebp.so.7
                         V          dl.dlopen - libc.so => /system/lib64/libc.so
              Thread-47  W  type=1400 audit(0.0:482561): avc:  granted  { execute } for  path="/data/data/org.koreader.launcher/files/libs/libsharpyuv.so.0" dev="dm-43" ino=148304 scontext=
                            u:r:untrusted_app_30:s0:c140,c257,c512,c768 tcontext=u:object_r:app_data_file:s0:c140,c257,c512,c768 tclass=file app=io.homeassistant.companion.android.minimal
                 dlopen  V          dl.dlopen - skipping /system/lib64/libc.so (system lib)
                         V      sys_dlopen - loading library /data/user/0/org.koreader.launcher/files/libs/libwebp.so.7 (in local namespace)
                 linker  W  Warning: "/data/data/org.koreader.launcher/files/libs/libwebp.so.7" unused DT entry: DT_RPATH (type 0xf arg 0x784) (ignoring)
                 dlopen  V      dl.dlopen - needed => libwebpdemux.so.2 (5 of 9) <= /data/user/0/org.koreader.launcher/files/libs/libmupdf.so
                         V      dl.dlopen - libwebpdemux.so.2 => /data/user/0/org.koreader.launcher/files/libs/libwebpdemux.so.2
                         V          dl.dlopen - needed => libwebp.so.7 (1 of 2) <= /data/user/0/org.koreader.launcher/files/libs/libwebpdemux.so.2
                         V          dl.dlopen - libwebp.so.7 => /data/user/0/org.koreader.launcher/files/libs/libwebp.so.7
                         V              dl.dlopen - needed => libsharpyuv.so.0 (1 of 3) <= /data/user/0/org.koreader.launcher/files/libs/libwebp.so.7
                         V              dl.dlopen - libsharpyuv.so.0 => /data/user/0/org.koreader.launcher/files/libs/libsharpyuv.so.0
                         V                  dl.dlopen - needed => libm.so (1 of 2) <= /data/user/0/org.koreader.launcher/files/libs/libsharpyuv.so.0
                         V                  dl.dlopen - libm.so => /system/lib64/libm.so
                         V                  dl.dlopen - skipping /system/lib64/libm.so (system lib)
                         V                  dl.dlopen - needed => libc.so (2 of 2) <= /data/user/0/org.koreader.launcher/files/libs/libsharpyuv.so.0
                         V                  dl.dlopen - libc.so => /system/lib64/libc.so
                         V                  dl.dlopen - skipping /system/lib64/libc.so (system lib)
                         V              sys_dlopen - loading library /data/user/0/org.koreader.launcher/files/libs/libsharpyuv.so.0 (in local namespace)
                         V              dl.dlopen - needed => libm.so (2 of 3) <= /data/user/0/org.koreader.launcher/files/libs/libwebp.so.7
                         V              dl.dlopen - libm.so => /system/lib64/libm.so
                         V              dl.dlopen - skipping /system/lib64/libm.so (system lib)
                         V              dl.dlopen - needed => libc.so (3 of 3) <= /data/user/0/org.koreader.launcher/files/libs/libwebp.so.7
                         V              dl.dlopen - libc.so => /system/lib64/libc.so
                         V              dl.dlopen - skipping /system/lib64/libc.so (system lib)
                         V          sys_dlopen - loading library /data/user/0/org.koreader.launcher/files/libs/libwebp.so.7 (in local namespace)
                         V          dl.dlopen - needed => libc.so (2 of 2) <= /data/user/0/org.koreader.launcher/files/libs/libwebpdemux.so.2
                         V          dl.dlopen - libc.so => /system/lib64/libc.so
                         V          dl.dlopen - skipping /system/lib64/libc.so (system lib)
                         V      sys_dlopen - loading library /data/user/0/org.koreader.launcher/files/libs/libwebpdemux.so.2 (in local namespace)
                 linker  W  Warning: "/data/data/org.koreader.launcher/files/libs/libwebpdemux.so.2" unused DT entry: DT_RPATH (type 0xf arg 0x24e) (ignoring)
                 dlopen  V      dl.dlopen - needed => libz.so.1 (6 of 9) <= /data/user/0/org.koreader.launcher/files/libs/libmupdf.so
                         V      dl.dlopen - libz.so.1 => /data/user/0/org.koreader.launcher/files/libs/libz.so.1
                         V          dl.dlopen - needed => libc.so (1 of 1) <= /data/user/0/org.koreader.launcher/files/libs/libz.so.1
                         V          dl.dlopen - libc.so => /system/lib64/libc.so
                         V          dl.dlopen - skipping /system/lib64/libc.so (system lib)
                         V      sys_dlopen - loading library /data/user/0/org.koreader.launcher/files/libs/libz.so.1 (in local namespace)
                 linker  W  Warning: "/data/data/org.koreader.launcher/files/libs/libz.so.1" unused DT entry: DT_RPATH (type 0xf arg 0x56f) (ignoring)
                 dlopen  V      dl.dlopen - needed => libm.so (7 of 9) <= /data/user/0/org.koreader.launcher/files/libs/libmupdf.so
                         V      dl.dlopen - libm.so => /system/lib64/libm.so
                         V      dl.dlopen - skipping /system/lib64/libm.so (system lib)
                         V      dl.dlopen - needed => liblog.so (8 of 9) <= /data/user/0/org.koreader.launcher/files/libs/libmupdf.so
                         V      dl.dlopen - liblog.so => /system/lib64/liblog.so
                         V      dl.dlopen - skipping /system/lib64/liblog.so (system lib)
                         V      dl.dlopen - needed => libc.so (9 of 9) <= /data/user/0/org.koreader.launcher/files/libs/libmupdf.so
                         V      dl.dlopen - libc.so => /system/lib64/libc.so
                         V      dl.dlopen - skipping /system/lib64/libc.so (system lib)
                         V  dl.dlopen - load_func -> /data/user/0/org.koreader.launcher/files/libs/libmupdf.so
                 linker  W  Warning: "/data/data/org.koreader.launcher/files/libs/libmupdf.so" unused DT entry: DT_RPATH (type 0xf arg 0xf56f) (ignoring)
                 dlopen  I  dl.dlopen - libs/libwrap-mupdf.so => /data/user/0/org.koreader.launcher/files/libs/libwrap-mupdf.so
                         V      dl.dlopen - needed => libmupdf.so (1 of 2) <= /data/user/0/org.koreader.launcher/files/libs/libwrap-mupdf.so
                         V      dl.dlopen - libmupdf.so => /data/user/0/org.koreader.launcher/files/libs/libmupdf.so
                         V          dl.dlopen - needed => libfreetype.so.6 (1 of 9) <= /data/user/0/org.koreader.launcher/files/libs/libmupdf.so
                         V          dl.dlopen - libfreetype.so.6 => /data/user/0/org.koreader.launcher/files/libs/libfreetype.so.6
                         V              dl.dlopen - needed => libc.so (1 of 1) <= /data/user/0/org.koreader.launcher/files/libs/libfreetype.so.6
                         V              dl.dlopen - libc.so => /system/lib64/libc.so
                         V              dl.dlopen - skipping /system/lib64/libc.so (system lib)
                         V          sys_dlopen - loading library /data/user/0/org.koreader.launcher/files/libs/libfreetype.so.6 (in local namespace)
                         V          dl.dlopen - needed => libharfbuzz.so.0 (2 of 9) <= /data/user/0/org.koreader.launcher/files/libs/libmupdf.so
                         V          dl.dlopen - libharfbuzz.so.0 => /data/user/0/org.koreader.launcher/files/libs/libharfbuzz.so.0
                         V              dl.dlopen - needed => libfreetype.so.6 (1 of 3) <= /data/user/0/org.koreader.launcher/files/libs/libharfbuzz.so.0
                         V              dl.dlopen - libfreetype.so.6 => /data/user/0/org.koreader.launcher/files/libs/libfreetype.so.6
                         V                  dl.dlopen - needed => libc.so (1 of 1) <= /data/user/0/org.koreader.launcher/files/libs/libfreetype.so.6
                         V                  dl.dlopen - libc.so => /system/lib64/libc.so
                         V                  dl.dlopen - skipping /system/lib64/libc.so (system lib)
                         V              sys_dlopen - loading library /data/user/0/org.koreader.launcher/files/libs/libfreetype.so.6 (in local namespace)
                         V              dl.dlopen - needed => libm.so (2 of 3) <= /data/user/0/org.koreader.launcher/files/libs/libharfbuzz.so.0
                         V              dl.dlopen - libm.so => /system/lib64/libm.so
                         V              dl.dlopen - skipping /system/lib64/libm.so (system lib)
                         V              dl.dlopen - needed => libc.so (3 of 3) <= /data/user/0/org.koreader.launcher/files/libs/libharfbuzz.so.0
                         V              dl.dlopen - libc.so => /system/lib64/libc.so
                         V              dl.dlopen - skipping /system/lib64/libc.so (system lib)
                         V          sys_dlopen - loading library /data/user/0/org.koreader.launcher/files/libs/libharfbuzz.so.0 (in local namespace)
                         V          dl.dlopen - needed => libjpeg.so.8 (3 of 9) <= /data/user/0/org.koreader.launcher/files/libs/libmupdf.so
                         V          dl.dlopen - libjpeg.so.8 => /data/user/0/org.koreader.launcher/files/libs/libjpeg.so.8
                         V              dl.dlopen - needed => libc.so (1 of 1) <= /data/user/0/org.koreader.launcher/files/libs/libjpeg.so.8
                         V              dl.dlopen - libc.so => /system/lib64/libc.so
                         V              dl.dlopen - skipping /system/lib64/libc.so (system lib)
                         V          sys_dlopen - loading library /data/user/0/org.koreader.launcher/files/libs/libjpeg.so.8 (in local namespace)
                         V          dl.dlopen - needed => libwebp.so.7 (4 of 9) <= /data/user/0/org.koreader.launcher/files/libs/libmupdf.so
                         V          dl.dlopen - libwebp.so.7 => /data/user/0/org.koreader.launcher/files/libs/libwebp.so.7
                         V              dl.dlopen - needed => libsharpyuv.so.0 (1 of 3) <= /data/user/0/org.koreader.launcher/files/libs/libwebp.so.7
                         V              dl.dlopen - libsharpyuv.so.0 => /data/user/0/org.koreader.launcher/files/libs/libsharpyuv.so.0
                         V                  dl.dlopen - needed => libm.so (1 of 2) <= /data/user/0/org.koreader.launcher/files/libs/libsharpyuv.so.0
                         V                  dl.dlopen - libm.so => /system/lib64/libm.so
                         V                  dl.dlopen - skipping /system/lib64/libm.so (system lib)
                         V                  dl.dlopen - needed => libc.so (2 of 2) <= /data/user/0/org.koreader.launcher/files/libs/libsharpyuv.so.0
                         V                  dl.dlopen - libc.so => /system/lib64/libc.so
                         V                  dl.dlopen - skipping /system/lib64/libc.so (system lib)
                         V              sys_dlopen - loading library /data/user/0/org.koreader.launcher/files/libs/libsharpyuv.so.0 (in local namespace)
                         V              dl.dlopen - needed => libm.so (2 of 3) <= /data/user/0/org.koreader.launcher/files/libs/libwebp.so.7
                         V              dl.dlopen - libm.so => /system/lib64/libm.so
                         V              dl.dlopen - skipping /system/lib64/libm.so (system lib)
                         V              dl.dlopen - needed => libc.so (3 of 3) <= /data/user/0/org.koreader.launcher/files/libs/libwebp.so.7
                         V              dl.dlopen - libc.so => /system/lib64/libc.so
                         V              dl.dlopen - skipping /system/lib64/libc.so (system lib)
                         V          sys_dlopen - loading library /data/user/0/org.koreader.launcher/files/libs/libwebp.so.7 (in local namespace)
                         V          dl.dlopen - needed => libwebpdemux.so.2 (5 of 9) <= /data/user/0/org.koreader.launcher/files/libs/libmupdf.so
                         V          dl.dlopen - libwebpdemux.so.2 => /data/user/0/org.koreader.launcher/files/libs/libwebpdemux.so.2
                         V              dl.dlopen - needed => libwebp.so.7 (1 of 2) <= /data/user/0/org.koreader.launcher/files/libs/libwebpdemux.so.2
                         V              dl.dlopen - libwebp.so.7 => /data/user/0/org.koreader.launcher/files/libs/libwebp.so.7
                         V                  dl.dlopen - needed => libsharpyuv.so.0 (1 of 3) <= /data/user/0/org.koreader.launcher/files/libs/libwebp.so.7
                         V                  dl.dlopen - libsharpyuv.so.0 => /data/user/0/org.koreader.launcher/files/libs/libsharpyuv.so.0
                         V                      dl.dlopen - needed => libm.so (1 of 2) <= /data/user/0/org.koreader.launcher/files/libs/libsharpyuv.so.0
                         V                      dl.dlopen - libm.so => /system/lib64/libm.so
                         V                      dl.dlopen - skipping /system/lib64/libm.so (system lib)
                         V                      dl.dlopen - needed => libc.so (2 of 2) <= /data/user/0/org.koreader.launcher/files/libs/libsharpyuv.so.0
                         V                      dl.dlopen - libc.so => /system/lib64/libc.so
                         V                      dl.dlopen - skipping /system/lib64/libc.so (system lib)
                         V                  sys_dlopen - loading library /data/user/0/org.koreader.launcher/files/libs/libsharpyuv.so.0 (in local namespace)
                         V                  dl.dlopen - needed => libm.so (2 of 3) <= /data/user/0/org.koreader.launcher/files/libs/libwebp.so.7
                         V                  dl.dlopen - libm.so => /system/lib64/libm.so
                         V                  dl.dlopen - skipping /system/lib64/libm.so (system lib)
                         V                  dl.dlopen - needed => libc.so (3 of 3) <= /data/user/0/org.koreader.launcher/files/libs/libwebp.so.7
                         V                  dl.dlopen - libc.so => /system/lib64/libc.so
                         V                  dl.dlopen - skipping /system/lib64/libc.so (system lib)
                         V              sys_dlopen - loading library /data/user/0/org.koreader.launcher/files/libs/libwebp.so.7 (in local namespace)
                         V              dl.dlopen - needed => libc.so (2 of 2) <= /data/user/0/org.koreader.launcher/files/libs/libwebpdemux.so.2
                         V              dl.dlopen - libc.so => /system/lib64/libc.so
                         V              dl.dlopen - skipping /system/lib64/libc.so (system lib)
                         V          sys_dlopen - loading library /data/user/0/org.koreader.launcher/files/libs/libwebpdemux.so.2 (in local namespace)
                         V          dl.dlopen - needed => libz.so.1 (6 of 9) <= /data/user/0/org.koreader.launcher/files/libs/libmupdf.so
                         V          dl.dlopen - libz.so.1 => /data/user/0/org.koreader.launcher/files/libs/libz.so.1
                         V              dl.dlopen - needed => libc.so (1 of 1) <= /data/user/0/org.koreader.launcher/files/libs/libz.so.1
                         V              dl.dlopen - libc.so => /system/lib64/libc.so
                         V              dl.dlopen - skipping /system/lib64/libc.so (system lib)
                         V          sys_dlopen - loading library /data/user/0/org.koreader.launcher/files/libs/libz.so.1 (in local namespace)
                         V          dl.dlopen - needed => libm.so (7 of 9) <= /data/user/0/org.koreader.launcher/files/libs/libmupdf.so
                         V          dl.dlopen - libm.so => /system/lib64/libm.so
                         V          dl.dlopen - skipping /system/lib64/libm.so (system lib)
                         V          dl.dlopen - needed => liblog.so (8 of 9) <= /data/user/0/org.koreader.launcher/files/libs/libmupdf.so
                         V          dl.dlopen - liblog.so => /system/lib64/liblog.so
                         V          dl.dlopen - skipping /system/lib64/liblog.so (system lib)
                         V          dl.dlopen - needed => libc.so (9 of 9) <= /data/user/0/org.koreader.launcher/files/libs/libmupdf.so
                         V          dl.dlopen - libc.so => /system/lib64/libc.so
                         V          dl.dlopen - skipping /system/lib64/libc.so (system lib)
                         V      sys_dlopen - loading library /data/user/0/org.koreader.launcher/files/libs/libmupdf.so (in local namespace)
                         V      dl.dlopen - needed => libc.so (2 of 2) <= /data/user/0/org.koreader.launcher/files/libs/libwrap-mupdf.so
                         V      dl.dlopen - libc.so => /system/lib64/libc.so
                         V      dl.dlopen - skipping /system/lib64/libc.so (system lib)
                         V  dl.dlopen - load_func -> /data/user/0/org.koreader.launcher/files/libs/libwrap-mupdf.so
                 linker  W  Warning: "/data/data/org.koreader.launcher/files/libs/libwrap-mupdf.so" unused DT entry: DT_RPATH (type 0xf arg 0x859) (ignoring)
                 dlopen  W  could not find library sqlite3
                         I  dl.dlopen - ./libs/libsqlite3.so => /data/user/0/org.koreader.launcher/files/./libs/libsqlite3.so
                         V      dl.dlopen - needed => libm.so (1 of 2) <= /data/user/0/org.koreader.launcher/files/./libs/libsqlite3.so
                         V      dl.dlopen - libm.so => /system/lib64/libm.so
                         V      dl.dlopen - skipping /system/lib64/libm.so (system lib)
                         V      dl.dlopen - needed => libc.so (2 of 2) <= /data/user/0/org.koreader.launcher/files/./libs/libsqlite3.so
                         V      dl.dlopen - libc.so => /system/lib64/libc.so
                         V      dl.dlopen - skipping /system/lib64/libc.so (system lib)
                         V  dl.dlopen - load_func -> /data/user/0/org.koreader.launcher/files/./libs/libsqlite3.so
                 linker  W  Warning: "/data/data/org.koreader.launcher/files/libs/libsqlite3.so" unused DT entry: DT_RPATH (type 0xf arg 0x180e) (ignoring)
               KOReader  I  Performing one-time migration for 20210622
                 dlopen  I  dl.dlopen - libs/libfreetype.so.6 => /data/user/0/org.koreader.launcher/files/libs/libfreetype.so.6
                         V      dl.dlopen - needed => libc.so (1 of 1) <= /data/user/0/org.koreader.launcher/files/libs/libfreetype.so.6
                         V      dl.dlopen - libc.so => /system/lib64/libc.so
                         V      dl.dlopen - skipping /system/lib64/libc.so (system lib)
                         V  dl.dlopen - load_func -> /data/user/0/org.koreader.launcher/files/libs/libfreetype.so.6
                         I  dl.dlopen - libs/libharfbuzz.so.0 => /data/user/0/org.koreader.launcher/files/libs/libharfbuzz.so.0
                         V      dl.dlopen - needed => libfreetype.so.6 (1 of 3) <= /data/user/0/org.koreader.launcher/files/libs/libharfbuzz.so.0
                         V      dl.dlopen - libfreetype.so.6 => /data/user/0/org.koreader.launcher/files/libs/libfreetype.so.6
                         V          dl.dlopen - needed => libc.so (1 of 1) <= /data/user/0/org.koreader.launcher/files/libs/libfreetype.so.6
                         V          dl.dlopen - libc.so => /system/lib64/libc.so
                         V          dl.dlopen - skipping /system/lib64/libc.so (system lib)
                         V      sys_dlopen - loading library /data/user/0/org.koreader.launcher/files/libs/libfreetype.so.6 (in local namespace)
                         V      dl.dlopen - needed => libm.so (2 of 3) <= /data/user/0/org.koreader.launcher/files/libs/libharfbuzz.so.0
                         V      dl.dlopen - libm.so => /system/lib64/libm.so
                         V      dl.dlopen - skipping /system/lib64/libm.so (system lib)
                         V      dl.dlopen - needed => libc.so (3 of 3) <= /data/user/0/org.koreader.launcher/files/libs/libharfbuzz.so.0
                         V      dl.dlopen - libc.so => /system/lib64/libc.so
                         V      dl.dlopen - skipping /system/lib64/libc.so (system lib)
                         V  dl.dlopen - load_func -> /data/user/0/org.koreader.launcher/files/libs/libharfbuzz.so.0
                         I  dl.dlopen - libs/libzstd.so.1 => /data/user/0/org.koreader.launcher/files/libs/libzstd.so.1
                         V      dl.dlopen - needed => libc.so (1 of 1) <= /data/user/0/org.koreader.launcher/files/libs/libzstd.so.1
                         V      dl.dlopen - libc.so => /system/lib64/libc.so
                         V      dl.dlopen - skipping /system/lib64/libc.so (system lib)
                         V  dl.dlopen - load_func -> /data/user/0/org.koreader.launcher/files/libs/libzstd.so.1
                 linker  W  Warning: "/data/data/org.koreader.launcher/files/libs/libzstd.so.1" unused DT entry: DT_RPATH (type 0xf arg 0x38d2) (ignoring)
                   libc  W  calloc(18446744073709551614, 1) failed: returning null pointer
           NativeThread  E  Failed to run script: ffi/zstd.lua:44: Failed to allocate ZSTD decompression buffer (1.844674407371e+19 bytes)
             NativeGlue  V  Pause: 0xb400007c1788e170
                   libc  F  Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x7b1b5c0e20 in tid 21389 (Thread-49), pid 21368 (reader.launcher)
                         F  FORTIFY: pthread_mutex_lock called on a destroyed mutex (0x7b157c8298)
 InteractionJankMonitor  W  Initializing without READ_DEVICE_CONFIG permission. enabled=false, interval=1, missedFrameThreshold=3, frameTimeThreshold=64, package=org.koreader.launcher
                  DEBUG  F  #00 pc 0000007b1b5c0e20  <unknown>
                         F  #01 pc 00000000000c2a28  /apex/com.android.runtime/lib64/bionic/libc.so (__cxa_finalize+144) (BuildId: 3d07239ca249ec10f6b9ffcbac96d553)
                         F  #02 pc 00000000000b56b0  /apex/com.android.runtime/lib64/bionic/libc.so (exit+24) (BuildId: 3d07239ca249ec10f6b9ffcbac96d553)
                         F  #03 pc 0000000000002408  /data/app/~~2L7KxJmArMWiIQnqbMVdJg==/org.koreader.launcher-8RiYAf5u_rSKT9iJHEP3Fw==/lib/arm64/libluajit-launcher.so (android_main+408) (
                            BuildId: 2bbeec87e45c674ab4b6c9612d012aaf3eb3ddc6)
                         F  #04 pc 0000000000003a34  /data/app/~~2L7KxJmArMWiIQnqbMVdJg==/org.koreader.launcher-8RiYAf5u_rSKT9iJHEP3Fw==/lib/arm64/libluajit-launcher.so (BuildId: 2bbeec87e4
                            5c674ab4b6c9612d012aaf3eb3ddc6)
                         F  #05 pc 00000000000bf1f4  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+208) (BuildId: 3d07239ca249ec10f6b9ffcbac96d553)
                         F  #06 pc 000000000005d984  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: 3d07239ca249ec10f6b9ffcbac96d553)

                            Process org.koreader.launcher created for top-activity {org.koreader.launcher/org.koreader.launcher.CrashReportActivity}
                            PID: 21408   UID:    GIDs:

        reader.launcher  I  Using CollectorTypeCC GC.
                         E  Not starting debugger since process cannot load the jdwp agent.
:reader.launcher]binder  I  21408:21408 ioctl 40046210 7fd904d624 returned -22
atibilityChangeReporter  D  Compat change id reported: 171979766; UID 10396; state: DISABLED
                         D  Compat change id reported: 242716250; UID 10396; state: DISABLED
           nativeloader  D  Configuring clns-4 for other apk /data/app/~~2L7KxJmArMWiIQnqbMVdJg==/org.koreader.launcher-8RiYAf5u_rSKT9iJHEP3Fw==/base.apk. target_sdk_version=30, uses_librar
                            ies=, library_path=/data/app/~~2L7KxJmArMWiIQnqbMVdJg==/org.koreader.launcher-8RiYAf5u_rSKT9iJHEP3Fw==/lib/arm64:/data/app/~~2L7KxJmArMWiIQnqbMVdJg==/org.koreade
                            r.launcher-8RiYAf5u_rSKT9iJHEP3Fw==/base.apk!/lib/arm64-v8a, permitted_path=/data:/mnt/expand:/data/user/0/org.koreader.launcher
    GraphicsEnvironment  V  Currently set values for:
                         V    angle_gl_driver_selection_pkgs=[]
                         V    angle_gl_driver_selection_values=[]
                         V  Global.Settings values are invalid: number of packages: 0, number of values: 0
                         V  Neither updatable production driver nor prerelease driver is supported.
               MultiDex  I  VM with version 2.1.0 has multidex support
                         I  Installing application
                         I  VM has multidex support, MultiDex support library is disabled.
atibilityChangeReporter  D  Compat change id reported: 309578419; UID 10396; state: DISABLED
                         D  Compat change id reported: 279646685; UID 10396; state: DISABLED
                         D  Compat change id reported: 210923482; UID 10396; state: DISABLED
                         D  Compat change id reported: 37756858; UID 10396; state: ENABLED
                         D  Compat change id reported: 63938206; UID 10396; state: DISABLED
                         D  Compat change id reported: 171228096; UID 10396; state: ENABLED
                         D  Compat change id reported: 232195501; UID 10396; state: DISABLED
                         D  Compat change id reported: 237531167; UID 10396; state: DISABLED
                         D  Compat change id reported: 280005585; UID 10396; state: DISABLED
           AdrenoGLES-0  I  QUALCOMM build                   : 1159e70389, I1027f1d7d9
                         I  Build Date                       : 04/08/22
                         I  OpenGL ES Shader Compiler Version: EV031.32.02.17
                         I  Local Branch                     :
                         I  Remote Branch                    :
                         I  Remote Branch                    :
                         I  Reconstruct Branch               :
                         I  Build Config                     : S P 10.0.7 AArch64
                         I  Driver Path                      : /vendor/lib64/egl/libGLESv2_adreno.so
                         I  PFP: 0x016dd093, ME: 0x00000000
               Gralloc4  I  Adding additional valid usage bits: 0x8202000
 WindowOnBackDispatcher  W  sendCancelIfRunning: isInProgress=falsecallback=android.view.ViewRootImpl$$ExternalSyntheticLambda11@bcb36ec

                            Process org.koreader.launcher (PID: 21408) ended

@pazos
Copy link
Member

pazos commented Jun 13, 2024

Thanks! The crash is caused by:

NativeThread E Failed to run script: ffi/zstd.lua:44: Failed to allocate ZSTD decompression buffer (1.844674407371e+19 bytes)

It is following an error with libc returning a null pointer, so lets assume that big int comes from there and you're not trying to decompress a file of ~19000 Petabytes.

Lets ping @benoit-pierre, maybe he figures out something.

@pazos
Copy link
Member

pazos commented Jun 13, 2024

Here is the log with pidcat... I had to compile and install python 2 just for that, since it isn't packaged for my distro anymore.

On arch a python3 version it is available on aur in pidcat-git. On other distros is easier to clone the github repo and run from there. Python3 should be working on master for a couple of years now.

@benoit-pierre
Copy link
Contributor

I guess the function failed:

#define ZSTD_CONTENTSIZE_UNKNOWN (0ULL - 1)
#define ZSTD_CONTENTSIZE_ERROR   (0ULL - 2)
unsigned long long ZSTD_getFrameContentSize(const void *src, size_t srcSize);

  `src` should point to the start of a ZSTD encoded frame.
  `srcSize` must be at least as large as the frame header.
            hint : any size >= `ZSTD_frameHeaderSize_max` is large enough.
  @return : - decompressed size of `src` frame content, if known
            - ZSTD_CONTENTSIZE_UNKNOWN if the size cannot be determined
            - ZSTD_CONTENTSIZE_ERROR if an error occurred (e.g. invalid magic number, srcSize too small)
   note 1 : a 0 return value means the frame is valid but "empty".
   note 2 : decompressed size is an optional field, it may not be present, typically in streaming mode.
            When `return==ZSTD_CONTENTSIZE_UNKNOWN`, data to decompress could be any size.
            In which case, it's necessary to use streaming mode to decompress data.
            Optionally, application can rely on some implicit limit,
            as ZSTD_decompress() only needs an upper bound of decompressed size.
            (For example, data could be necessarily cut into blocks <= 16 KB).
   note 3 : decompressed size is always present when compression is completed using single-pass functions,
            such as ZSTD_compress(), ZSTD_compressCCtx() ZSTD_compress_usingDict() or ZSTD_compress_usingCDict().
   note 4 : decompressed size can be very large (64-bits value),
            potentially larger than what local system can handle as a single memory segment.
            In which case, it's necessary to use streaming mode to decompress data.
   note 5 : If source is untrusted, decompressed size could be wrong or intentionally modified.
            Always ensure return value fits within application's authorized limits.
            Each application can set its own limits.
   note 6 : This function replaces ZSTD_getDecompressedSize() 

@PyroDevil
Copy link
Author

Here is the log with pidcat... I had to compile and install python 2 just for that, since it isn't packaged for my distro anymore.

On arch a python3 version it is available on aur in pidcat-git. On other distros is easier to clone the github repo and run from there. Python3 should be working on master for a couple of years now.

Sorry for the off-topic:

It shows python2 as a dependency:
https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=pidcat-git#n11

@benoit-pierre
Copy link
Contributor

Are you starting from a clean slate?

@pazos
Copy link
Member

pazos commented Jun 13, 2024

Sorry for the off-topic:

It shows python2 as a dependency: https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=pidcat-git#n11

Oh, right. My bad. You can report it to the arch maintainer in that case. https://raw.githubusercontent.com/JakeWharton/pidcat/master/pidcat.py works with python3

@PyroDevil
Copy link
Author

Are you starting from a clean slate?

I installed the nighlty build (v2024.04-163 from 2024-06-10), I tested cleaning storage and cache before launching, with no change.

I have used koreader in the past, but now installed the new version. For some reason koreader wasn't updated from fdroid, and the version I had was no longer compatible with my Android version, so I installed the version from fdroid first, when that produced the error, I installed the latest stable apk from github, and then, after opening this issue I installed the nightly version.

@PyroDevil
Copy link
Author

Sorry for the off-topic:
It shows python2 as a dependency: https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=pidcat-git#n11

Oh, right. My bad. You can report it to the arch maintainer in that case. https://raw.githubusercontent.com/JakeWharton/pidcat/master/pidcat.py works with python3

It was already reported there over a year ago: https://aur.archlinux.org/packages/pidcat-git

But since this issue isn't about pidcat, Maybe we drop this thread.

@benoit-pierre
Copy link
Contributor

benoit-pierre commented Jun 13, 2024

It's a good idea to uninstall the previous version before installing another one.

Just to make sure: you did install the 64bits version, right? You are.

Cleaning storage and cache does not wipe koreader' settings, so you could try moving those out of the way.

@PyroDevil
Copy link
Author

It's a good idea to uninstall the previous version before installing another one.

Just to make sure: you did install the 64bits version, right? You are.

Cleaning storage and cache does not wipe koreader' settings, so you could try moving those out of the way.

Ok. I renamed the koreader directory to koreader.bak and removed the nightly koreader build and installed the stable version from fdroid, Now this error doesn't happen. So it likely was the koreader configuration.

Does it make sense to investigate this further, or should this issue be closed?

@benoit-pierre
Copy link
Contributor

Well, I don't think will find out how they got corrupted, but do you want to salvage some of those settings?

@PyroDevil
Copy link
Author

Well, I don't think will find out how they got corrupted, but do you want to salvage some of those settings?

I think I can recreate them. So I will close the issue.

So thanks a lot everyone for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants