tachiyomiorg / image-decoder

Image decoder supporting JPEG, JPEGXL, PNG, WebP, AVIF, and HEIF with the option to crop borders
Mozilla Public License 2.0
48 stars 75 forks source link

[Bug] (x86 only) *.png picture cause tachiyomi crash #3

Open ikhoeyZX opened 3 years ago

ikhoeyZX commented 3 years ago

Device information

Steps to reproduce

  1. download or read any manga that use " .png " file (any source)
  2. open it

Expected behavior

Show image

Actual behavior

Tachiyomi crashed

Other details

*knowed library problem : libimagedecoder.so

log : tachiyomi_crash_logs.txt

video (using x86 library) : https://user-images.githubusercontent.com/79812109/109436015-63805e80-7a58-11eb-91a8-b54ce5c90038.mp4

video (using libhoudini arm emulator) :

https://user-images.githubusercontent.com/79812109/109436070-acd0ae00-7a58-11eb-8195-4e1fbdc000b6.mp4

inorichi commented 3 years ago

The x86 emulator works fine with that chapter so I don't know what the issue might be.

The crash log doesn't provide any useful stacktrace sadly. Not sure if trying several times will give you a proper trace.

ikhoeyZX commented 3 years ago

tombstone_00_webperror.txt

tombstone_01_pngerror.txt

full error log when open webp & png

*note : emulator use SSE4 & SSE4.1, this phone doesn't support it.

optimal info Features : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx constant_tsc arch_perfmon pebs bts nonstop_tsc aperfmperf nonstop_tsc_s3 pni dtes64 monitor ds_cpl vmx est tm2 ssse3 xtpr pdcm movbe lahf_lm arat dtherm tpr_shadow vnmi flexpriority CPU implementer : 0x70 CPU architecture: 7 CPU variant : 0x2 CPU part : 0x011 CPU revision : 3

Hardware : Intel(R) Atom(TM) CPU Z2560 @ 1.60GHz Revision : 3001 Serial : 1050500070080001

arkon commented 3 years ago

(Deleted message contents)

fixed by replace system file (firmware bugs). bugs : libart.so (and sub lib) & linker + ld.mc

https://user-images.githubusercontent.com/79812109/111917880-29393880-8abd-11eb-865a-ef9f631e07b3.mp4

patch link : https://forum.xda-developers.com/t/zenfone-5-2015-android-7-1-2-library-fix.4250431/

arkon commented 3 years ago

I'm not sure if there's an actual actionable thing for us here.

@ikhoeyZX Was the thing you posted not relevant?

ikhoeyZX commented 3 years ago

yeah, it system bug but only fix 'text relocation' popup, but still not fix x86 imagedecoder crash. i deleted because it was arm mode not x86 (i was forget to restore abi mode when update tachiyomi)