koying / SPMC

fork of xbmc/kodi
Other
631 stars 257 forks source link

Random Crashing - Android 6.0.1 - SPMC 16.5.1 - WeTek Hub #551

Open wrxtasy opened 7 years ago

wrxtasy commented 7 years ago

The recent patching has fixed exit crashing that was present before but I still get random after about 5 minutes of GUI navigation:

Crashlog attached: http://paste.semperpax.com/puhr9zjal

koying commented 7 years ago

Yeah, I noticed from unclaimed crash logs.

Attaching backtrace for reference

Operating system: Android
                  3.14.29 #1 SMP PREEMPT Sat Nov 5 12:19:17 CET 2016
CPU: arm
     4 CPUs

GPU: UNKNOWN

Crash reason:  
Crash address: 0x0
Process uptime: not available

Thread 0 (crashed)
 0  linker + 0x67c6
     r0 = 0x00000000    r1 = 0x00001000    r2 = 0x00000003    r3 = 0x00000000
     r4 = 0xe0e8075c    r5 = 0x00000000    r6 = 0xe0e807e8    r7 = 0xd8f907f0
     r8 = 0xe3e0a4e0    r9 = 0xe0e80800   r10 = 0xe0e807e8   r12 = 0xd8f907f0
     fp = 0xe17502cc    sp = 0xe0e80734    lr = 0xf7392b3f    pc = 0xf73927c6
    Found by: given as instruction pointer in context
 1  libspmc.so!non-virtual thunk to CVideoInfoTag::~CVideoInfoTag() + 0x6
     sp = 0xe0e80754    pc = 0xe17502cc
    Found by: stack scanning
 2  linker + 0x6b3d
     sp = 0xe0e80758    pc = 0xf7392b3f
    Found by: stack scanning
 3  linker + 0x1abf
     sp = 0xe0e80770    pc = 0xf738dac1
    Found by: stack scanning
 4  libspmc.so!CAndroidDyload::Close [AndroidDyload.cpp : 315 + 0xa]
     sp = 0xe0e80780    pc = 0xe23aaf94
    Found by: stack scanning
 5  libspmc.so!SoLoader::Unload [SoLoader.cpp : 80 + 0x2]
     r4 = 0xe0e807f8    r5 = 0xe0e807f0    r6 = 0xe452cacc    r7 = 0xd8f907f0
     r8 = 0xe3e0a4e0    r9 = 0xe0e80800   r10 = 0xe0e807e8    fp = 0xe17502cc
     sp = 0xe0e807e0    pc = 0xe22486d8
    Found by: call frame info
 6  libspmc.so!DllLoaderContainer::ReleaseModule [DllLoaderContainer.cpp : 218 + 0xa]
     r4 = 0xd9ede2b8    r5 = 0x00000004    r6 = 0xcccccccd    r7 = 0xe3eebd0c
     r8 = 0x00007530    r9 = 0xd9ede2b0   r10 = 0xe0d82000    fp = 0xe17502cc
     sp = 0xe0e80830    pc = 0xe2246e4c
    Found by: call frame info
 7  libspmc.so!CSectionLoader::UnloadDelayed [SectionLoader.cpp : 120 + 0x6]
     r4 = 0x00000050    r5 = 0x00000004    r6 = 0xcccccccd    r7 = 0xe3eebd0c
     r8 = 0x00007530    r9 = 0xd9ede2b0   r10 = 0xe0d82000    fp = 0xe17502cc
     sp = 0xe0e80838    pc = 0xe1f8e108
    Found by: call frame info
 8  libspmc.so!CApplication::ProcessSlow [Application.cpp : 4620 + 0x2]
     r4 = 0xe3e0a4e0    r5 = 0xf1b8dc00    r6 = 0x00002721    r7 = 0xe3ee2f20
     r8 = 0xe10d8980    r9 = 0xe10d8880   r10 = 0xe0d82000    fp = 0xe17502cc
     sp = 0xe0e80868    pc = 0xe1f090b4
    Found by: call frame info
 9  libspmc.so!CApplication::Process [Application.cpp : 4567 + 0x6]
     r3 = 0x00000001    r4 = 0xf1b8dd00    r5 = 0xf1b8dc00    r6 = 0xe3e0a4e0
     r7 = 0xe3ee2f20    r8 = 0xe10d8980    r9 = 0xe10d8880   r10 = 0xe0d82000
     fp = 0xe17502cc    sp = 0xe0e80880    pc = 0xe1f09400
    Found by: call frame info
10  libspmc.so!CXBApplicationEx::Run [XBApplicationEx.cpp : 99 + 0xa]
     r4 = 0xf1b8dc00    r5 = 0x0001b257    r6 = 0x00000001    r7 = 0xe3ee2f20
     r8 = 0xe10d8980    r9 = 0xe10d8880   r10 = 0xe0d82000    fp = 0xe17502cc
     sp = 0xe0e808c0    pc = 0xe1fb4d64
    Found by: call frame info
11  libspmc.so!XBMC_Run [xbmc.cpp : 105 + 0x2]
     r3 = 0x00000000    r4 = 0xe3ee2d94    r5 = 0xe3e0a4e0    r6 = 0x00000001
     r7 = 0xe3ee2f20    r8 = 0xe10d8980    r9 = 0xe10d8880   r10 = 0xe0d82000
     fp = 0xe17502cc    sp = 0xe0e808d0    pc = 0xe1fbae78
    Found by: call frame info
12  libspmc.so!CXBMCApp::run [XBMCApp.cpp : 513 + 0x6]
     r4 = 0xe0e808f8    r5 = 0xe10d8850    r6 = 0xe0e80930    r7 = 0x00000078
     r8 = 0xe10d8980    r9 = 0xe10d8880   r10 = 0xe0d82000    fp = 0xe17502cc
     sp = 0xe0e808f8    pc = 0xe174daf8
    Found by: call frame info
13  libspmc.so!thread_run<CXBMCApp, &CXBMCApp::run> [XBMCApp.cpp : 104 + 0x2]
     r4 = 0xe0e80930    r5 = 0xe0e80970    r6 = 0xe0e80930    r7 = 0x00000078
     r8 = 0xe10d8980    r9 = 0xe10d8880   r10 = 0xe0d82000    fp = 0xe17502cc
     sp = 0xe0e80910    pc = 0xe17502d4
    Found by: call frame info
14  libc.so + 0x3f8c3
     r3 = 0xe17502cc    r4 = 0xe0e80930    r5 = 0xe0e80970    r6 = 0xe0e80930
     r7 = 0x00000078    r8 = 0xe10d8980    r9 = 0xe10d8880   r10 = 0xe0d82000
     fp = 0xe17502cc    sp = 0xe0e80918    pc = 0xf711e8c5
    Found by: call frame info
15  libc.so + 0x3f8a3
     sp = 0xe0e8091c    pc = 0xf711e8a5
    Found by: stack scanning
16  libc.so + 0x3f8a3
     sp = 0xe0e80924    pc = 0xf711e8a5
    Found by: stack scanning
17  libc.so + 0x19e55
     sp = 0xe0e80928    pc = 0xf70f8e57
    Found by: stack scanning
18  libspmc.so!non-virtual thunk to CVideoInfoTag::~CVideoInfoTag() + 0x6
     sp = 0xe0e80964    pc = 0xe17502cc
    Found by: stack scanning

Loaded modules:
0x721e6000 - 0x7395afff  system@framework@boot.oat  ???
0xab0e4000 - 0xab0e8fff  app_process32_original  ???
0xd6c5d000 - 0xd72ecfff  libamplayer.so  ???
0xdcb35000 - 0xdcb3cfff  libsub_idxsub.so  ???
0xdcb3f000 - 0xdcb43fff  libsub_text.so  ???
0xdcb46000 - 0xdcb4bfff  libsub_xsub.so  ???
0xdcb4e000 - 0xdcb52fff  libsub_ass.so  ???
0xdcb55000 - 0xdcb5dfff  libsub_dvb.so  ???
0xdcbc1000 - 0xdcbc7fff  libsub_vob.so  ???
0xddc2b000 - 0xddcb5fff  libpvr.hts.so  ???
0xde6c6000 - 0xde6d2fff  libamavutils.so  ???
0xde8d4000 - 0xdeaa1fff  libcurl.so  ???
0xdeac2000 - 0xdeac9fff  libsystemcontrolservice.so  ???
0xdf840000 - 0xdf843fff  libamsubdec.so  ???
0xdf84e000 - 0xdf853fff  libsub_pgs.so  ???
0xdf856000 - 0xdf9a1fff  libImageLib-arm.so  ???
0xe0854000 - 0xe087efff  libcpluff-arm.so  ???
0xe11d8000 - 0xe3d4dfff  libspmc.so  ???
0xe4608000 - 0xe4b16fff  libsmbclient.so  ???
0xe4ceb000 - 0xe4e1afff  base.odex  ???
0xeba1a000 - 0xebb35fff  libGLES_mali.so  ???
0xec609000 - 0xec60bfff  libXBMC_pvr-arm.so  ???
0xec614000 - 0xec62bfff  libkeymaster1.so  ???
0xec62f000 - 0xec637fff  libkeymaster_messages.so  ???
0xec63a000 - 0xec64dfff  libsoftkeymasterdevice.so  ???
0xec651000 - 0xec65bfff  libkeystore_binder.so  ???
0xec65f000 - 0xec662fff  libkeystore-engine.so  ???
0xec664000 - 0xec67afff  libjavacrypto.so  ???
0xec67e000 - 0xec6d5fff  libstagefright_extrator.so  ???
0xec6da000 - 0xec6e7fff  libstagefright_amrnb_common.so  ???
0xec6e7000 - 0xec707fff  libexif.so  ???
0xec716000 - 0xec720fff  libjhead.so  ???
0xec724000 - 0xec738fff  libmtp.so  ???
0xec73a000 - 0xec77efff  libmedia_jni.so  ???
0xec78b000 - 0xec78dfff  libXBMC_codec-arm.so  ???
0xec790000 - 0xec792fff  libXBMC_addon-arm.so  ???
0xec7a9000 - 0xec7abfff  libion.so  ???
0xec7ae000 - 0xec7b4fff  gralloc.amlogic.so  ???
0xec84c000 - 0xec84ffff  libwebviewchromium_loader.so  ???
0xec852000 - 0xec854fff  libjnigraphics.so  ???
0xec857000 - 0xec85efff  libcompiler_rt.so  ???
0xec860000 - 0xec86efff  libandroid.so  ???
0xec872000 - 0xec876fff  libfbcnf.so  ???
0xf033b000 - 0xf0345fff  libmediandk.so  ???
0xf1b48000 - 0xf1b7bfff  libjavacore.so  ???
0xf1bc3000 - 0xf1bc5fff  memtrack.amlogic.so  ???
0xf4cf0000 - 0xf5131fff  libart.so  ???
0xf524f000 - 0xf5251fff  libsigchain.so  ???
0xf5253000 - 0xf5c88fff  libLLVM.so  ???
0xf5cdc000 - 0xf5d10fff  libbcinfo.so  ???
0xf5d15000 - 0xf5d6cfff  libbcc.so  ???
0xf5d6f000 - 0xf5d79fff  libcommon_time_client.so  ???
0xf5d7f000 - 0xf5d96fff  libprotobuf-cpp-lite.so  ???
0xf5d99000 - 0xf5d9dfff  libmedia_amlogic_support.so  ???
0xf5da0000 - 0xf5da6fff  libstagefright_avc_common.so  ???
0xf5da9000 - 0xf5dabfff  libstagefright_enc_common.so  ???
0xf5dae000 - 0xf5db1fff  libpowermanager.so  ???
0xf5db5000 - 0xf5dd0fff  libvorbisidec.so  ???
0xf5dd3000 - 0xf5dd7fff  libstagefright_yuv.so  ???
0xf5dda000 - 0xf5e08fff  libstagefright_omx.so  ???
0xf5e0e000 - 0xf5e46fff  libopus.so  ???
0xf5e4a000 - 0xf5e50fff  libmediautils.so  ???
0xf5e53000 - 0xf5e68fff  libdrmframework.so  ???
0xf5e6e000 - 0xf5e8dfff  libRScpp.so  ???
0xf5e90000 - 0xf5ecdfff  libRS.so  ???
0xf5ed2000 - 0xf5ed8fff  libspeexresampler.so  ???
0xf5edb000 - 0xf5ee3fff  libnbaio.so  ???
0xf5ee6000 - 0xf5ef7fff  libpcre.so  ???
0xf5efc000 - 0xf5f00fff  libwpa_client.so  ???
0xf5f03000 - 0xf5f70fff  libGLES_trace.so  ???
0xf5f74000 - 0xf5fd1fff  libft2.so  ???
0xf5fd5000 - 0xf6007fff  libpng.so  ???
0xf600b000 - 0xf600dfff  libsync.so  ???
0xf6010000 - 0xf6014fff  libstdc++.so  ???
0xf6017000 - 0xf6026fff  libunwind.so  ???
0xf606f000 - 0xf6077fff  libbase.so  ???
0xf607a000 - 0xf607efff  libeffects.so  ???
0xf6082000 - 0xf6084fff  libstagefright_http_support.so  ???
0xf6088000 - 0xf609ffff  libstagefright_foundation.so  ???
0xf609d000 - 0xf61e3fff  libstagefright.so  ???
0xf61ef000 - 0xf6257fff  libhwui.so  ???
0xf625d000 - 0xf625ffff  libradio_metadata.so  ???
0xf6262000 - 0xf6265fff  libnativebridge.so  ???
0xf6268000 - 0xf626bfff  libprocessgroup.so  ???
0xf626e000 - 0xf627bfff  libminikin.so  ???
0xf627e000 - 0xf6288fff  libsoundtrigger.so  ???
0xf628d000 - 0xf6297fff  libradio.so  ???
0xf629c000 - 0xf629ffff  libnetd_client.so  ???
0xf62a2000 - 0xf62affff  libimg_utils.so  ???
0xf62ad000 - 0xf66b0fff  libpdfium.so  ???
0xf66c0000 - 0xf66c6fff  libaudioutils.so  ???
0xf66c9000 - 0xf66e2fff  libz.so  ???
0xf66e5000 - 0xf672dfff  libharfbuzz_ng.so  ???
0xf6732000 - 0xf6736fff  libusbhost.so  ???
0xf6739000 - 0xf676efff  libjpeg.so  ???
0xf675b000 - 0xf6803fff  libmedia.so  ???
0xf681a000 - 0xf6985fff  libicui18n.so  ???
0xf698c000 - 0xf6aa1fff  libicuuc.so  ???
0xf6ab2000 - 0xf6ad4fff  libssl.so  ???
0xf6ad8000 - 0xf6b67fff  libcrypto.so  ???
0xf6b75000 - 0xf6bc6fff  libsonivox.so  ???
0xf6bcf000 - 0xf6bdcfff  libselinux.so  ???
0xf6be0000 - 0xf6be6fff  libhardware_legacy.so  ???
0xf6bea000 - 0xf6becfff  libhardware.so  ???
0xf6bef000 - 0xf6bf2fff  libETC1.so  ???
0xf6bf5000 - 0xf6c01fff  libGLESv2.so  ???
0xf6c04000 - 0xf6c0bfff  libGLESv1_CM.so  ???
0xf6c06000 - 0xf6c69fff  libEGL.so  ???
0xf6c78000 - 0xf6cdafff  libsqlite.so  ???
0xf6ccd000 - 0xf6f36fff  libskia.so  ???
0xf6f58000 - 0xf6f5ffff  libcamera_metadata.so  ???
0xf6f5f000 - 0xf6f86fff  libcamera_client.so  ???
0xf6f8f000 - 0xf6fcbfff  libinputflinger.so  ???
0xf6fce000 - 0xf6fe9fff  libinput.so  ???
0xf6fe6000 - 0xf703bfff  libgui.so  ???
0xf704a000 - 0xf7056fff  libui.so  ???
0xf705a000 - 0xf7060fff  libnetutils.so  ???
0xf7063000 - 0xf7069fff  libnativehelper.so  ???
0xf706c000 - 0xf707ffff  libexpat.so  ???
0xf7083000 - 0xf70a9fff  libandroidfw.so  ???
0xf70ad000 - 0xf70affff  libmemtrack.so  ???
0xf70b2000 - 0xf70bafff  libbacktrace.so  ???
0xf70bd000 - 0xf70dbfff  libm.so  ???
0xf70df000 - 0xf7150fff  libc.so  ???  (WARNING: No symbols, libc.so, D993DE54D91274111B9B94F561784EF00)
0xf7160000 - 0xf71eafff  libc++.so  ???
0xf71f0000 - 0xf7218fff  libwilhelm.so  ???
0xf720f000 - 0xf72e8fff  libandroid_runtime.so  ???
0xf72f9000 - 0xf7321fff  libbinder.so  ???
0xf732b000 - 0xf7332fff  liblog.so  ???
0xf7335000 - 0xf734cfff  libutils.so  ???
0xf7350000 - 0xf735efff  libcutils.so  ???
0xf738c000 - 0xf73a7fff  linker  ???  (WARNING: No symbols, linker, BC2CA4B5CD94769C86422DDA5B9D23270)
wrxtasy commented 7 years ago

I looked at the back of the MINIX A2 Lite Remote I had and noticed the Shift Key was depressed and locked on, which looks to have been causing the issue.

SPMC is a lot more stable when I turned that Shift key turned off.

Getting random crashes still when exiting the App like a few others. Will grab anther Log when that happens again.

Good news is No more black screen when refresh switching due to correct Video Modes being signalled with the recent AML patch 👍 Also amcodec naturally has popped back into the video acceleration menu so virtually all hardware decoding works.

wrxtasy commented 7 years ago

Most recent Exit Crashlog: (Stable SPMC till that point)

http://paste.semperpax.com/pjcq8bs5r

koying commented 7 years ago

Mind reproducing with http://download.semperpax.com/spmc/android-arm/SPMC-20161202-5ffa859-debug-armeabi-v7a.apk ? It has an additional debug line, telling the problematic lib that makes spmc crashes at unload

wrxtasy commented 7 years ago

Ok installed the debug version, this one crashed from within SPMC when trying to install the Kodi Keymap Editor addon after playing only one 10bit HEVC file: http://paste.semperpax.com/pqssg7awv

Another crash from within SPMC, No refresh switching enabled this time only played a few 10bit HEVC videos this time. Switching gives black screens with this debug version anyway: http://paste.semperpax.com/pjlf5nrd6

