已修改集合的Xamarin随机异常
我创建了一个简单的导航应用程序,其中有多个屏幕,其中包含选择器、列表视图、按钮和使用Skia sharp SVG的图像 一切似乎都正常运行,但有时它会在任意位置随机抛出异常。即使我让应用程序打开一段时间,我也会遇到同样的异常 它给出的错误是 收集被修改;枚举操作不能执行” 我试图调试它。每次它崩溃并出现以下堆栈跟踪时: 位于System.Collections.Generic.List已修改集合的Xamarin随机异常,xamarin,exception,xamarin.forms,xamarin.android,crash,Xamarin,Exception,Xamarin.forms,Xamarin.android,Crash,我创建了一个简单的导航应用程序,其中有多个屏幕,其中包含选择器、列表视图、按钮和使用Skia sharp SVG的图像 一切似乎都正常运行,但有时它会在任意位置随机抛出异常。即使我让应用程序打开一段时间,我也会遇到同样的异常 它给出的错误是 收集被修改;枚举操作不能执行” 我试图调试它。每次它崩溃并出现以下堆栈跟踪时: 位于System.Collections.Generic.List1+枚举器[T].MoveNextRare()[0x00013]中:0 位于System.Collections
1+枚举器[T].MoveNextRare()[0x00013]中:0
位于System.Collections.Generic.List
1+枚举数[T].MoveNext()[0x0004a]中:0
位于D:\a\1\s\Xamarin.Forms.Platform.Android.VisualElementTracker.HandleredRandeed中的Xamarin.Forms.Internals.EventArg`1[T]e)[0x00022]
位于D:\a\1\s\Xamarin.Forms.Core\VisualElement.cs:581中的Xamarin.Forms.VisualElement.BatchCommit()[0x0001c]
在D:\a\1\s\Xamarin.Forms.Core\AnimationExtensions.cs中的Xamarin.Forms.AnimationExtensions.handletweenerfished(System.Object o,System.EventArgs args)[0x000cb]处
位于D:\a\1\s\Xamarin.Forms.Core\Tweener.cs:103中的Xamarin.Forms.Tweener.b_uu22_0(System.Int64步骤)[0x00095]
在D:\a\1\s\Xamarin.Forms.Core\Internals\Ticker.cs:102中的Xamarin.Forms.Internals.Ticker.SendSignals(System.Int64步骤)[0x0003c]处
位于D:\a\1\s\Xamarin.Forms.Core\Internals\Ticker.cs:91中的Xamarin.Forms.Internals.Ticker.SendSignals(System.Int32 timestep)[0x00014]
位于D:\a\1\s\Xamarin.Forms.Platform.Android.Android.ticker.OnValOnUpdate中的Xamarin.Forms.Platform.Android.Android.ticker.OnValOnUpdate(System.Object sender,Android.Animation.ValueAnimator+AnimatorUpdateEventArgs e)[0x00000]
在0中的Android.Animation.ValueAnimator+IAnimatorUpdateListenerImplementor.OnAnimationUpdate(Android.Animation.ValueAnimator动画)[0x00017]处
在Android.Animation.ValueAnimator+IAnimatorUpdateListenerInvoker.n\u OnAnimationUpdate\u Landroid\u Animation\u ValueAnimator\u(System.IntPtr jnienv,System.IntPtr native\u this,System.IntPtr native\u Animation)[0x00011]in:0
at(包装器动态方法)Android.Runtime.DynamicMethodNameCounter.17(intptr,intptr,intptr)
工具:
- Visual Studio for Mac:8.0.3(版本14)
- Xamarin Mac开发:8.0.2
- 三星Galaxy S9
- 联想标签3 7
- 一加五吨