dotnet-maui-workshop icon indicating copy to clipboard operation
dotnet-maui-workshop copied to clipboard

Not running on WSA

Open dotnetspark opened this issue 2 years ago • 5 comments

For some reason when I use WSA to debug it doesn't load the app. After deploying just stops. However, if I create a new MAUI app it works just fine.

Debug output

Forwarding debugger port 8871 Detecting existing process

am start -a "android.intent.action.MAIN" -c "android.intent.category.LAUNCHER" -n "com.companyname.monkeyfinder/crc64c2e3c35ecaf1aecc.MainActivity" Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.companyname.monkeyfinder/crc64c2e3c35ecaf1aecc.MainActivity } [me.monkeyfinde] Late-enabling -Xcheck:jni [me.monkeyfinde] Unexpected CPU variant for X86 using defaults: x86_64 [CompatibilityChangeReporter] Compat change id reported: 171979766; UID 10058; state: ENABLED [GraphicsEnvironment] ANGLE Developer option for 'com.companyname.monkeyfinder' set to: 'default' [GraphicsEnvironment] ANGLE GameManagerService for com.companyname.monkeyfinder: false [GraphicsEnvironment] Neither updatable production driver nor prerelease driver is supported. [NetworkSecurityConfig] No Network Security Config specified, using platform default [NetworkSecurityConfig] No Network Security Config specified, using platform default [debug-app-helper] Checking if libmonodroid was unpacked to /data/app/~~8ZeASPFyFONwGXXWJjHNSw==/com.companyname.monkeyfinder-x7eEDkuiV4qI-piIs7aPvQ==/lib/x86_64/libmonodroid.so [debug-app-helper] Native libs extracted to /data/app/~~8ZeASPFyFONwGXXWJjHNSw==/com.companyname.monkeyfinder-x7eEDkuiV4qI-piIs7aPvQ==/lib/x86_64, assuming application/android:extractNativeLibs == true [debug-app-helper] Setting up for DSO lookup in app data directories [debug-app-helper] Added filesystem DSO lookup location: /data/app/~~8ZeASPFyFONwGXXWJjHNSw==/com.companyname.monkeyfinder-x7eEDkuiV4qI-piIs7aPvQ==/lib/x86_64 [debug-app-helper] Using runtime path: /data/app/~~8ZeASPFyFONwGXXWJjHNSw==/com.companyname.monkeyfinder-x7eEDkuiV4qI-piIs7aPvQ==/lib/x86_64 [debug-app-helper] checking directory: /data/user/0/com.companyname.monkeyfinder/files/.__override__/lib [debug-app-helper] directory does not exist: /data/user/0/com.companyname.monkeyfinder/files/.__override__/lib [debug-app-helper] Checking whether Mono runtime exists at: /data/user/0/com.companyname.monkeyfinder/files/.override/libmonosgen-2.0.so [debug-app-helper] Checking whether Mono runtime exists at: /data/app/~~8ZeASPFyFONwGXXWJjHNSw==/com.companyname.monkeyfinder-x7eEDkuiV4qI-piIs7aPvQ==/lib/x86_64/libmonosgen-2.0.so [debug-app-helper] Mono runtime found at: /data/app/~~8ZeASPFyFONwGXXWJjHNSw==/com.companyname.monkeyfinder-x7eEDkuiV4qI-piIs7aPvQ==/lib/x86_64/libmonosgen-2.0.so [me.monkeyfinde] Attempt to remove non-JNI local reference, dumping thread [DOTNET] JNI_OnLoad: JNI_OnLoad in pal_jni.c [monodroid] Creating public update directory: /data/user/0/com.companyname.monkeyfinder/files/.__override__ [me.monkeyfinde] Attempt to remove non-JNI local reference, dumping thread [monodroid-debug] Trying to initialize the debugger with options: --debugger-agent=transport=dt_socket,loglevel=0,address=127.0.0.1:8871,server=y,embedding=1 [mono] debugger-agent: Unable to listen on 55

Running the app for the second time doesn't actually stop and although it looks like it's going to load after 2 min it hasn't showed up yet. Here it is what the device logs are displaying

image

dotnetspark avatar May 27 '22 21:05 dotnetspark

I think that tcp port it's being forwarded, because adb connect reads 127.0.0.1:58526

dotnetspark avatar May 27 '22 21:05 dotnetspark

hmmm thoughts @Redth i dont' see why it would be any different between file->new and this one...

jamesmontemagno avatar May 28 '22 00:05 jamesmontemagno

No immediate ideas come to mind other than trying to completely uninstall WSA, reboot, and reinstall to try again?

Redth avatar Jun 02 '22 20:06 Redth

@Redth I just tried that and still the same. The Debug output is still the same. Below is the device log

image

dotnetspark avatar Jun 03 '22 19:06 dotnetspark

After some troubleshooting Ctrl+F5 works but not F5. The thing is with Ctrl+F5 you don't get Hot Reload

dotnetspark avatar Jun 08 '22 21:06 dotnetspark

I think this is more of a local machine problem than with the workshop

jamesmontemagno avatar Sep 19 '22 21:09 jamesmontemagno