Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/284.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 在当前参数寄存器中找到Xamarin.Forms iOS错误选择器名称:configureAnimation:forLayer:forKey:_C#_Ios_Xamarin.ios_Xamarin.forms_Hockeyapp - Fatal编程技术网

C# 在当前参数寄存器中找到Xamarin.Forms iOS错误选择器名称:configureAnimation:forLayer:forKey:

C# 在当前参数寄存器中找到Xamarin.Forms iOS错误选择器名称:configureAnimation:forLayer:forKey:,c#,ios,xamarin.ios,xamarin.forms,hockeyapp,C#,Ios,Xamarin.ios,Xamarin.forms,Hockeyapp,我在iOS上部署Xamarin Forms应用程序时遇到了一个问题,在我使用它时它突然崩溃 我注意到碰撞主要发生在我: 使用多个选择器(填写一些表单数据) 浏览网页的速度相当快(这是一份调查问卷,所以用户应该能够快速浏览) 这是我在HockeyApp上捕获的碰撞报告的一些部分: Hardware Model: iPad6,11 ... Parent Process: ??? [1] Date/Time: 2017-06-30T11:54:16Z Launch Tim

我在iOS上部署Xamarin Forms应用程序时遇到了一个问题,在我使用它时它突然崩溃

我注意到碰撞主要发生在我:

  • 使用多个选择器(填写一些表单数据)

  • 浏览网页的速度相当快(这是一份调查问卷,所以用户应该能够快速浏览)

这是我在HockeyApp上捕获的碰撞报告的一些部分:

Hardware Model:      iPad6,11
...
Parent Process:  ??? [1]

Date/Time:       2017-06-30T11:54:16Z
Launch Time:     2017-06-30T11:42:03Z
OS Version:      iPhone OS 10.3.2 (14F90)
Report Version:  104

Exception Type:  SIGSEGV
Exception Codes: SEGV_ACCERR at 0x10
Crashed Thread:  15

Application Specific Information:
Selector name found in current argument registers: configureAnimation:forLayer:forKey:
...
我还注意到,这种崩溃只发生在我使用OS 10.3时 我将Xamarin.Forms更新为2.3.4.247,但没有任何更改

这是我在visual studio 2017上在模拟器上调试时获得的本机stacktrace

MIRE_v2.iOS                         0x0000000101b195c1 mono_handle_native_crash + 257
MIRE_v2.iOS                         0x0000000101b255c0 mono_sigsegv_signal_handler + 288
libsystem_platform.dylib            0x000000010ea23b3a _sigtramp + 26
???                                 0x00007fdc4f00163c 0x0 + 140584194938428
UIKit                               0x00000001025934c8 -[UIViewAnimationState actionForLayer:forKey:forView:] + 99
UIKit                               0x00000001025be87e +[UIView(Animation) _defaultUIViewActionForLayer:forKey:] + 111
UIKit                               0x0000000102d9d3e4 -[UIView(UIKitManual) actionForLayer:forKey:] + 119
QuartzCore                          0x00000001086014bc -[CALayer actionForKey:] + 437
QuartzCore                          0x00000001085fcade _ZL12actionForKeyP7CALayerPN2CA11TransactionEP8NSString + 76
QuartzCore                          0x00000001085fca6c _ZN2CA5Layer12begin_changeEPNS_11TransactionEjRP11objc_object + 140
QuartzCore                          0x00000001085fce04 _ZN2CA5Layer6setterEj12_CAValueTypePKv + 164
QuartzCore                          0x0000000108608351 -[CALayer setOpacity:] + 43
MIRE_v2.iOS                         0x0000000101cc9d79 xamarin_dyn_objc_msgSend + 217
???                                 0x00000001269fc8f4 0x0 + 4942973172
???                                 0x0000000126b13b4d 0x0 + 4944116557
???                                 0x00000001266a291c 0x0 + 4939458844
MIRE_v2.iOS                         0x0000000101b28525 mono_jit_runtime_invoke + 1301
MIRE_v2.iOS                         0x0000000101bd9b58 do_runtime_invoke + 88
MIRE_v2.iOS                         0x0000000101c1b4da start_wrapper + 538
MIRE_v2.iOS                         0x0000000101c9cdcd inner_start_thread + 189
libsystem_pthread.dylib             0x000000010ea3593b _pthread_body + 180
libsystem_pthread.dylib             0x000000010ea35887 _pthread_body + 0
libsystem_pthread.dylib             0x000000010ea3508d thread_start + 13
这是运行模拟器的Mac的崩溃日志的一小部分(崩溃的线程,日志很长):

你知道这种行为的原因吗?或者如何处理

多谢各位

编辑:

这是另一份信息可能更丰富的报告:

