Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Native Crash On my PlayStore app I can's seem to solve or reproduce

$
0
0

Hello to everyone and happy holidays.

I have an app that uses a specific image background resource for all activities. So I've set on the values\styles.xml file the following on my style:
<item name="android:windowBackground">@drawable/toolbar_background</item>

I have resized this image to match drawable-ldpi / mdpi / hdpi and xhdpi standards, on my resources. This was working fine on my first few production releases, until I started getting some weird native crashes on the PlayStore crash reports. The most relative thing I found after a lot of research was a post from this forum addressing the problem and blaming the background image, and that made a lot of sense to me(most users experiencing the crash reported the crash happening when a new activity tried to start). Link here. But what it suggested was already ok on my part.

I checked out my repository history and I hadn't made any changes affecting this. But the crashes kept coming. On an other app update I tried to update Xamarin, Java JDK, Android sdk and I tested it on a device that reproduced the crash and it seemed to be resolved. A few days after the release of the update, the crash kept being reported (maybe less frequently).

Could anyone have any clue or any suggestion on how I should try to debug this? I've tried anything I could possibly imagine but I still come short.

I have noticed that this crash is only reported on devices using armeabi-v7a native platform.

Here are some sample crash reports and some specs for my app:

Crash Sample #1 (Xiaomi Redmi Note 3)


Build fingerprint: 'Xiaomi/kenzo/kenzo:6.0.1/MMB29M/6.12.22:user/release-keys'
Revision: '0'
ABI: 'arm'
pid: 19950, tid: 19950, name: mbanking.NBG >>> mbanking.NBG <<<
signal 7 (SIGBUS), code 1 (BUS_ADRALN), fault addr 0x17
r0 00000017 r1 ac3dd6d8 r2 00000000 r3 001e0001
r4 ac35ef18 r5 ac3dd6d8 r6 00000013 r7 fffda404
r8 ac3dd6d8 r9 ab9eb450 sl 424da223 fp 42ea0000
ip f636891c sp fffda3e8 lr f6ee1e21 pc f6eb70f2 cpsr 000d0030

backtrace:
#00 pc 000de0f2 /system/lib/libskia.so
#01 pc 00108e1d /system/lib/libskia.so (ZN7SkPaintC2ERKS+48)
#02 pc 0002c671 /system/lib/libhwui.so (_ZN7android10uirenderer17DisplayListCanvas8drawRectEffffRK7SkPaint+220)
#03 pc 73828edb /data/dalvik-cache/arm/system@framework@boot.oat (offset 0x2459000)

Crash Sample #2 (Samsung Galaxy A5)


Build fingerprint: 'samsung/a5ultexx/a5ulte:5.0.2/LRX22G/A500FUXXU1BOJ6:user/release-keys'
Revision: '2'
ABI: 'arm'
pid: 8951, tid: 8951, name: mbanking.NBG >>> mbanking.NBG <<<
signal 7 (SIGBUS), code 1 (BUS_ADRALN), fault addr 0x5
r0 00000005 r1 b964f5a0 r2 00000001 r3 b8e5bb00
r4 b97a2b68 r5 b964f5a0 r6 00000001 r7 b8e5bad0
r8 b8e5baec r9 43b40000 sl 12c427c0 fp 131d4aa0
ip b66fcc2c sp bead0ba0 lr b5a29731 pc b5a26f3c cpsr 000d0030

backtrace:
#00 pc 000d9f3c /system/lib/libskia.so (SkPixelRef::globalRef(void)+5)
#01 pc 000dc72d /system/lib/libskia.so (SkPaint::SkPaint(SkPaint const&)+12)
#02 pc 0001f26b /system/lib/libhwui.so
#03 pc 0001f333 /system/lib/libhwui.so
#04 pc 0002058b /system/lib/libhwui.so (android::uirenderer::DisplayListRenderer::drawRect(float, float, float, float, SkPaint const
)+14)
#05 pc 0007c2e9 /system/lib/libandroid_runtime.so
#06 pc 01290337 /system/framework/arm/boot.oat

On my manifest I have:

  • TargetSdkVersion="23"
  • android:hardwareAccelerated="true"
  • android:largeHeap="true"

The app is built using Compile Version Android 6.0 (Marshmallow)

xhdpi image resource sample:

I also use Xamarin.Android.Support.V4 version v23.4.0 and Xamarin.Android.Support.v7.AppCompat v22.2.1

Any help would be much appreciated.

Thank you guys.


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>