Xamarin.Forms v3.5应用程序在发布模式下引发异常

时间:2019-02-13 21:05:40

标签: xamarin xamarin.forms xamarin.android

我正在使用 Xamarin.Forms 开发应用程序。在Xamarin.Forms v3.4 中,一切(调试和发布)都可以正常工作。将Xamarin.Forms版本升级到v3.5 后,应用会在发布模式下引发以下错误:'Fatal signal 6 (SIGABRT)' 但是,它在调试模式下工作得很好,问题的根源是什么?我在下面提到了完整的日志文件:

02-13 22:34:52.932: W/monodroid(30684): Trying to load sgen from:     /data/app/com.****-1/lib/arm/libmonosgen-2.0.so
02-13 22:34:58.941: A/libc(30684): Fatal signal 6 (SIGABRT), code -6 in tid 30684 (****)
02-13 22:34:59.878: W/monodroid(30740): Trying to load sgen from: /data/app/com.****-1/lib/arm/libmonosgen-2.0.so
02-13 22:35:06.307: A/libc(30740): Fatal signal 6 (SIGABRT), code -6 in tid 30740 (****)
02-13 22:35:06.944: W/ActivityManager(790): Process com.**** has crashed too many times: killing!
02-13 22:35:06.944: W/ActivityManager(790):   Force finishing activity 4 com.****/md5d3c8bcf50a11065f890b38bedeb79700.MainActivity
02-13 22:35:06.968: W/ActivityManager(790): Wtf, activity ActivityRecord{34f9d5f1 u0 com.****/md5d3c8bcf50a11065f890b38bedeb79700.MainActivity t457 f} in proc activity list not using proc ProcessRecord{2f9b1294 30740:com.****/u0a249}?!?
02-13 22:35:06.985: W/ActivityManager(790): Spurious death for ProcessRecord{2f9b1294 30740:com.****/u0a249}, curProc for 30740: null
02-13 22:40:16.011: W/monodroid(32271): Trying to load sgen from: /data/app/com.****-1/lib/arm/libmonosgen-2.0.so
02-13 22:40:22.571: A/libc(32271): Fatal signal 6 (SIGABRT), code -6 in tid 32271 (****)
02-13 22:40:23.181: W/ActivityManager(790):   Force finishing activity 1 com.****/md5d3c8bcf50a11065f890b38bedeb79700.MainActivity
02-13 22:40:23.519: E/WindowState(790): getStack: Window{1f3699f8 u0 Starting com.****} couldn't find taskId=458 Callers=com.android.server.wm.WindowManagerService.performLayoutAndPlaceSurfacesLockedInner:10073 com.android.server.wm.WindowManagerService.performLayoutAndPlaceSurfacesLockedLoop:9105 com.android.server.wm.WindowManagerService.performLayoutAndPlaceSurfacesLocked:9047 com.android.server.wm.WindowManagerService.executeAppTransition:4240 
02-13 22:40:23.520: E/WindowState(790): getStack: Window{1f3699f8 u0 Starting com.****} couldn't find taskId=458 Callers=com.android.server.wm.WindowState.getDisplayContent:803 com.android.server.wm.WindowStateAnimator.updateSurfaceWindowCrop:1291 com.android.server.wm.WindowStateAnimator.setSurfaceBoundariesLocked:1466 com.android.server.wm.WindowManagerService.performLayoutAndPlaceSurfacesLockedInner:10163 
02-13 22:40:23.520: E/WindowState(790): getStack: Window{1f3699f8 u0 Starting com.****} couldn't find taskId=458 Callers=com.android.server.wm.WindowState.getDisplayContent:803 com.android.server.wm.WindowState.isDefaultDisplay:1331 com.android.server.wm.WindowStateAnimator.updateSurfaceWindowCrop:1301 com.android.server.wm.WindowStateAnimator.setSurfaceBoundariesLocked:1466 
02-13 22:40:23.525: E/WindowState(790): getStack: Window{1f3699f8 u0 Starting com.****} couldn't find taskId=458 Callers=com.android.server.wm.WindowState.getDisplayContent:803 com.android.server.wm.WindowState.getDisplayId:808 com.android.server.wm.InputMonitor.updateInputWindowsLw:311 com.android.server.wm.WindowManagerService.performLayoutAndPlaceSurfacesLockedInner:10414 
02-13 22:40:23.526: E/WindowState(790): getStack: Window{1f3699f8 u0 Starting com.*****} couldn't find taskId=458 Callers=com.android.server.wm.DisplayContent.setTouchExcludeRegion:237 com.android.server.wm.WindowManagerService.setFocusedStackFrame:4083 com.android.server.wm.WindowManagerService.performLayoutAndPlaceSurfacesLockedInner:10490 com.android.server.wm.WindowManagerService.performLayoutAndPlaceSurfacesLockedLoop:9105 
02-13 22:40:23.533: E/WindowState(790): getStack: Window{1f3699f8 u0 Starting com.****} couldn't find taskId=458 Callers=com.android.server.wm.WindowState.getDisplayContent:803 com.android.server.wm.WindowState.getWindowList:1399 com.android.server.wm.WindowManagerService.removeWindowInnerLocked:2863 com.android.server.wm.WindowManagerService.removeWindowLocked:2764 
02-13 22:40:23.533: E/WindowState(790): getStack: Window{1f3699f8 u0 Starting com.****} couldn't find taskId=458 Callers=com.android.server.wm.WindowState.getDisplayContent:803 com.android.server.wm.WindowManagerService.removeWindowInnerLocked:2868 com.android.server.wm.WindowManagerService.removeWindowLocked:2764 com.android.server.wm.WindowManagerService.removeWindow:2686 

它必须在Xamarin.Forms v3.5的发布模式下正常运行

0 个答案:

没有答案