plateaukao / einkbro

A small, fast web browser based on Android WebView. It's tailored for E-Ink devices but also works great on normal android devices.
Other
1.13k stars 80 forks source link

Version 10.7.0 crash on start #261

Closed winstonma closed 1 year ago

winstonma commented 1 year ago

Please write necessary information as described below. If information is not enough, I may not have time to look into it.

What device and app version are you using

Describe the bug A clear and concise description of what the bug is.

  1. Upgrade Einkbro from 10.6.3 to 10.7.0
  2. Open Einkbro (Crash)
  3. Clear App Storage and open again (Crash)

To Reproduce Steps to reproduce the behavior.

Example description:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Additional context Add any other context about the problem here.

I attached the logcat

06-06 07:37:07.889   512  7525 I ActivityTaskManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=info.plateaukao.einkbro/.activity.BrowserActivity bnds=[260,605][366,711]} from uid 10121
06-06 07:37:07.941   512   552 I ActivityManager: Start proc 7833:info.plateaukao.einkbro/u0a112 for pre-top-activity {info.plateaukao.einkbro/info.plateaukao.einkbro.activity.BrowserActivity}
06-06 07:37:08.152  1514  1639 I 3c.xposed: LogcatService: Read (true) I/am_restart_activity(  512): [0,268065220,1322,info.plateaukao.einkbro/.activity.BrowserActivity]
06-06 07:37:08.153  1514  1639 D 3c.xposed: LogcatService: Checking top app info.plateaukao.einkbro vs com.teslacoilsw.launcher
06-06 07:37:08.153  1514  1639 D 3c.xposed: LogcatService: New application in front: info.plateaukao.einkbro
06-06 07:37:08.155  1514  1639 D 3c.xposed: Checking modified behavior app info.plateaukao.einkbro
06-06 07:37:08.165  1514  1639 W 3c.xposed: Not priority defined for nice package info.plateaukao.einkbro
06-06 07:37:08.364  7833  7833 I chatty  : uid=10112(info.plateaukao.einkbro) identical 1 line
06-06 07:37:08.541  7833  7865 I cr_VariationsUtils: Failed reading seed file "/data/user/0/info.plateaukao.einkbro/app_webview/variations_seed_new"
06-06 07:37:08.592   512   552 I ActivityManager: Start proc 7867:com.google.android.webview:sandboxed_process0:org.chromium.content.app.SandboxedProcessService0:0/u0i11 for  {info.plateaukao.einkbro/org.chromium.content.app.SandboxedProcessService0:0}
06-06 07:37:09.720  7931  7931 I app_process64: type=1400 audit(0.0:1725): avc: denied { read } for name="u:object_r:device_config_runtime_native_boot_prop:s0" dev="tmpfs" ino=1348 scontext=u:r:untrusted_app:s0:c112,c256,c512,c768 tcontext=u:object_r:device_config_runtime_native_boot_prop:s0 tclass=file permissive=1 app=info.plateaukao.einkbro
06-06 07:37:09.893   512   550 I ActivityTaskManager: Displayed info.plateaukao.einkbro/.activity.BrowserActivity: +1s999ms
06-06 07:37:10.338  7833  7839 F libc    : Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x30 in tid 7839 (Jit thread pool), pid 7833 (teaukao.einkbro)
06-06 07:37:10.449  7950  7950 F DEBUG   : pid: 7833, tid: 7839, name: Jit thread pool  >>> info.plateaukao.einkbro <<<
06-06 07:37:10.510  7950  7950 I crash_dump64: type=1400 audit(0.0:1732): avc: denied { read } for name="libwebviewchromium64.relro" dev="mmcblk0p16" ino=260163 scontext=u:r:crash_dump:s0:c112,c256,c512,c768 tcontext=u:object_r:shared_relro_file:s0 tclass=file permissive=1 app=info.plateaukao.einkbro
06-06 07:37:10.510  7950  7950 I crash_dump64: type=1400 audit(0.0:1734): avc: denied { getattr } for path="/data/misc/shared_relro/libwebviewchromium64.relro" dev="mmcblk0p16" ino=260163 scontext=u:r:crash_dump:s0:c112,c256,c512,c768 tcontext=u:object_r:shared_relro_file:s0 tclass=file permissive=1 app=info.plateaukao.einkbro
06-06 07:37:10.590  7950  7950 I crash_dump64: type=1400 audit(0.0:1735): avc: denied { open } for path="/dev/__properties__/u:object_r:hwservicemanager_prop:s0" dev="tmpfs" ino=1364 scontext=u:r:crash_dump:s0:c112,c256,c512,c768 tcontext=u:object_r:hwservicemanager_prop:s0 tclass=file permissive=1 app=info.plateaukao.einkbro
06-06 07:37:11.469   512  7962 W ActivityTaskManager:   Force finishing activity info.plateaukao.einkbro/.activity.BrowserActivity
06-06 07:37:11.504   512   543 I ActivityManager: Showing crash dialog for package info.plateaukao.einkbro u0
06-06 07:37:11.652   512   857 I ActivityManager: Process info.plateaukao.einkbro (pid 7833) has died: fore TOP 
06-06 07:37:11.652   512   992 I WindowManager: WIN DEATH: Window{636e808 u0 info.plateaukao.einkbro/info.plateaukao.einkbro.activity.BrowserActivity}
06-06 07:37:11.689  1514  1639 D 3c.xposed: LogcatService: Checking top app com.teslacoilsw.launcher vs info.plateaukao.einkbro
06-06 07:37:11.689  1514  1639 W 3c.xposed: LogcatService: Old top app info.plateaukao.einkbro not in used list
06-06 07:37:11.975   512   545 W ActivityTaskManager: Activity top resumed state loss timeout for ActivityRecord{ffa59c4 u0 info.plateaukao.einkbro/.activity.BrowserActivity t-1 f}

This logcat is filtered so please let me know if more logcat is needed.

winstonma commented 1 year ago

Attached the logcat file

plateaukao commented 1 year ago

@winstonma According to the log, it seems crashed in chromium (webview), which I don't know what went wrong. Between 10.7.0 and 10.6.3, there's no specific implementation related to webview. Could you try other browsers like via browser and xbrowser to see if they could work correctly too?

06-06 23:13:47.360 16736 16736 E chromium: [0606/231347.359690:ERROR:process_memory_linux.cc(49)] pread64: I/O error (5) 06-06 23:13:47.360 16736 16736 E chromium: [0606/231347.360849:ERROR:process_memory_linux.cc(49)] pread64: I/O error (5) 06-06 23:13:47.360 16736 16736 E chromium: [0606/231347.360899:ERROR:process_memory_linux.cc(49)] pread64: I/O error (5) 06-06 23:13:47.360 16736 16736 E chromium: [0606/231347.360931:ERROR:process_memory_linux.cc(49)] pread64: I/O error (5) 06-06 23:13:47.360 16736 16736 E chromium: [0606/231347.360963:ERROR:process_memory_linux.cc(49)] pread64: I/O error (5) 06-06 23:13:47.361 16736 16736 E chromium: [0606/231347.360994:ERROR:process_memory_linux.cc(49)] pread64: I/O error (5) 06-06 23:13:47.361 16736 16736 E chromium: [0606/231347.361025:ERROR:process_memory_linux.cc(49)] pread64: I/O error (5) 06-06 23:13:47.361 16736 16736 E chromium: [0606/231347.361056:ERROR:process_memory_linux.cc(49)] pread64: I/O error (5) 06-06 23:13:47.361 16736 16736 E chromium: [0606/231347.361088:ERROR:process_memory_linux.cc(49)] pread64: I/O error (5) 06-06 23:13:47.361 16736 16736 E chromium: [0606/231347.361120:ERROR:process_memory_linux.cc(49)] pread64: I/O error (5) 06-06 23:13:47.361 16736 16736 E chromium: [0606/231347.361150:ERROR:process_memory_linux.cc(49)] pread64: I/O error (5) 06-06 23:13:47.361 16736 16736 E chromium: [0606/231347.361181:ERROR:process_memory_linux.cc(49)] pread64: I/O error (5) 06-06 23:13:47.361 16736 16736 E chromium: [0606/231347.361212:ERROR:process_memory_linux.cc(49)] pread64: I/O error (5) 06-06 23:13:47.361 16736 16736 E chromium: [0606/231347.361242:ERROR:process_memory_linux.cc(49)] pread64: I/O error (5) 06-06 23:13:47.361 16736 16736 E chromium: [0606/231347.361858:ERROR:elf_image_reader.cc(407)] Incorrect ELF magic number 06-06 23:13:47.361 16736 16736 E chromium: [0606/231347.361911:ERROR:process_reader_linux.cc(540)] no module mappings 0x7f8539c000 06-06 23:13:47.457 182 182 I hwservicemanager: getTransport: Cannot find entry android.hardware.graphics.mapper@3.0::IMapper/default in either framework or device manifest. 06-06 23:13:47.458 16638 16659 W Gralloc3: mapper 3.x is not supported 06-06 23:13:47.463 16638 16644 F libc : Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x30 in tid 16644 (Jit thread pool), pid 16638 (teaukao.einkbro) 06-06 23:13:47.463 16638 16659 E ion : ioctl c0044901 failed with code -1: Invalid argument 06-06 23:13:47.463 16638 16659 I [MALI][Gralloc]: [+]r_hnd:0x7ef0a1f6a0, fd:136, ion_hnd(0x1), req_format(0x1), int_fmt(0x1) byte_stride(3200), flags(0x4), usage(0xb00), size(4096000), alloc_size(4096000) 800(800)X1280(1280) pid(16638) sec (0) 06-06 23:13:47.480 16659 16659 I RenderThread: type=1400 audit(0.0:3268): avc: denied { ioctl } for path="/dev/mali0" dev="tmpfs" ino=7668 ioctlcmd=8200 scontext=u:r:untrusted_app:s0:c112,c256,c512,c768 tcontext=u:object_r:device:s0 tclass=chr_file permissive=1 app=info.plateaukao.einkbro 06-06 23:13:47.540 16742 16742 I crash_dump64: obtaining output fd from tombstoned, type: kDebuggerdTombstone 06-06 23:13:47.541 445 445 I /system/bin/tombstoned: received crash request for pid 16644 06-06 23:13:47.545 16742 16742 I crash_dump64: performing dump of process 16638 (target tid = 16644) 06-06 23:13:47.565 16742 16742 F DEBUG : 06-06 23:13:47.565 16742 16742 F DEBUG : LineageOS Version: '17.1-20230520-UNOFFICIAL-douglas' 06-06 23:13:47.565 16742 16742 F DEBUG : Build fingerprint: 'google/lineage_douglas/douglas:10/QQ3A.200805.001/eng.r0rt1z.20230520.152213:userdebug/test-keys' 06-06 23:13:47.565 16742 16742 F DEBUG : Revision: '0' 06-06 23:13:47.565 16742 16742 F DEBUG : ABI: 'arm64' 06-06 23:13:47.566 16742 16742 F DEBUG : Timestamp: 2023-06-06 23:13:47+0800 06-06 23:13:47.566 16742 16742 F DEBUG : pid: 16638, tid: 16644, name: Jit thread pool >>> info.plateaukao.einkbro <<< 06-06 23:13:47.566 16742 16742 F DEBUG : uid: 10112 06-06 23:13:47.566 16742 16742 F DEBUG : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x30 06-06 23:13:47.566 16742 16742 F DEBUG : Cause: null pointer dereference 06-06 23:13:47.566 16742 16742 F DEBUG : x0 0000007efbbed390 x1 0000000000000001 x2 0000007f02c2b7c0 x3 0000007e993a3140 06-06 23:13:47.566 16742 16742 F DEBUG : x4 0000000000000000 x5 0000007f01f5bc37 x6 5500ff325500ff31 x7 7f7f7f7f7f7f7f7f 06-06 23:13:47.567 16742 16742 F DEBUG : x8 0000000000000010 x9 0000000000000010 x10 0000000000000006 x11 0000000000000000 06-06 23:13:47.567 16742 16742 F DEBUG : x12 0000007f02c2b7c0 x13 ffffffffff000000 x14 0000000000000001 x15 0000007f878d9020 06-06 23:13:47.567 16742 16742 F DEBUG : x16 0000007f84067450 x17 0000007f84e7626c x18 0000007ef6f1c000 x19 0000007efbbed468 06-06 23:13:47.567 16742 16742 F DEBUG : x20 0000000000000000 x21 0000007efbbed4d8 x22 0000000000000002 x23 0000000000000000 06-06 23:13:47.567 16742 16742 F DEBUG : x24 0000000000000000 x25 0000000000000001 x26 0000000000000000 x27 0000007efbbed3a0 06-06 23:13:47.567 16742 16742 F DEBUG : x28 0000000000000000 x29 0000007ef7127db0 06-06 23:13:47.567 16742 16742 F DEBUG : sp 0000007ef7127d40 lr 0000007ef9445c00 pc 0000007ef9445ba0 06-06 23:13:47.587 16742 16742 F DEBUG : 06-06 23:13:47.587 16742 16742 F DEBUG : backtrace: 06-06 23:13:47.587 16742 16742 F DEBUG : #00 pc 0000000000126ba0 /apex/com.android.runtime/lib64/libart-compiler.so (art::HBasicBlock::AddInstruction(art::HInstruction)+136) (BuildId: 8edb716ea5a781302b2cb26ce63cae01) 06-06 23:13:47.587 16742 16742 F DEBUG : #01 pc 00000000000e46f4 /apex/com.android.runtime/lib64/libart-compiler.so (art::HInstructionBuilder::BuildInstanceFieldAccess(art::Instruction const&, unsigned int, bool, unsigned long)+1144) (BuildId: 8edb716ea5a781302b2cb26ce63cae01) 06-06 23:13:47.587 16742 16742 F DEBUG : #02 pc 000000000012e4b4 /apex/com.android.runtime/lib64/libart-compiler.so (art::HInstructionBuilder::ProcessDexInstruction(art::Instruction const&, unsigned int, unsigned long)+204) (BuildId: 8edb716ea5a781302b2cb26ce63cae01) 06-06 23:13:47.587 16742 16742 F DEBUG : #03 pc 000000000012ce54 /apex/com.android.runtime/lib64/libart-compiler.so (art::HInstructionBuilder::Build()+8784) (BuildId: 8edb716ea5a781302b2cb26ce63cae01) 06-06 23:13:47.587 16742 16742 F DEBUG : #04 pc 000000000011fd78 /apex/com.android.runtime/lib64/libart-compiler.so (art::HGraphBuilder::BuildGraph()+872) (BuildId: 8edb716ea5a781302b2cb26ce63cae01) 06-06 23:13:47.587 16742 16742 F DEBUG : #05 pc 000000000011c8e4 /apex/com.android.runtime/lib64/libart-compiler.so (art::OptimizingCompiler::TryCompile(art::ArenaAllocator, art::ArenaStack, art::CodeVectorAllocator, art::DexCompilationUnit const&, art::ArtMethod, bool, bool, art::VariableSizedHandleScope) const+4592) (BuildId: 8edb716ea5a781302b2cb26ce63cae01) 06-06 23:13:47.587 16742 16742 F DEBUG : #06 pc 00000000002766e8 /apex/com.android.runtime/lib64/libart-compiler.so (art::OptimizingCompiler::JitCompile(art::Thread, art::jit::JitCodeCache, art::ArtMethod, bool, bool, art::jit::JitLogger)+1584) (BuildId: 8edb716ea5a781302b2cb26ce63cae01) 06-06 23:13:47.587 16742 16742 F DEBUG : #07 pc 000000000023a4c8 /apex/com.android.runtime/lib64/libart-compiler.so (art::jit::JitCompiler::CompileMethod(art::Thread, art::ArtMethod, bool, bool)+212) (BuildId: 8edb716ea5a781302b2cb26ce63cae01) 06-06 23:13:47.587 16742 16742 F DEBUG : #08 pc 000000000033271c /apex/com.android.runtime/lib64/libart.so (art::jit::Jit::CompileMethod(art::ArtMethod, art::Thread, bool, bool)+624) (BuildId: 8402d35d7a9886ea367b74c4508ec2ba) 06-06 23:13:47.588 16742 16742 F DEBUG : #09 pc 0000000000335810 /apex/com.android.runtime/lib64/libart.so (art::jit::JitCompileTask::Run(art::Thread)+612) (BuildId: 8402d35d7a9886ea367b74c4508ec2ba) 06-06 23:13:47.588 16742 16742 F DEBUG : #10 pc 000000000050c284 /apex/com.android.runtime/lib64/libart.so (art::ThreadPoolWorker::Run()+108) (BuildId: 8402d35d7a9886ea367b74c4508ec2ba) 06-06 23:13:47.588 16742 16742 F DEBUG : #11 pc 000000000050bd6c /apex/com.android.runtime/lib64/libart.so (art::ThreadPoolWorker::Callback(void)+148) (BuildId: 8402d35d7a9886ea367b74c4508ec2ba) 06-06 23:13:47.588 16742 16742 F DEBUG : #12 pc 00000000000de3c0 /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+36) (BuildId: faf0d36e63c8937a526fd15313f2cab4) 06-06 23:13:47.588 16742 16742 F DEBUG : #13 pc 000000000008348c /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: faf0d36e63c8937a526fd15313f2cab4) 06-06 23:13:47.600 334 334 I mali-hist-dump: type=1400 audit(0.0:3270): avc: denied { ioctl } for path="/dev/mali0" dev="tmpfs" ino=7668 ioctlcmd=821b scontext=u:r:surfaceflinger:s0 tcontext=u:object_r:device:s0 tclass=chr_file permissive=1

winstonma commented 1 year ago

I tried einkbro v10.6.3 and Via browser v4.7.0. Both browser have no problem.

The build system would create a snapshot every time you make a commit. Just wonder if you have the APK archive of each build? Maybe I could find out which is the last good build. Not sure if this could find out which commit causes the problem.

EDIT: Just find the previous builds, the belows are the reminder for myself

Will let you know the test result

winstonma commented 1 year ago

Sorry for your time.

After complete uninstall and install now the EinkBro v10.7.0 works. Not sure the difference between wiping the data and reinstalling the app but reinstall works.