Thread 11 Crashed:: tid_9017
0   libobjc.A.dylib                 0x000000010c116acb objc_msgSend + 11
1   com.apple.UIKit                 0x0000000100d427a6 -[UIViewAnimationState animationForLayer:forKey:forView:] + 1164
2   com.apple.UIKit                 0x0000000100d434c8 -[UIViewAnimationState actionForLayer:forKey:forView:] + 99
3   com.apple.UIKit                 0x0000000100d6e87e +[UIView(Animation) _defaultUIViewActionForLayer:forKey:] + 111
4   com.apple.UIKit                 0x000000010154d3e4 -[UIView(UIKitManual) actionForLayer:forKey:] + 119
5   com.apple.QuartzCore            0x0000000106e4d4bc -[CALayer actionForKey:] + 437
6   com.apple.QuartzCore            0x0000000106e48ade actionForKey(CALayer*, CA::Transaction*, NSString*) + 76
7   com.apple.QuartzCore            0x0000000106e48a6c CA::Layer::begin_change(CA::Transaction*, unsigned int, objc_object*&) + 140
8   com.apple.QuartzCore            0x0000000106e48e04 CA::Layer::setter(unsigned int, _CAValueType, void const*) + 164
9   com.apple.QuartzCore            0x0000000106e54351 -[CALayer setOpacity:] + 43
10  com.sf.rf                       0x0000000100479d79 xamarin_dyn_objc_msgSend + 217 (.trampolines-x86_64-objc_msgSend-post.inc:3)
11  ???                             0x0000000125584af4 0 + 4921510644
12  ???                             0x000000012645f2fd 0 + 4937085693
13  ???                             0x0000000125373c8c 0 + 4919344268
14  com.sf.rf                       0x00000001002d8525 mono_jit_runtime_invoke + 1301 (mini-runtime.c:2533)
15  com.sf.rf                       0x0000000100389b58 do_runtime_invoke + 88 (object.c:2860)
16  com.sf.rf                       0x00000001003cb4da start_wrapper + 538 (threads.c:847)
17  com.sf.rf                       0x000000010044cdcd inner_start_thread + 189 (mono-threads.c:1172)
18  libsystem_pthread.dylib         0x000000010d1e593b _pthread_body + 180
19  libsystem_pthread.dylib         0x000000010d1e5887 _pthread_start + 286
20  libsystem_pthread.dylib         0x000000010d1e508d thread_start + 13
注意:


我还注意到,当我单击一些指定了触发器的按钮(单击时更改其外观)时,会发生崩溃。

您是否在与主UI元素交互的后台线程上运行任何代码?@Digitalsa1nt我确实在后台运行一些异步工作,但它不会触及UI,它主要用于数据存储。是否有数据绑定到选取器源?@Digitalsa1nt目前,选取器中使用的所有数据都是硬编码(静态定义)的。当用户在页面之间来回移动时,您是否尝试保留或设置选取器的选定索引?
Thread 11 Crashed:: tid_9017
0   libobjc.A.dylib                 0x000000010c116acb objc_msgSend + 11
1   com.apple.UIKit                 0x0000000100d427a6 -[UIViewAnimationState animationForLayer:forKey:forView:] + 1164
2   com.apple.UIKit                 0x0000000100d434c8 -[UIViewAnimationState actionForLayer:forKey:forView:] + 99
3   com.apple.UIKit                 0x0000000100d6e87e +[UIView(Animation) _defaultUIViewActionForLayer:forKey:] + 111
4   com.apple.UIKit                 0x000000010154d3e4 -[UIView(UIKitManual) actionForLayer:forKey:] + 119
5   com.apple.QuartzCore            0x0000000106e4d4bc -[CALayer actionForKey:] + 437
6   com.apple.QuartzCore            0x0000000106e48ade actionForKey(CALayer*, CA::Transaction*, NSString*) + 76
7   com.apple.QuartzCore            0x0000000106e48a6c CA::Layer::begin_change(CA::Transaction*, unsigned int, objc_object*&) + 140
8   com.apple.QuartzCore            0x0000000106e48e04 CA::Layer::setter(unsigned int, _CAValueType, void const*) + 164
9   com.apple.QuartzCore            0x0000000106e54351 -[CALayer setOpacity:] + 43
10  com.sf.rf                       0x0000000100479d79 xamarin_dyn_objc_msgSend + 217 (.trampolines-x86_64-objc_msgSend-post.inc:3)
11  ???                             0x0000000125584af4 0 + 4921510644
12  ???                             0x000000012645f2fd 0 + 4937085693
13  ???                             0x0000000125373c8c 0 + 4919344268
14  com.sf.rf                       0x00000001002d8525 mono_jit_runtime_invoke + 1301 (mini-runtime.c:2533)
15  com.sf.rf                       0x0000000100389b58 do_runtime_invoke + 88 (object.c:2860)
16  com.sf.rf                       0x00000001003cb4da start_wrapper + 538 (threads.c:847)
17  com.sf.rf                       0x000000010044cdcd inner_start_thread + 189 (mono-threads.c:1172)
18  libsystem_pthread.dylib         0x000000010d1e593b _pthread_body + 180
19  libsystem_pthread.dylib         0x000000010d1e5887 _pthread_start + 286
20  libsystem_pthread.dylib         0x000000010d1e508d thread_start + 13