Android Question Heap Memory Corruption in dlmalloc

pgargom

Member
Licensed User
Longtime User
Hi Erel¡
I am developing an app that is executing a loop of html files in a webview. These htmls are stored in a sdcard. This files are loaded in the same webview in this manner:

B4X:
Activity.RemoveAllViews
                Activity.LoadLayout("Interstitial.bal")
                WebViewInterstitial.LoadUrl("file:///" & File.Combine(File.DirRootExternal, "MuralShopping/Recursos/Proyecto_"&Otros.consultarValorFicheroConfiguracion("idProyecto")&"/Instancias/"&nombreInstancia&"/index.html"))


The app runs ok for 1 hour more or less,but then, when loop was repeated a lot of times correctly, this stop and crash with next error:

B4X:
GC_CONCURRENT freed 388K, 48% free 6659K/12679K, paused 4ms+7ms
nativeDestroy view: 0x23d44e8
Unknown chromium error: -6
request: /checkStatus.json
@@@ ABORTING: HEAP MEMORY CORRUPTION IN dlmalloc
Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1)
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'iNet/nuclear_evb/nuclear-evb:4.0.4/IMM76D/20130115:eng/test-keys'
pid: 1159, tid: 1159  >>> MuralShopping.Carteleria <<<
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr deadbaad
r0 deadbaad  r1 00000001  r2 40000000  r3 00000000
r4 00000000  r5 00000027  r6 400a8d99  r7 0000000d
r8 00000000  r9 400b7498  10 2b908f21  fp 41d4d5e8
ip ffffffff  sp be91be08  lr 40089f71  pc 400866d0  cpsr 68000030
d0  400000007149f2ca  d1  3f96000000000000
d2  438000000000012c  d3  0000000143800000
d4  000000003f800000  d5  000000713ee20000
d6  0000000000000002  d7  3f8000003f800000
d8  41d4d5e83f400000  d9  3fe8000000000000
d10 3f40000000000000  d11 0000000000000000
d12 0000000000000000  d13 0000000000000000
d14 0000000000000000  d15 0000000000000000

Can you help me with this problem?
Thank you.
 

pgargom

Member
Licensed User
Longtime User
Then... if this is true... its imposible to do an app that runs for a long time showing differents hmtl files?? (like an digital signage)¿?¿?

I tried to initialize webview component, and seems that app runs for more time... but finally it crash too.
 
Upvote 0

pgargom

Member
Licensed User
Longtime User
I created a simple project where i execute a timer that works with a webview that load a html each 10 seconds and this were the results:

-if html works with an external css file... app crash after 3 hours about.
-if css code is included in html file, app crash too.

but if you works with a simple html that dont needs css code, project works ok and dont crash. And if you consult web pages in a server, like www.google.com, project works ok too.
 
Upvote 0

pgargom

Member
Licensed User
Longtime User
I did it in my example. I define a new webview each time i load a hmtl file, but app crash too.

Then i tried to run the app, loading files from a http server wich is runnig in another device, but it crash too.

Note: css files contains animations too
 
Upvote 0

pgargom

Member
Licensed User
Longtime User
I did it like you say me. But, animations in html only run the first time that it are called. Then, only watch statics html. Are there any way to reload tabs of external browser, or delete it to reload html like news?

Thank you so much¡¡
 
Upvote 0
Top