-
Notifications
You must be signed in to change notification settings - Fork 6.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1), thread 27377 (uil-pool-2-thre) #504
Comments
The location of the collapse:BaseImageDecoder----defineImageSizeAndRotation decodedBitmap = BitmapFactory.decodeStream(imageStream, null, decodingOptions); instead of: String pathString = decodingInfo.getImageUri();
String filePath = Scheme.FILE.crop(pathString);
decodedBitmap = BitmapFactory.decodeFile(filePath, decodingOptions); this case is not happen. |
i have similar issue when trying to load http://g.etfv.co/http%3a%2f%2fwww.facebook.com
|
I also get a native crash with Most of the crashes are on Samsung devices (with 4.3) |
For what is worth, I just encountered the same issue when trying to load favicon.ico from the web From my understanding, Universal Image loader is NOT the culprit: it's the SKIA lib from Android, more precisely, the version on my Asus Trtansformer prime. See the backtrace:
|
I can't find out the way UIL can prevent these errors. |
I have similar crash logs in Play Store developer console. Unfortunately, I cannot even know which files caused them (probably some .ico files that the app downloads from the web). Any solution for this issue? May be some pre-checking of the .ico file format before feeding it to the Android'd decoder? @pdalfarr can you tell the URL of the favicon that caused a crash in your case? I'll try to investigate it. |
@andy61i It was 1 year ago, so I can't tell you which file it was. If I remember well, I was trying to load website's favicon. Some of thos favicons have the .ico extension, but are .png.... or it's the opposite. So the native lib probably first tried to load a png file with the ico method (or an ico file with the png method) which, on some devices, lead to a nice crash in the SKIA lib :-) My workaround is to wait for the Webview to have loaded the favicon itself (for some obscure reason, this way, no SKIA lib crash) and I just have to wait for favicon's Bitmap to be delivered to the 'public void onPageStarted(WebView view, String url, Bitmap favicon)' method my implementation of the android.webkit.WebViewClient interface. So, my web browser app does not crash anymore ( https://play.google.com/store/apps/details?id=com.elementique.web ) Hope this helps, Pascal |
@pdalfarr Thanks for your reply, Pascal! Unfortunately, your workaround is not applicable in my case (I have no WebView). I will try to handle the both mentioned PNG/ICO issues manually before the actual decoding. Hope this will help. |
@andhie hello, where can i get the latest version of UIL, Thank you! |
i use this picture for my application,but error.
this picture------>
error info:
The text was updated successfully, but these errors were encountered: