2016-09-19 1 views
0

Im Webview + Rangy classe Applicateur Module (par Tim)Android 6 + WebView + Rangy bibliothèque = SIGSEGV crash

après un bouton clic, il charger un javascript webview.loadUrl("javascript:applyColor(color1)");

et la fonction

function applyColor(colorCSSClass) { 
applier = rangy.createClassApplier(colorCSSClass); 
applier.toggleSelection(); 
//Remove Other css colours 
} 

et pour une raison étrange, après quelques couleurs appliqué le crash de l'application et je reçois cette erreur:

W/Adreno-GSL: <gsl_ldd_control:475>: ioctl fd 36 code 0x40180917 (IOCTL_KGSL_CMDSTREAM_FREEMEMONTIMESTAMP_CTXTID) failed: errno 16 Device or resource busy 
    W/Adreno-GSL: <gsl_ldd_control:475>: ioctl fd 36 code 0x40180917 (IOCTL_KGSL_CMDSTREAM_FREEMEMONTIMESTAMP_CTXTID) failed: errno 16 Device or resource busy 
    W/google-breakpad: ### ### ### ### ### ### ### ### ### ### ### ### ### 
    W/google-breakpad: Chrome build fingerprint: 
    W/google-breakpad: 3.0.0.5 
    W/google-breakpad: 3005 
    W/google-breakpad: ### ### ### ### ### ### ### ### ### ### ### ### ### 
    A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x7b in tid 25790 (RenderThread) 
    D/HyLog: D: Wrong tag (927 : loadPreData() : frameworks/base/core/jni/android/graphics/TypefaceHyFontManager.cpp) 

MISE À JOUR: cette erreur ne se produit pas dans Android 5.1

Répondre

0

TROUVE LA SOLUTION, SON Un vieux problème, se produit pour certaines personnes et pour d'autres pas, pour moi était dans Android 6.0

La solution:

webview.load... //load your html 

que après le chargement:

   webview.setBackgroundColor(Color.TRANSPARENT); 
       Paint p = new Paint(); 
       webview.setLayerType(View.LAYER_TYPE_SOFTWARE, p); 

Il semble frapper un peu les performances lorsque vous parlez de défilement doux, si je ne sais pas ts version liée ou est-il une solution, si je trouve ou quelqu'un, s'il vous plaît, postez ici

plus aucun accident après cela