Jus*_*tin 3 android segmentation-fault xamarin.android xamarin
我们刚刚在Play商店中发布了新版本的Android应用,现在用户正在报告崩溃情况。我们能够复制,但是它在整个应用程序中随机发生,并且是SIGSEGV崩溃。
https://gist.github.com/justintoth/78abbd4b647de3ee04037631e921198f
根据回溯,最后两次崩溃似乎都与图像视图有关。
崩溃#1:
A / DEBUG(6953):#00 pc 000c1178 /system/lib/libandroid_runtime.so 04-13 17:26:53.640:A / DEBUG(6953):#01 pc 020813ce / system / framework / x86 / boot-framework。燕麦(偏移量0x1588000)(android.view.RenderNode.nGetTransformMatrix + 138)04-13 17:26:53.640:A / DEBUG(6953):#02 pc 020845cd /system/framework/x86/boot-framework.oat(偏移量0x1588000)(android.view.RenderNode.getMatrix + 89)04-13 17:26:53.640:A / DEBUG(6953):#03 pc 020082dd /system/framework/x86/boot-framework.oat(偏移量0x1588000)( android.view.View.getMatrix + 89)04-13 17:26:53.640:A / DEBUG(6953):
04 pc 02061f2b /system/framework/x86/boot-framework.oat(offset 0x1588000)(android.view.ViewGroup.invalidateChild + 119)04-13
17:26:53.640:A / DEBUG(6953):#05 pc 0200bda1 /system/framework/x86/boot-framework.oat(offset 0x1588000)(android.view.View.invalidateInternal + 541)04-13 17:26 :53.640:A / DEBUG(6953):#06 pc 0200ba3b /system/framework/x86/boot-framework.oat(offset 0x1588000)(android.view.View.invalidate + 103)04-13 17:26:53.640: A /调试(6953):
07 pc 0200b822 /system/framework/x86/boot-framework.oat(offset 0x1588000)(android.view.View.invalidate + 46)04-13 17:26:53.640:
A / DEBUG(6953):#08 pc 0216c878 /system/framework/x86/boot-framework.oat(offset 0x1588000)(android.widget.ImageView.setImageDrawable + 180)
崩溃#2:
/system/lib/libskia.so(_ZN8SkMatrix13setRectToRectERK6SkRectS2_NS_10ScaleToFitE + 289)04-13 17:59:57.981:A / DEBUG(8047):第01 PC 000f7c9d /system/lib/libandroid_runtime.so(_ZN7android12SkMatrixGlue13setRectToRectEP7_JNIEnvP8_jobjectxS4_S4_i + 134)04-13 17 :59:57.981:A / DEBUG(8047):#02 pc 01936e62 /system/framework/x86/boot-framework.oat(offset 0x1588000)(android.graphics.Matrix.native_setRectToRect + 190)04-13 17:59: 57.981:A / DEBUG(8047):#03 pc 01939373 /system/framework/x86/boot-framework.oat(offset 0x1588000)(android.graphics.Matrix.setRectToRect + 127)04-13 17:59:57.981:A / DEBUG(8047):#04 pc 0216977d /system/framework/x86/boot-framework.oat(offset 0x1588000)(android.widget.ImageView.configureBounds + 1625)04-13 17:59:57.981:A / DEBUG( 8047):#05 pc 0216b253 /system/framework/x86/boot-framework.oat(offset 0x1588000)(android.widget.ImageView.invalidateDrawable + 159)04-13 17:59:57.981:A / DEBUG(8047):#06 pc 0170f783 /system/framework/x86/boot-framework.oat(offset 0x1588000)(android.graphics.drawable.Drawable.invalidateSelf + 79)04-13 17:59:57.981:A / DEBUG(8047):#07 pc 017100f5 /system/framework/x86/boot-framework.oat(offset 0x1588000)(android.graphics.drawable.Drawable.setVisible + 81)04-13 17:59:57.981:A / DEBUG(8047):#08 pc 0216a91f /系统/框架/x86/boot-framework.oat(偏移量0x1588000)(android.widget.ImageView.updateDrawable + 619)04-13 17:59:57.981:A / DEBUG(8047):#09 pc 0216c829 / system / framework /x86/boot-framework.oat(offset 0x1588000)(android.widget.ImageView.setImageDrawable + 101)燕麦(偏移量0x1588000)(android.widget.ImageView.invalidateDrawable + 159)04-13 17:59:57.981:A / DEBUG(8047):#06 pc 0170f783 /system/framework/x86/boot-framework.oat(偏移量0x1588000)(android.graphics.drawable.Drawable.invalidateSelf + 79)04-13 17:59:57.981:A / DEBUG(8047):#07 pc 017100f5 /system/framework/x86/boot-framework.oat(偏移量0x1588000 )(android.graphics.drawable.Drawable.setVisible + 81)04-13 17:59:57.981:A / DEBUG(8047):#08 pc 0216a91f /system/framework/x86/boot-framework.oat(偏移量0x1588000) (android.widget.ImageView.updateDrawable + 619)04-13 17:59:57.981:A / DEBUG(8047):#09 pc 0216c829 /system/framework/x86/boot-framework.oat(offset 0x1588000)(android。 widget.ImageView.setImageDrawable + 101)燕麦(偏移量0x1588000)(android.widget.ImageView.invalidateDrawable + 159)04-13 17:59:57.981:A / DEBUG(8047):#06 pc 0170f783 /system/framework/x86/boot-framework.oat(偏移量0x1588000)(android.graphics.drawable.Drawable.invalidateSelf + 79)04-13 17:59:57.981:A / DEBUG(8047):#07 pc 017100f5 /system/framework/x86/boot-framework.oat(偏移量0x1588000 )(android.graphics.drawable.Drawable.setVisible + 81)04-13 17:59:57.981:A / DEBUG(8047):#08 pc 0216a91f /system/framework/x86/boot-framework.oat(偏移量0x1588000) (android.widget.ImageView.updateDrawable + 619)04-13 17:59:57.981:A / DEBUG(8047):#09 pc 0216c829 /system/framework/x86/boot-framework.oat(offset 0x1588000)(android。 widget.ImageView.setImageDrawable + 101)#06 pc 0170f783 /system/framework/x86/boot-framework.oat(offset 0x1588000)(android.graphics.drawable.Drawable.invalidateSelf + 79)04-13 17:59:57.981:A / DEBUG(8047):# 07 pc 017100f5 /system/framework/x86/boot-framework.oat(offset 0x1588000)(android.graphics.drawable.Drawable.setVisible + 81)04-13 17:59:57.981:A / DEBUG(8047):#08 pc 0216a91f /system/framework/x86/boot-framework.oat(offset 0x1588000)(android.widget.ImageView.updateDrawable + 619)04-13 17:59:57.981:A / DEBUG(8047):#09 pc 0216c829 /系统/框架/x86/boot-framework.oat(偏移量0x1588000)(android.widget.ImageView.setImageDrawable + 101)#06 pc 0170f783 /system/framework/x86/boot-framework.oat(offset 0x1588000)(android.graphics.drawable.Drawable.invalidateSelf + 79)04-13 17:59:57.981:A / DEBUG(8047):# 07 pc 017100f5 /system/framework/x86/boot-framework.oat(offset 0x1588000)(android.graphics.drawable.Drawable.setVisible + 81)04-13 17:59:57.981:A / DEBUG(8047):#08 pc 0216a91f /system/framework/x86/boot-framework.oat(offset 0x1588000)(android.widget.ImageView.updateDrawable + 619)04-13 17:59:57.981:A / DEBUG(8047):#09 pc 0216c829 /系统/框架/x86/boot-framework.oat(偏移量0x1588000)(android.widget.ImageView.setImageDrawable + 101)#07 pc 017100f5 /system/framework/x86/boot-framework.oat(offset 0x1588000)(android.graphics.drawable.Drawable.setVisible + 81)04-13 17:59:57.981:A / DEBUG(8047):# 08 pc 0216a91f /system/framework/x86/boot-framework.oat(offset 0x1588000)(android.widget.ImageView.updateDrawable + 619)04-13 17:59:57.981:A / DEBUG(8047):#09 pc 0216c829 /system/framework/x86/boot-framework.oat(offset 0x1588000)(android.widget.ImageView.setImageDrawable + 101)#07 pc 017100f5 /system/framework/x86/boot-framework.oat(offset 0x1588000)(android.graphics.drawable.Drawable.setVisible + 81)04-13 17:59:57.981:A / DEBUG(8047):# 08 pc 0216a91f /system/framework/x86/boot-framework.oat(offset 0x1588000)(android.widget.ImageView.updateDrawable + 619)04-13 17:59:57.981:A / DEBUG(8047):#09 pc 0216c829 /system/framework/x86/boot-framework.oat(offset 0x1588000)(android.widget.ImageView.setImageDrawable + 101)widget.ImageView.setImageDrawable + 101)widget.ImageView.setImageDrawable + 101)
我不清楚如何解决SIGSEGV崩溃,因为它们似乎很低,并且不包含我实际代码中的堆栈跟踪。它们通常是我可以作为应用程序开发人员控制的崩溃,还是Xamarin错误?我最好的选择是尝试降级我的Xamarin软件包(这可能很困难,它们的下载页面现在仅提供了最后两个版本...)是否有人对此有经验?
致命信号11(SIGSEGV),代码1,故障加法器0x0
您的应用正在访问已释放/取消引用的引用(对象/等),因为其地址为零(0x0)。
(6953): backtrace:
~~~
(android.view.RenderNode.getMatrix+89)
(android.view.View.getMatrix+89)
(android.view.ViewGroup.invalidateChild+119)
(android.view.View.invalidateInternal+541)
(android.view.View.invalidate+103)
(android.view.View.invalidate+46)
(android.widget.ImageView.setImageDrawable+180)
~~~
Run Code Online (Sandbox Code Playgroud)
在这种情况下,您将为ImageView分配一个错误的可绘制对象,该对象可能是BitMap,Release
也可能是GC,或者只是不可用。
您可以mono-symbolicate
用来向该logcat
回溯/崩溃添加符号:
归档时间: |
|
查看次数: |
362 次 |
最近记录: |