Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to cast object of type 'Mono.Debugger.Soft.PointerValue' to type 'Mono.Debugger.Soft.PrimitiveValue' #5916

Closed
Henry948 opened this issue May 6, 2021 · 13 comments
Assignees
Labels
Area: Debugger Issues using or interacting with the debugger.

Comments

@Henry948
Copy link

Henry948 commented May 6, 2021

Expected Behavior

App is expected to run and not crash

Actual Behavior

App Crashes

Version Information

Visual Studio Community 2019 16.9.4

Log File

System.InvalidCastException: Unable to cast object of type 'Mono.Debugger.Soft.PointerValue' to type 'Mono.Debugger.Soft.PrimitiveValue'.
at Mono.Debugging.Soft.SoftDebuggerAdaptor.TargetObjectToObject(EvaluationContext ctx, Object obj) in C:\A\1\216\s\external\debugger-libs\Mono.Debugging.Soft\SoftDebuggerAdaptor.cs:line 2673
at Mono.Debugging.Evaluation.ExpressionEvaluator.TargetObjectToExpression(EvaluationContext ctx, Object obj) in C:\A\1\216\s\external\debugger-libs\Mono.Debugging\Mono.Debugging.Evaluation\ExpressionEvaluator.cs:line 87
at Mono.Debugging.Evaluation.ObjectValueAdaptor.CreateObjectValueImpl(EvaluationContext ctx, IObjectValueSource source, ObjectPath path, Object obj, ObjectValueFlags flags) in C:\A\1\216\s\external\debugger-libs\Mono.Debugging\Mono.Debugging.Evaluation\ObjectValueAdaptor.cs:line 474
at Mono.Debugging.Soft.SoftDebuggerAdaptor.CreateObjectValueImpl(EvaluationContext ctx, IObjectValueSource source, ObjectPath path, Object obj, ObjectValueFlags flags) in C:\A\1\216\s\external\debugger-libs\Mono.Debugging.Soft\SoftDebuggerAdaptor.cs:line 1545
at Mono.Debugging.Evaluation.ObjectValueAdaptor.CreateObjectValue(EvaluationContext ctx, IObjectValueSource source, ObjectPath path, Object obj, ObjectValueFlags flags) in C:\A\1\216\s\external\debugger-libs\Mono.Debugging\Mono.Debugging.Evaluation\ObjectValueAdaptor.cs:line 96
System.InvalidCastException: Unable to cast object of type 'Mono.Debugger.Soft.PointerValue' to type 'Mono.Debugger.Soft.PrimitiveValue'.
at Mono.Debugging.Soft.SoftDebuggerAdaptor.TargetObjectToObject(EvaluationContext ctx, Object obj) in C:\A\1\216\s\external\debugger-libs\Mono.Debugging.Soft\SoftDebuggerAdaptor.cs:line 2673
at Mono.Debugging.Evaluation.ExpressionEvaluator.TargetObjectToExpression(EvaluationContext ctx, Object obj) in C:\A\1\216\s\external\debugger-libs\Mono.Debugging\Mono.Debugging.Evaluation\ExpressionEvaluator.cs:line 87
at Mono.Debugging.Evaluation.ObjectValueAdaptor.CreateObjectValueImpl(EvaluationContext ctx, IObjectValueSource source, ObjectPath path, Object obj, ObjectValueFlags flags) in C:\A\1\216\s\external\debugger-libs\Mono.Debugging\Mono.Debugging.Evaluation\ObjectValueAdaptor.cs:line 474
at Mono.Debugging.Soft.SoftDebuggerAdaptor.CreateObjectValueImpl(EvaluationContext ctx, IObjectValueSource source, ObjectPath path, Object obj, ObjectValueFlags flags) in C:\A\1\216\s\external\debugger-libs\Mono.Debugging.Soft\SoftDebuggerAdaptor.cs:line 1545
at Mono.Debugging.Evaluation.ObjectValueAdaptor.CreateObjectValue(EvaluationContext ctx, IObjectValueSource source, ObjectPath path, Object obj, ObjectValueFlags flags) in C:\A\1\216\s\external\debugger-libs\Mono.Debugging\Mono.Debugging.Evaluation\ObjectValueAdaptor.cs:line 96
System.InvalidCastException: Unable to cast object of type 'Mono.Debugger.Soft.PointerValue' to type 'Mono.Debugger.Soft.PrimitiveValue'.
at Mono.Debugging.Soft.SoftDebuggerAdaptor.TargetObjectToObject(EvaluationContext ctx, Object obj) in C:\A\1\216\s\external\debugger-libs\Mono.Debugging.Soft\SoftDebuggerAdaptor.cs:line 2673
at Mono.Debugging.Evaluation.ExpressionEvaluator.TargetObjectToExpression(EvaluationContext ctx, Object obj) in C:\A\1\216\s\external\debugger-libs\Mono.Debugging\Mono.Debugging.Evaluation\ExpressionEvaluator.cs:line 87
at Mono.Debugging.Evaluation.ObjectValueAdaptor.CreateObjectValueImpl(EvaluationContext ctx, IObjectValueSource source, ObjectPath path, Object obj, ObjectValueFlags flags) in C:\A\1\216\s\external\debugger-libs\Mono.Debugging\Mono.Debugging.Evaluation\ObjectValueAdaptor.cs:line 474
at Mono.Debugging.Soft.SoftDebuggerAdaptor.CreateObjectValueImpl(EvaluationContext ctx, IObjectValueSource source, ObjectPath path, Object obj, ObjectValueFlags flags) in C:\A\1\216\s\external\debugger-libs\Mono.Debugging.Soft\SoftDebuggerAdaptor.cs:line 1545
at Mono.Debugging.Evaluation.ObjectValueAdaptor.CreateObjectValue(EvaluationContext ctx, IObjectValueSource source, ObjectPath path, Object obj, ObjectValueFlags flags) in C:\A\1\216\s\external\debugger-libs\Mono.Debugging\Mono.Debugging.Evaluation\ObjectValueAdaptor.cs:line 96
Loaded assembly: data-0xb400006f5750e110 [External]
Loaded assembly: data-0xb400006f5752e130 [External]
Loaded assembly: data-0xb400006f674f00a0 [External]
Loaded assembly: data-0xb400006fa74f1050 [External]
Loaded assembly: data-0xb400006f574fe100 [External]
Loaded assembly: netstandard.dll [External]
Resolved pending breakpoint for 'Xamarin.HotReload.HotReloadAgent.BreakpointSendToIde(System.String)' to D:\a\1\s\HotReload\Source\Xamarin.HotReload.Agent\HotReloadAgent.cs:370 [0x00000].
Loaded assembly: System.Core.dll [External]
Resolved pending breakpoint for 'Xamarin.HotReload.HotReloadAgent.BreakpointCheckpoint()' to D:\a\1\s\HotReload\Source\Xamarin.HotReload.Agent\HotReloadAgent.cs:365 [0x00000].
Loaded assembly: System.Xml.dll [External]
Thread started: #2
Thread started: #3
Thread started: #4
Loaded assembly: System.Runtime.Serialization.dll [External]
Loaded assembly: System.ServiceModel.Internals.dll [External]
[ActivityThread] ActivityThread::handleMakeApplication() data=AppBindData{appInfo=ApplicationInfo{928c0b6 com.companyname.beer_garden1}} appContext=android.app.ContextImpl@3d5b1b7 appContext.mOpPackageName=com.companyname.beer_garden1 appContext.mBasePackageName=com.companyname.beer_garden1 appContext.mPackageInfo=android.app.LoadedApk@8ac9d24 Caller=android.app.ActivityThread.handleBindApplication:7411 android.app.ActivityThread.access$1500:05-06 02:34:52.152 E/SecVibrator-HAL-AIDL-CORE( 885): HW_API: true
[monodroid-assembly] ZIP: local header of05-06 02:34:52.229 D/SecVolume.SecVolumeStore( 1840): > New State : [STATE_NO_DISPATCH]
[monodroid-assembly] /data/app/~~blRhdkF-hqMb2YH4JIYQCw==/com.companyname.beer_garden1-k467s3GyMUN9qz1zhb06pg==/base.apk entry: res/anim/abc_slide05-06 02:34:52.231 D/InputDispatcher( 1376): Focused application set to (0): c235a5b
[monodroid-assembly] /data/ap05-06 02:34:52.232 W/System.err(29362): at android.os.Handler.handleCallback(Handler.java:938)
[monodroid-assembly] /data/app/~~blRhdkF-hqMb2YH4JIYQCw==/com.companyname.beer_garden1-k4605-06 02:34:52.234 V/MARsPolicyManager( 1376): Current Home Package com.sec.android.app.launcher Resumed
[monodroid-assembly] ZIP: l05-06 02:34:52.234 V/WindowManager( 1376): Computed rotation=ROTATION_0 (0) for display id=0 based on lastOrientation=SCREEN_ORIENTATION_NOSENSOR (5) and oldRotation=ROTATION_0 (0), caller=com.android.server.wm.DisplayRotation.updateOrientation:390 com.android.server.wm.DisplayContent.updateOrientation:1692 com.android.server.wm.DisplayContent.updateOrientation:1621 com.android.server.wm.RootWindowContainer.ensureVisibilityAndConfig:2134 com.android.server.wm.ActivityStack.resumeTopActivityInnerLocked:2236 com.android.server.wm.ActivityStack.resumeTopActivityUncheckedLocked:1820
[monodroid-assembly] /data/app/~~blRhdkF-hqMb2YH4JIYQCw==/com.companyname.beer_garden1-k467s3GyMUN9qz1zhb06pg==/base.apk entry: re05-06 02:34:52.237 D/SurfaceControl( 1376): nativeSetFlags Done : Surface(name=Input Consumer recents_animation_input_consumer)/@0x853531e
[monodroid-assembly] /dataImpl.performTraversals:3245 android.view.ViewRootImpl.doTraversal:2508 android.view.ViewRootImpl$TraversalRunnable.run:9784 android.view.Choreographer$CallbackRecord.run:1010 android.view.Choreographer.doCallbacks:809 android.view.Choreographer.doFrame:744 android.view.Choreographer$FrameDisplayEventReceiver.run:995
[monodroid-assembly] /data/app/~~blRhdkF-hqMb2YH4JIYQCw==/com.companyname.beer_garden1-k467s3GyMUN9qz1zhb06pg==/base.apk entry: r05-06 02:34:52.244 W/LauncherAppWidgetHost( 2165): setListenIfResumed, mFlags = 0
[monodroid-assembly] 05-06 02:34:52.251 D/SemGameManager( 1376): isGamePackage(), ret=false
[monodroid-assembly] /data/app/~~blRhdkF-hqMb2YH4JIYQCw==/com.companyname.beer_garden1-k467s3GyMUN9qz1zhb06pg==/base.apk entry: res/color-v05-06 02:34:52.257 I/SurfaceControl( 9399): assignNativeObject: nativeObject = 0 Surface(name=null)/@0x37cd8ab / android.view.SurfaceControl.readFromParcel:1115 android.view.IWindowSession$Stub$Proxy.relayout:1787 android.view.ViewRootImpl.relayoutWindow:8827 android.view.ViewRootImpl.performTraversals:3245 android.view.ViewRootImpl.doTraversal:2508 android.view.ViewRootImpl$TraversalRunnable.run:9784 android.view.Choreographer$CallbackRecord.run:1010 android.view.Choreographer.doCallbacks:809 android.view.Choreographer.doFrame:744 android.view.Choreographer$FrameDisplayEventReceiver.run:995
[monodroid-assembly] ZIP: loca05-06 02:34:52.258 I/AbstractProxyReflection( 9399): Equals method
[monodroid-assembly] /data/app/~~blRhdkF-hqMb2YH4JIYQCw==/com.com05-06 02:34:52.262 D/PkgDataHelper( 1376): getGamePkgData(). com.sec.android.app.launcher
[monodroid-assembly] /data/app/~~blRhdkF-hqMb2YH4JIYQCw==/com.companyname.beer_garden1-k467s3GyMUN9qz1zhb06pg==/base.apk entry: res/color/material_on_surface_emphasis_m05-06 02:34:52.266 I/LauncherRecentsView( 2165): onStateTransitionStart Normal
[monodroid-assembly] ZIP: local header offset: 38359; data offsetExpanded: false
[monodroid-assembly] /data/app/~~blRhdkF-hqMb2YH4JIYQCw==/com.companyname.beer_ga05-06 02:34:52.270 W/System.err(29362): at android.os.Looper.loop(Looper.java:246)
[monodroid-assembly] /data/app/~~blRhdkF-hqMb2YH4JIYQCw==/com.companyname.beer_garden1-k467s3GyMUN9qz1zhb06pg==/base.apk entry: res/color/mtrl_btn_te(name=Input Consumer recents_animation_input_consumer)/@0x853531e
[05-06 02:47:38.817 W] /data/app/~~blRhdkF-hqMb2YH4JIYQCw==/comWorkerManager( 2065): Releasing worker: [searchplate]/[26]/[com.google.android.apps.gsa.staticplugins.dp.c]
[monodroid-assembly] /data/app/~~blRhdkF-hqMb2YH4JIYQCw==/com.companyname.beer_garden1-k467s3GyMUN9qz1zhb06pg==/base.apk entry: res/c05-06 02:34:52.282 I/Launcher( 2165): setWallpaperOffsets
[monodroid-assembly] /data/app/~~blRhdkF-hqMb2YH4JIYQCw==/com.companyname.beer_garden1-k467s3GyMUN9qz105-06 02:34:52.285 I/A ( 2065): New state for worker [context]: e (handler: 1399b48)
[monodroid-assembly] ZIP: l05-06 02:34:52.289 I/A ( 2065): New state for worker [audio]: e (handler: bb0c819)
[monodroid-assembly] ZIP: local header offset: 54432; data offset: 54513; file size: 464Manager( 1376): Reparenting to leash, surface=Surface(name=2438cf5 StatusBar)/@0x170c7c9, leashParent=Surface(name=WindowToken{6902a2c android.os.BinderProxy@f80f47e})/@0x85a7ece
[monodroid-assembly] /data/app/~~blRhdkF-hqMb2YH4JIurfaceControl( 1376): nativeRelease nativeObject s[-5476376675656283648]
[monodroid-assembly] /data/app/~~blRhdkF-hqMb2YH4JIYQCw==/com.companyname.beer_garden1-k467s3GyMUN9qz1zhb06pg==/base.apk entr05-06 02:34:52.294 I/SystemUiVisibilityPolicyController( 1376): handleMessage: entry what = 1
[monodroid-assembly] ZIP: local header offset: 59063; data of05-06 02:34:52.294 V/WindowManager( 1376): vsysui=1700
[monodroid-assembly] /data/app/~~blRhdkF-hqMb2YH4JIYQC05-06 02:34:52.297 W/System.err( 9399): android.app.ActivityManager No method java.lang.NoSuchMethodException: android.app.ActivityManager.getRecentTasksForUser [int, int, int]
[monodroid-assembly] /data/app/~~blRhdkF-hqMb2YH4JIYQCw==/com.companyname.beer_garden1-k467s3GyMUN9qz1zhb06pg==ot]/[24]/[com.google.android.apps.gsa.staticplugins.searchboxroot.z]
[monodroid-assembly] /data/app/~~blRhdkF-hqMb2YH4JIYQCw==/com.companyname.beer_garden1-k467s3GyMUN9qz1zhb06pg==/base.apk entry: res/drawable/abc_li05-06 02:34:52.303 I/WorkerManager( 2065): Releasing worker: [context]/[50]/[com.google.android.apps.gsa.staticplugins.ai.h]
[monodroid-assembly] /data/app/~~blRhdkF-hqMb2YH4JIYQCw==/com.companyname.beer_garden1-k467s3GyMUN9qz1zhb06pg==/base.apk entry: k=1)/@0xdce2454, leashParent=Surface(name=DefaultTaskDisplayArea)/@0x9a490d
[monodroid-assembly] ZIP: local header offset:05-06 02:34:52.311 I/AbstractProxyReflection( 9399): Equals method
[monodroid-assembly] /data/app/~~blRhdkF-hqMb2YH4JIYQCw==/com.companyname.beer_garden1-k467s3GyMUN9qz1zhb06pg==/base.apk entry: res/drawable/navigation_empty_icon.xml05-06 02:34:52.314 I/WorkerManager( 2065): Releasing worker: [networkmonitor]/[39]/[com.google.android.apps.gsa.staticplugins.ci.i]
[monodroid-assembly] /data/app/~~blRhdkF-hqMb2YH4JIYQCw==/com.companyname.beer_garden1-k467s3GyMUN905-06 02:34:52.317 I/LiveIconUpdateEventHandler( 2165): setMinuteChangeAlarm
[monodroid-assembly] /data/app/~~blRhdkF-hqMb2YH4JIYQCw==/com.companyname.beer_garden1-k467s3GyMUN9qz1zhb06pg==/base.apk entry: reId=2907 isTranslucent=false clipRect=[0,0][1080,2400] contentInsets=[0,75][0,126] prefixOrderIndex=24 position=[0,0] sourceContainerBounds=[0,0][1080,2400] screenSpaceBounds=[0,0][1080,2400] localBounds=[0,0][1080,2400]
[monodroid-assembly] /data/app/~~blRhdkF-hqMb2YH4JIYQCw==/com.companyname.beer_garden1-k467s3GyMUN9qz1zhb06pg==/base.apk entry: res/drawable-mdpi-v4/abc_btn_switch_to_05-06 02:34:52.323 V/WindowManager( 1376): Relayout hash=cad18a7, pid=1840: mAttrs={(0,0)(1167x2400) gr=TOP START CENTER layoutInDisplayCutoutMode=always ty=WALLPAPER fmt=RGBX_8888 wanim=0x1030315
[monodroid-assembly] ZIP: local header offset: 103227; data offset: 1005-06 02:34:52.324 I/SurfaceControl( 9399): assignNativeObject: nativeObject = 0 Surface(name=null)/@0x56e8b08 / android.view.SurfaceControl.readFromParcel:1115 android.view.IWindowSession$Stub$Proxy.relayout:1777 android.view.ViewRootImpl.relayoutWindow:8827 android.view.ViewRootImpl.performTraversals:3245 android.view.ViewRootImpl.doTraversal:2508 android.view.ViewRootImpl$TraversalRunnable.run:9784 android.view.Choreographer$CallbackRecord.run:1010 android.view.Choreographer.doCallbacks:809 android.view.Choreographer.doFrame:744 android.view.Choreographer$FrameDisplayEventReceiver.run:995
[monodroid-assembly] ty onVisibilityChanged visible: true
[monodroid-assembly] /data/appned: old=(0,0,1080,2400) new=(0,0,1080,2400) req=(1080,2400)0 dur=6 res=0x1 s={true -5476376670820387520} ch=false fn=2
[monodroid-assembly] /data/app/~~blRhdkF-hqMb205-06 02:34:52.328 I/SurfaceControl( 2165): release : mNativeObject = -5476376675656435968 - Surface(name=Surface(name=21c63f6 NavigationBar0)/@0xb9e04fc - animation-leash)/@0x53b69e8 / android.view.-$$Lambda$Rl1VZmNJ0VZDLK0BAbaVGis0rrA.accept:2 android.view.InsetsSourceControl.release:170 android.view.InsetsSourceConsumer.setControl:202 android.view.InsetsController.onControlsChanged:833
[monodroid-assembly] /data/app/~~blRhdkF-hqMb2YH4JIYQCw==/com.companyname.05-06 02:34:52.329 I/PopupDataProvider( 2165): onNotificationFullRefresh prev dotInfoSize : 1
[monodroid-assembly] /data/app/~~blRhdkF-hqMb2YH4JIYQCw==/com.companyname.beer_garden1-k05-06 02:34:52.331 I/HYPER-HAL( 869): [RequestManager.cpp]releaseLocked(): Released ID : 950133
[monodroid-assembly] /data/app/~~blRhdkF-hqMb2YH4JIYQCw==/com.companyname.beer_garden1-k46705-06 02:34:52.343 I/InputMethodManager( 2165): startInputInner - mService.startInputOrWindowGainedFocus
[monodroid-assembly] ZIP: local header of05-06 02:34:52.351 I/HBD ( 6318): a needOff = true , isJpnConvertState : false, isForceOff = false
[monodroid-assembly] ZIP: local header offset: 124704; data offset: 124788; file size05-06 02:34:52.361 I/SurfaceControl(29991): nativeRelease nativeObject s[471226063088]
[monodroid-assembly] /data/app/~~blRhdkF-hqMb2YH4JIYQCw==/05-06 02:34:52.387 V/MdnieScenarioControlService( 1376): setUIMode from UI function(3)
[monodroid-assembly] /data/app/~~blRhdkF-hqMb2YH4JIYQCw==/com.companyname.beer_garden1-k05-06 02:34:52.492 I/wpa_supplicant(27486): Heartbeat 7190
[monodroid-assembly] /data/app/~~blRhdkF-hqMb2YH4JIYQCw==/com.companyname.beer_garden1-k467s3GyM05-06 02:34:52.544 I/PeopleHandlerManager( 9399): isExistVisibleHandler false
[monodroid-assembly] /data/app/~~blRhdkF-hqMb2YH4JIYQCw==/com.companyname.bee05-06 02:34:52.672 I/Pageboost( 1376): IO Prefetch for : com.whatsapp
[monodroid-assembly] ZIP: local header offset: 5538528; datsive=0 SEPF_SM-G998B_11_0009 audit_filtered
[monodroid-assembly] /data/app/~05-06 02:34:52.696 D/MobileSignalIconsSelector( 1840): getDataIconGroup(): 13
[monodroid-assembly] /data/app/~~blRhdkF-hqMb2YH4JIYQCw==/com.companyname.beer_gar05-06 02:34:52.706 D/SurfaceControl( 1376): nativeSetFlags Done : Surface(name=com.snapchat.android/com.snapchat.android.LandingPageActivity$_29991)/@0xa28bd7a
[Mono] Config attempting to parse: 'mscorlib.d05-06 02:34:53.153 I/BlurOperator( 2165): progress = 0.9896963, mBlurProgress = 1.0, forced = false, mForced = true
[Mono] Image addr05-06 02:34:53.226 I/SPayUpdater( 2165): updateSpayHandler, show = false, currentDefaultPage = false
[Mono] Image addref FormsViewGroup[0xb400006dc74692c0] (asmctx DEFAULT) -> FormsToTable privateImeOptions ( null )
[Mono] Image addref Xamarin.AndroidX.Annotation[0xb400006dc7469500] (asmctx DEFAULT) -> Xamarin.And05-06 02:34:53.232 I/HBD ( 6318): HoneyBoardService [PF_OP][onStartInput] 3979693 ns
[Mono] Assembly Xama05-06 02:34:53.976 I/Pageboost( 1376): active launch for : com.companyname.beer_garden1 , 0
[Mono] Image addref Xamarin.AndroidX.Browser[0xb40000605-06 02:34:53.978 D/CompatibilityChangeReporter( 1376): Compat change id reported: 135634846; UID 10418; state: DISABLED
[Mono] Image a 1000] HINT : NOT_EXIST list : [GPUMinFreq / 312000] [TIMEOUT / 1000]
[Mono] Config attroller( 2165): onControllerInterceptTouchEvent, clearState.
[Mono] Image addref Xamarin.AndroidX.Legacy.Support.Core.UI[0xb400006dc746da30] (asmctx DEFAULT) -> Xamarin.AndroidX.Legacy.Support.Core.UI.dll[0xb400006e77441270]ation(orient=SCREEN_ORIENTATION_UNSPECIFIED (-1), last=ROTATION_0 (0)); user=ROTATION_0 (0)
[Mono] Config attempting to parse: 'Xamarin.AndroidX.Lontroller( 2165): endDrag
[Mono] Assembly Xamarin.AndroidX.Lifecycle.ViewModelSavedState[0x05-06 02:34:54.088 D/StatusBarManagerService( 1376): notifyRequestedSystemKey recent=false home=false
[Mono] Pr05-06 02:34:54.124 V/WindowManager( 1376): Relayout hash=6c2b1fd, pid=2165: mAttrs={(0,0)(fillxfill) sim={adjust=nothing} layoutInDisplayCutoutMode=shortEdges ty=BASE_APPLICATION fmt=TRANSPARENT wanim=0x10302f2
[Mono] Config attempting ntrol:202 android.view.ImeInsetsSourceConsumer.setControl:154
[Mono] Assembly Xamarin.Androihide : mNativeObject = -5476376675119157888 - sc.mNativeObject = -5476376675656287904 - Surface(name=Input Consumer recents_animation_input_consumer)/@0x853531e
[Mono] Image addref Xamarin.AndroidX.ViewPager2[0xb400006dc7472590] (asmctx DEFAULT) -> Xamarin.05-06 02:34:54.129 D/PkgPredictorService-NapPreloadController( 1376): [ML] Sent pkg = com.snapchat.android uid: 0 type: ml
[Mono] Config attempting05-06 02:34:54.144 V/WindowManager( 1376): pfl=16020000
[Mono] Loading reference 0 of Java.Interop.dll asmctx DEFAULT05-06 02:34:54.147 I/SurfaceControl( 2165): release : mNativeObject = -5476376675656532624 - Surface(name=Surface(name=3e8d11d InputMethod)/@0xa7f4d63 - animation-leash)/@0xc5b1e8d / android.view.-$$Lambda$Rl1VZmNJ0VZDLK0BAbaVGis0rrA.accept:2 android.view.InsetsSourceControl.release:170 android.view.InsetsSourceConsumer.setControl:202 android.view.ImeInsetsSourceConsumer.setControl:154
[Mono] Assembly System[0xb400006dc7482a90] added to dom0xcbdeee
[Mono] 5-06 02:34:54.164 I/WindowManager( 1376): container=Task{6aba58a #2916 visible=false type=standard mode=fullscreen translucent=true A=10418:com.companyname.beer_garden1 U=0 StackId=2916 sz=1}
[Mono] -06 02:34:54.165 D/SemGameManager( 1376): isGamePackage(), pkgName=com.companyname.beer_garden1
[Mono] Assembly Xamarin.HotReload.Translations[0xb400006dc748aad0] added to domain RootDomain, re05-06 02:34:54.169 I/GameSDK@LifeCycle( 1376): noteResumeComponent(): package name : com.companyname.beer_garden1
[Mono] Reques05-06 02:34:54.188 D/SurfaceFlinger( 908): DEVICE | 0xb400007b343a6f10 | 0000 | RGBA_8888 | 0.0 0.0 1080.0 126.0 | 0 2274 1080 2400 | NavigationBar0$_1840#0
[Mono] RequestinSurfaceControl( 2165): finalize : nativeObject = -5476376675656491072 - Surface(name=Surface(name=Task=1)/@0xdce2454 - animation-leash)/@0xbe9547e
[Mono] Assembly Ref addref Beer Garden1[0xb400006dc7468780] -> Xamarin.Forms.Xaml[0xb400006dc747205-06 02:34:54.501 I/SurfaceControl( 1376): nativeRelease nativeObject s[-5476376675656334384]
[Mono] Assembly Ref addref Xamarin.AndroidX.Annotation[0xb400006dc7469500] -> mscorlib[0xb400006dc74673d0]eControl( 1376): nativeRelease nativeObject s[-5476376675656418048]
[Mono] Requesting loading reference 1 (of hide : mNativeObject = -5476376675119157888 - sc.mNativeObject = -5476376675656287904 - Surface(name=Input Consumer recents_animation_input_consumer)/@0x853531e
[Mono] Requesting loading reference 1 (of 5) of Xamarin.AndroidX.Aol( 1376): hide : mNativeObject = -5476376675119157888 - sc.mNativeObject = -5476376675656287904 - Surface(name=Input Consumer recents_animation_input_consumer)/@0x853531e
[Mono] Loading referen05-06 02:34:54.524 I/SurfaceControl( 2165): release : mNativeObject = -5476376675656521200 - Surface(name=Surface(name=3e8d11d InputMethod)/@0xa7f4d63 - animation-leash)/@0x186b3f9 / android.view.-$$Lambda$Rl1VZmNJ0VZDLK0BAbaVGis0rrA.accept:2 android.view.InsetsSourceControl.release:170 android.view.InsetsSourceConsumer.setControl:202 android.view.ImeInsetsSourceConsumer.setControl:154
[Mono] Requesting loading ref05-06 02:34:54.535 D/SurfaceControl( 1376): nativeSetFlags Done : Surface(name=Input Consumer pip_input_consumer)/@0xa68f758
[Mono] Loading reference 0 of Xamarin.AndroidX05-06 02:34:54.587 I/WorkerManager( 2065): Releasing worker: [actions]/[1]/[com.google.android.apps.gsa.staticplugins.actions.p]
[Mono] Loading reference 0 of Xamarin.AndroidX.CoordinatorLayout.dll asmctx DEFAULT, looking for mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyTokentaticplugins.a.d]
[Mono] Requesting loading reference 1 (o05-06 02:34:54.589 I/WorkerManager( 2065): Releasing worker: [audio]/[4]/[com.google.android.apps.gsa.staticplugins.n.i]
[Mono] Loading reference 1 of Xamari05-06 02:34:54.877 F/DEBUG (15518): Revision: '22'
[Mono] Assembly Ref addref Xamarin.AndroidX.Dtion: transit=TRANSIT_CRASHING_ACTIVITY_CLOSE mNextAppTransition=TRANSIT_UNSET alwaysKeepCurrent=false displayId=0 Callers=com.android.server.wm.DisplayContent.prepareAppTransition:5766 com.android.server.wm.DisplayContent.prepareAppTransition:5760 com.android.server.wm.ActivityStack.finishTopCrashedActivityLocked:2629 com.android.server.wm.RootWindowContainer.finishTopCrashedActivities:2623 com.android.server.wm.ActivityTaskManagerService$LocalService.finishTopCrashedActivities:8883
[Mono] Loading reference 0 of Xamarin.AndroidX.Lifecycle.Common.dll asmctx DEFAULT, looking for mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyTokenndroid.server.wm.ActivityStack.resumeTopActivityInnerLocked:2163 com.android.server.wm.ActivityStack.resumeTopActivityUncheckedLocked:1820 com.android.server.wm.ActivityRecord.makeActiveIfNeeded:5486
[Mono] Assembly Ref addref Xamarin.AndroidX.Lifecycle.LiveData[0x05-06 02:34:55.108 V/WindowManager( 1376): Relayout Window{6c2b1fd u0 com.sec.android.app.launcher/com.sec.android.app.launcher.activities.LauncherActivity}: viewVisibility=0 req=1080x2400
[Mono] Requesting loading reference 1 (of 4) of Xamarin.AndroidX.Lifecycle.ViewModelSa05-06 02:34:55.118 V/ActivityManager( 1376): Changed top to 10152,ProcessRecord{5b12247 2165:com.sec.android.app.launcher/u0a152}
[Mono] Loading reference 0 of Xamarin.AndroidX.RecyclerView.dll asmc05-06 02:34:55.122 E/TaskStackListenerAbstract( 1840): onTaskSnapshotChanged called by Binder.getCallingPid() 0 android.app.ITaskStackListener$Stub.onTransact:587 android.os.Binder.execTransactInternal:1195 android.os.Binder.execTransact:1159
[Mono] Assemb05-06 02:34:55.135 D/SurfaceFlinger( 908):
[Mono] Requesting loading reference 2 (of 6) of dat05-06 02:34:55.144 W/SessionLifecycleManager( 2065): Handover failed. Creating new session controller.
[Mono] Assembly Ref addref Xamarin.Android05-06 02:34:55.157 V/CAE ( 1376): stop(ContextProvider.java:155)
[Mono] Requ05-06 02:34:55.157 V/CAE ( 1376): disable(ActivityTrackerRunner.java:96)
[Mono] Requesting loading reference 3 (of 4) of Xamarin.AndroidX.CustomView.dl05-06 02:34:55.158 E/Sensors ( 855): inject_scontext_data: New ssp_data_injection_fd(41)
[Mono] Loading reference 2 of Xamarin.AndroidX.AppCompat.dll asmctx DEF05-06 02:34:55.159 I/SurfaceControl( 1376): nativeRelease nativeObject s[-5476376675656292608]
[Mono] Assembly Ref addref Xamarin.AndroidX.FragmFlinger( 908): id=104714 Removed ActivityRecord{bdfa3f5 u0 com.companyname.beer_garden1/crc64f891a3241dfc13c7.MainActivity t2916}#0 (81)
[Mono] Loading reference 4 of Beer Garden1.Android.dll asmctx DEFAULT, looking for Xamarin.Essentials, Version=1.0.0.0, CuList(ContextAwareService.java:329) - ===== Context Aware Service List =====
[Mono] Assembly Ref addref Beer Garden1.Android[0xb400006dc7468b70] -> Beer Garden1[0xb400006dc74ger( 2065): Releasing worker: [progress]/[379]/[com.google.android.apps.gsa.staticplugins.cx.a]
[Mono] Searching for 'java_interop_jnienv_call_nonvirtual_object_meth05-06 02:34:55.166 I/Layer ( 908): id=104713[1] Destroyed Task=2916#0
[Mono] Loading reference 6 of Xamarin.Forms.Platform.Android.dll asmctx DEFAULT, looking for Java.Interop, Version=0.1.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfdpi=385.8225}
[Mono] Requesting loa05-06 02:34:55.228 V/WindowManager( 1376): bhv=SHOW_TRANSIENT_BARS_BY_SWIPE
[Mono] Loading reference 0 of System.ServiceModel.Internals.dll asmctx DEFAULT, looking for mscorlib, Version=2.0.5.0, Culture=neutral, PublicK05-06 02:34:55.231 I/Pageboost( 1376): Launcher App Execution
[Mono] Assembly Ref addref System.Runtime.Serialization[0urface(name=21c63f6 NavigationBar0)/@0xb9e04fc - animation-leash)/@0xffa814a / android.view.-$$Lambda$Rl1VZmNJ0VZDLK0BAbaVGis0rrA.accept:2 android.view.InsetsSourceControl.release:170 android.view.InsetsSourceConsumer.setControl:202 android.view.InsetsController.onControlsChanged:833

@Henry948 Henry948 added Area: App Runtime Issues in `libmonodroid.so`. needs-triage Issues that need to be assigned. labels May 6, 2021
@grendello grendello added Area: Debugger Issues using or interacting with the debugger. needs-triage Issues that need to be assigned. and removed needs-triage Issues that need to be assigned. Area: App Runtime Issues in `libmonodroid.so`. labels May 6, 2021
@grendello grendello assigned dellis1972 and unassigned grendello May 6, 2021
@dellis1972
Copy link
Contributor

@Henry948 This looks like a Hot Reload issue. Unfortunately you will need to raise an issue via the Visual Studio ''Help->Send Feedback->Report a Problem' menu item so we can get this to the right team. This repo is for the Open Source Xamarin.Android issues, and this is related to Hot Reload this is part of the IDE experience.

Please make sure you mention Hot Reload and provide the stack trace you pasted here. I have had a quick chat with a Hot Reload maintainer and its not something they have seen before, so if you have a sample project which can reproduce the issue please attach that to the new issue as well. Or if a sample is not available provide detailed steps on how to reproduce the issue.

@Henry948
Copy link
Author

Henry948 commented May 6, 2021

@dellis1972 The button to report a problem doesn't do anything on my Visual Studio :(

@Henry948
Copy link
Author

Henry948 commented May 6, 2021

troubleshooting. With hot reload disabled the app still crashes

Forwarding debugger port 8864
Detecting existing process

am start -a "android.intent.action.MAIN" -c "android.intent.category.LAUNCHER" -n "com.companyname.beer_garden1/crc64f891a3241dfc13c7.MainActivity"
Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.companyname.beer_garden1/crc64f891a3241dfc13c7.MainActivity }
Loaded assembly: /data/data/com.companyname.beer_garden1/files/.override/Beer Garden1.Android.dll
Loaded assembly: /data/data/com.companyname.beer_garden1/files/.override/Beer Garden1.dll
Loaded assembly: /data/data/com.companyname.beer_garden1/files/.override/FormsViewGroup.dll [External]
Loaded assembly: /data/data/com.companyname.beer_garden1/files/.override/Xamarin.AndroidX.Activity.dll [External]
Loaded assembly: /data/data/com.companyname.beer_garden1/files/.override/Xamarin.AndroidX.Annotation.dll [External]
Loaded assembly: /data/data/com.companyname.beer_garden1/files/.override/Xamarin.AndroidX.Annotation.Experimental.dll [External]
Loaded assembly: /data/data/com.companyname.beer_garden1/files/.override/Xamarin.AndroidX.AppCompat.AppCompatResources.dll [External]
Loaded assembly: /data/data/com.companyname.beer_garden1/files/.override/Xamarin.AndroidX.AppCompat.dll [External]
Loaded assembly: /data/data/com.companyname.beer_garden1/files/.override/Xamarin.AndroidX.Arch.Core.Common.dll [External]
Loaded assembly: /data/data/com.companyname.beer_garden1/files/.override/Xamarin.AndroidX.Arch.Core.Runtime.dll [External]
Loaded assembly: /data/data/com.companyname.beer_garden1/files/.override/Xamarin.AndroidX.AsyncLayoutInflater.dll [External]
Loaded assembly: /data/data/com.companyname.beer_garden1/files/.override/Xamarin.AndroidX.Browser.dll [External]
Loaded assembly: /data/data/com.companyname.beer_garden1/files/.override/Xamarin.AndroidX.CardView.dll [External]
Loaded assembly: /data/data/com.companyname.beer_garden1/files/.override/Xamarin.AndroidX.Collection.dll [External]
Loaded assembly: /data/data/com.companyname.beer_garden1/files/.override/Xamarin.AndroidX.CoordinatorLayout.dll [External]
Loaded assembly: /data/data/com.companyname.beer_garden1/files/.override/Xamarin.AndroidX.Core.dll [External]
Loaded assembly: /data/data/com.companyname.beer_garden1/files/.override/Xamarin.AndroidX.CursorAdapter.dll [External]
Loaded assembly: /data/data/com.companyname.beer_garden1/files/.override/Xamarin.AndroidX.CustomView.dll [External]
Loaded assembly: /data/data/com.companyname.beer_garden1/files/.override/Xamarin.AndroidX.DocumentFile.dll [External]
Loaded assembly: /data/data/com.companyname.beer_garden1/files/.override/Xamarin.AndroidX.DrawerLayout.dll [External]
Loaded assembly: /data/data/com.companyname.beer_garden1/files/.override/Xamarin.AndroidX.Fragment.dll [External]
Loaded assembly: /data/data/com.companyname.beer_garden1/files/.override/Xamarin.AndroidX.Interpolator.dll [External]
Loaded assembly: /data/data/com.companyname.beer_garden1/files/.override/Xamarin.AndroidX.Legacy.Support.Core.UI.dll [External]
Loaded assembly: /data/data/com.companyname.beer_garden1/files/.override/Xamarin.AndroidX.Legacy.Support.Core.Utils.dll [External]
Loaded assembly: /data/data/com.companyname.beer_garden1/files/.override/Xamarin.AndroidX.Legacy.Support.V4.dll [External]
Loaded assembly: /data/data/com.companyname.beer_garden1/files/.override/Xamarin.AndroidX.Lifecycle.Common.dll [External]
Loaded assembly: /data/data/com.companyname.beer_garden1/files/.override/Xamarin.AndroidX.Lifecycle.LiveData.Core.dll [External]
Loaded assembly: /data/data/com.companyname.beer_garden1/files/.override/Xamarin.AndroidX.Lifecycle.LiveData.dll [External]
Loaded assembly: /data/data/com.companyname.beer_garden1/files/.override/Xamarin.AndroidX.Lifecycle.Runtime.dll [External]
Loaded assembly: /data/data/com.companyname.beer_garden1/files/.override/Xamarin.AndroidX.Lifecycle.ViewModel.dll [External]
Loaded assembly: /data/data/com.companyname.beer_garden1/files/.override/Xamarin.AndroidX.Lifecycle.ViewModelSavedState.dll [External]
Loaded assembly: /data/data/com.companyname.beer_garden1/files/.override/Xamarin.AndroidX.Loader.dll [External]
Loaded assembly: /data/data/com.companyname.beer_garden1/files/.override/Xamarin.AndroidX.LocalBroadcastManager.dll [External]
Loaded assembly: /data/data/com.companyname.beer_garden1/files/.override/Xamarin.AndroidX.Media.dll [External]
Loaded assembly: /data/data/com.companyname.beer_garden1/files/.override/Xamarin.AndroidX.MultiDex.dll [External]
Loaded assembly: /data/data/com.companyname.beer_garden1/files/.override/Xamarin.AndroidX.Print.dll [External]
Loaded assembly: /data/data/com.companyname.beer_garden1/files/.override/Xamarin.AndroidX.RecyclerView.dll [External]
Loaded assembly: /data/data/com.companyname.beer_garden1/files/.override/Xamarin.AndroidX.SavedState.dll [External]
Loaded assembly: /data/data/com.companyname.beer_garden1/files/.override/Xamarin.AndroidX.SlidingPaneLayout.dll [External]
Loaded assembly: /data/data/com.companyname.beer_garden1/files/.override/Xamarin.AndroidX.SwipeRefreshLayout.dll [External]
Loaded assembly: /data/data/com.companyname.beer_garden1/files/.override/Xamarin.AndroidX.Transition.dll [External]
Loaded assembly: /data/data/com.companyname.beer_garden1/files/.override/Xamarin.AndroidX.VectorDrawable.Animated.dll [External]
Loaded assembly: /data/data/com.companyname.beer_garden1/files/.override/Xamarin.AndroidX.VectorDrawable.dll [External]
Loaded assembly: /data/data/com.companyname.beer_garden1/files/.override/Xamarin.AndroidX.VersionedParcelable.dll [External]
Loaded assembly: /data/data/com.companyname.beer_garden1/files/.override/Xamarin.AndroidX.ViewPager.dll [External]
Loaded assembly: /data/data/com.companyname.beer_garden1/files/.override/Xamarin.AndroidX.ViewPager2.dll [External]
Loaded assembly: /data/data/com.companyname.beer_garden1/files/.override/Xamarin.Essentials.dll [External]
Loaded assembly: /data/data/com.companyname.beer_garden1/files/.override/Xamarin.Forms.Core.dll [External]
Loaded assembly: /data/data/com.companyname.beer_garden1/files/.override/Xamarin.Forms.Platform.Android.dll [External]
Loaded assembly: /data/data/com.companyname.beer_garden1/files/.override/Xamarin.Forms.Platform.dll [External]
Loaded assembly: /data/data/com.companyname.beer_garden1/files/.override/Xamarin.Forms.Xaml.dll [External]
Loaded assembly: /data/data/com.companyname.beer_garden1/files/.override/Xamarin.Google.Android.Material.dll [External]
Loaded assembly: /data/data/com.companyname.beer_garden1/files/.override/Xamarin.Google.Guava.ListenableFuture.dll [External]
Loaded assembly: /data/data/com.companyname.beer_garden1/files/.override/Mono.Android.dll [External]
Loaded assembly: /data/data/com.companyname.beer_garden1/files/.override/Java.Interop.dll [External]
Loaded assembly: /data/data/com.companyname.beer_garden1/files/.override/System.dll [External]
Loaded assembly: /data/data/com.companyname.beer_garden1/files/.override/Mono.Security.dll [External]
Loaded assembly: /data/data/com.companyname.beer_garden1/files/.override/netstandard.dll [External]
Loaded assembly: /data/data/com.companyname.beer_garden1/files/.override/System.Core.dll [External]
Loaded assembly: /data/data/com.companyname.beer_garden1/files/.override/System.Xml.dll [External]

@Henry948
Copy link
Author

Henry948 commented May 7, 2021

@dellis1972 I believe this is not an issue with hot reloading as the app persists to crash after this is disabled.

System.InvalidCastException: Unable to cast object of type 'Mono.Debugger.Soft.PointerValue' to type 'Mono.Debugger.Soft.PrimitiveValue'.
at Mono.Debugging.Soft.SoftDebuggerAdaptor.TargetObjectToObject(EvaluationContext ctx, Object obj) in C:\A\1\216\s\external\debugger-libs\Mono.Debugging.Soft\SoftDebuggerAdaptor.cs:line 2673
at Mono.Debugging.Evaluation.ExpressionEvaluator.TargetObjectToExpression(EvaluationContext ctx, Object obj) in C:\A\1\216\s\external\debugger-libs\Mono.Debugging\Mono.Debugging.Evaluation\ExpressionEvaluator.cs:line 87
at Mono.Debugging.Evaluation.ObjectValueAdaptor.CreateObjectValueImpl(EvaluationContext ctx, IObjectValueSource source, ObjectPath path, Object obj, ObjectValueFlags flags) in C:\A\1\216\s\external\debugger-libs\Mono.Debugging\Mono.Debugging.Evaluation\ObjectValueAdaptor.cs:line 474
at Mono.Debugging.Soft.SoftDebuggerAdaptor.CreateObjectValueImpl(EvaluationContext ctx, IObjectValueSource source, ObjectPath path, Object obj, ObjectValueFlags flags) in C:\A\1\216\s\external\debugger-libs\Mono.Debugging.Soft\SoftDebuggerAdaptor.cs:line 1545
at Mono.Debugging.Evaluation.ObjectValueAdaptor.CreateObjectValue(EvaluationContext ctx, IObjectValueSource source, ObjectPath path, Object obj, ObjectValueFlags flags) in C:\A\1\216\s\external\debugger-libs\Mono.Debugging\Mono.Debugging.Evaluation\ObjectValueAdaptor.cs:line 96
System.InvalidCastException: Unable to cast object of type 'Mono.Debugger.Soft.PointerValue' to type 'Mono.Debugger.Soft.PrimitiveValue'.
at Mono.Debugging.Soft.SoftDebuggerAdaptor.TargetObjectToObject(EvaluationContext ctx, Object obj) in C:\A\1\216\s\external\debugger-libs\Mono.Debugging.Soft\SoftDebuggerAdaptor.cs:line 2673
at Mono.Debugging.Evaluation.ExpressionEvaluator.TargetObjectToExpression(EvaluationContext ctx, Object obj) in C:\A\1\216\s\external\debugger-libs\Mono.Debugging\Mono.Debugging.Evaluation\ExpressionEvaluator.cs:line 87
at Mono.Debugging.Evaluation.ObjectValueAdaptor.CreateObjectValueImpl(EvaluationContext ctx, IObjectValueSource source, ObjectPath path, Object obj, ObjectValueFlags flags) in C:\A\1\216\s\external\debugger-libs\Mono.Debugging\Mono.Debugging.Evaluation\ObjectValueAdaptor.cs:line 474
at Mono.Debugging.Soft.SoftDebuggerAdaptor.CreateObjectValueImpl(EvaluationContext ctx, IObjectValueSource source, ObjectPath path, Object obj, ObjectValueFlags flags) in C:\A\1\216\s\external\debugger-libs\Mono.Debugging.Soft\SoftDebuggerAdaptor.cs:line 1545
at Mono.Debugging.Evaluation.ObjectValueAdaptor.CreateObjectValue(EvaluationContext ctx, IObjectValueSource source, ObjectPath path, Object obj, ObjectValueFlags flags) in C:\A\1\216\s\external\debugger-libs\Mono.Debugging\Mono.Debugging.Evaluation\ObjectValueAdaptor.cs:line 96
System.InvalidCastException: Unable to cast object of type 'Mono.Debugger.Soft.PointerValue' to type 'Mono.Debugger.Soft.PrimitiveValue'.
at Mono.Debugging.Soft.SoftDebuggerAdaptor.TargetObjectToObject(EvaluationContext ctx, Object obj) in C:\A\1\216\s\external\debugger-libs\Mono.Debugging.Soft\SoftDebuggerAdaptor.cs:line 2673
at Mono.Debugging.Evaluation.ExpressionEvaluator.TargetObjectToExpression(EvaluationContext ctx, Object obj) in C:\A\1\216\s\external\debugger-libs\Mono.Debugging\Mono.Debugging.Evaluation\ExpressionEvaluator.cs:line 87
at Mono.Debugging.Evaluation.ObjectValueAdaptor.CreateObjectValueImpl(EvaluationContext ctx, IObjectValueSource source, ObjectPath path, Object obj, ObjectValueFlags flags) in C:\A\1\216\s\external\debugger-libs\Mono.Debugging\Mono.Debugging.Evaluation\ObjectValueAdaptor.cs:line 474
at Mono.Debugging.Soft.SoftDebuggerAdaptor.CreateObjectValueImpl(EvaluationContext ctx, IObjectValueSource source, ObjectPath path, Object obj, ObjectValueFlags flags) in C:\A\1\216\s\external\debugger-libs\Mono.Debugging.Soft\SoftDebuggerAdaptor.cs:line 1545
at Mono.Debugging.Evaluation.ObjectValueAdaptor.CreateObjectValue(EvaluationContext ctx, IObjectValueSource source, ObjectPath path, Object obj, ObjectValueFlags flags) in C:\A\1\216\s\external\debug

@dellis1972
Copy link
Contributor

@Henry948 out of curiosity what Visual Studio extensions do you have installed? Its possible that you have two extensions with different versions of the Mono.Debugger.Soft assembly which are conflicting.

@Henry948
Copy link
Author

Henry948 commented May 7, 2021

@dellis1972 my extensions are xamarin.android sdk, xamarin.apple sdk , xamarin templates, incredibuild vuild acceleration, ML.NET Model Builder (preview) , Azure Data Lake and Stream Analytics Tools, visual studio intellicode, live share, web live preview, microsoft library manager, nugetreccommender and visual studio rich navigation

@Henry948
Copy link
Author

Henry948 commented May 7, 2021

I just ran an update on my extentions

@Henry948
Copy link
Author

Henry948 commented May 7, 2021

no chage happened

@ilyaklyukin
Copy link

Hi, have the same issue.
Updated to the latest nuget packages, turned off Hot reload, still have crash on every launch

System.InvalidCastException: Unable to cast object of type 'Mono.Debugger.Soft.PointerValue' to type 'Mono.Debugger.Soft.PrimitiveValue'.

This issue is critical for our project. Any updates on it?

@dellis1972
Copy link
Contributor

The only thing I can think of which might cause this is two different Mono.Debugger.Soft.dll assemblies being loaded somehow. Or one that is incompatible.

Can you search your VS install directory for Mono.Debugger.Soft.dll and see how many copies of it show up?

@joj
Copy link
Contributor

joj commented May 27, 2021

There may be two versions of mono.debugger.soft.dll, one in C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\Extensions\Xamarin\Mono.Debugging and one in C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\Extensions\Xamarin.VisualStudio. If that's the case, try keeping the one in Mono.Debugging (copying Mono.* from one folder to the other but making a backup first just in case). If that fixes it, then it's my bad and I can correct it :)

@toto287
Copy link

toto287 commented Jul 24, 2021

Hi everybody,

I tried the solution proposed by @joj , but it did not work. I have actually a android binding library and I just cannot execute it because of this error.

What can we try to resolve this issue?

Thank you very much

@jpobst jpobst removed the needs-triage Issues that need to be assigned. label Aug 5, 2021
@jpobst
Copy link
Contributor

jpobst commented Sep 14, 2022

This issue likely occurs in the Visual Studio integration, which is owned by a different team who does not use GitHub for issue tracking.

Please use the tools available inside of VS to report this issue. This allows the issue to be routed to the correct team, and provides them the correct logs they need to diagnose it.

Thanks!

@jpobst jpobst closed this as not planned Won't fix, can't repro, duplicate, stale Sep 14, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Oct 14, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Area: Debugger Issues using or interacting with the debugger.
Projects
None yet
Development

No branches or pull requests

7 participants