koying commented 7 years ago

"xb_dlclose: unloading: libdl.so" Mmm... We are probably not supposed to do that. But why...

koying commented 7 years ago

New build with more debug: http://download.semperpax.com/spmc/android-arm/SPMC-20161203-0516302-debug-armeabi-v7a.apk

Thanks

koying commented 7 years ago

@wrxtasy Will you be able to reproduce with the new debug build anytime soon ?

ghost commented 7 years ago

I think this is related to this issue, I am also running android 6.0.1 but on a Tanix Amlogic S905x box. SPMC randomly crashes when playing MP4 files over a samba share, AVI files appear to be fine. The crash log using version 0516302 is http://paste.semperpax.com/pghkqrvgm

koying commented 7 years ago

Thanks.

This one might fix it: http://download.semperpax.com/spmc/android-arm/SPMC-20161204-5f2014f-debug-armeabi-v7a.apk

ghost commented 7 years ago

Hi koying, the latest version seems to reduce the crash rate but I'm still getting the same problem... http://paste.semperpax.com/pz2lgqgpp#line-1412

EXApheXx commented 7 years ago

Hi all thanks for the last release SPMC-20161204-5f2014f-debug-armeabi-v7a.apk Crash resolved on Exit, but now SPMC crash randomly on parameters or on Movies selection..

I try with many themes or other, same result.

Hardware Android Box Bqeel K12 Android 6.0.1 Amlogic S912 Octa-Core 2 GB ROM 16 GB Emmc CPU AARCH64 but installation failed with the AARCH64 Release (SPMC-20161202-0ea8628-16.5.1-arm64-v8a.apk or SPMC-20161201-bcefcb3-16.5.1-arm64-v8a.apk). Why?

Crashlog link http://paste.semperpax.com/pdpfblmaf

I try a new full clean instal with few addons for check if SPMC crash

koying commented 7 years ago

New try: http://download.semperpax.com/spmc/android-arm/SPMC-20161204-6743d75-debug-armeabi-v7a.apk

EXApheXx commented 7 years ago

I just instal this new release. I test It this night with many files/addons.

Thanks for your reactivity ! Perfect app!

ghost commented 7 years ago

@koying I have installed version 6743d75 and tried to reproduce the error as above but cannot. For me it looks like you have resolved this issue. Thanks :-)

EXApheXx commented 7 years ago

This version works perfecty. (6743d75) No crash in 3 hour of use with Media, videos, music etc.

Perfect!

koying commented 7 years ago

Hi all.

The crash seems fixed, but please confirm there are no side-effects and that amcodec is still working.

Thanks for your testing.

EXApheXx commented 7 years ago

For me it's solved, Thanks koying!

bossbrody commented 7 years ago

Many thanks koying, lastest update worked for me..

mo123 commented 7 years ago

When using this SPMC or anyone after that with the dyload changed merged, just get a black screen on startup with RK3229, ARM 32-bit Marshmallow firmware. http://download.semperpax.com/spmc/android-arm/SPMC-20161204-6743d75-debug-armeabi-v7a.apk SPMC 16.5.0 didn't have this problem.

Looks like the latest nightly Kodi 18 20161206 also crashes when playing video now on Marshmallow while 2 days ago it worked better, not sure if related. I will make a log later and upload it.

kostaboxon commented 7 years ago

spmc/android-arm/SPMC-20161204-6743d75-debug-armeabi-v7a.apk Fixed crashing on my TX5 PRO Amlogic S905X 2GB+16GB running Android 6.0.1

koying commented 7 years ago

@mo123 Please try http://download.semperpax.com/spmc/android-arm/SPMC-20161208-c30bf15-rmdroidloader-armeabi-v7a.apk

(And maybe open a new issue)