plane icon Welcome to Microsoft Flight Simulator’s SDK Q&A Platform!

You have questions regarding the SDK? DevMode Tools? SimConnect? You would like to submit an idea for future improvements, seek help or exchange knowledge? You’re in the right place.


Please take a moment to read the platform’s guidelines before you get started!


question

fsx360 avatar image
fsx360 asked simfan commented

WASM debug issue (nvwgf2umx.dll)

Hi there!


My question #1:

- MSFS > load project > Build Package

- run Visual Studio

- build wasm

- MSFS > Build Package

- Visual Studio > Debug > Attach to Process... Attach

- select FlightSimulator.exe


I got the folllowig:


yxkho1o1.png



bx8kyd51.png


And a bunch of these messages in VS Output:

Exception thrown at 0x00007FFAFF217814 (nvwgf2umx.dll) in FlightSimulator.exe: 0xC0000005: Access violation reading location 0x000002C49BD80250.

Exception thrown at 0x00007FFAFF217A57 (nvwgf2umx.dll) in FlightSimulator.exe: 0xC0000005: Access violation reading location 0x000002C49BD80010.


Some simple gauges from SDK Samples do not cause this error.


My question #2:

How to use "Edit And Continue" in Visual Studio when wasm debug?



MSFS 1.29.30.0, MSFS SDK 0.20.5.0, Visual Studio 2019 Version 16.11.23


Thanks for any help.

Eugene


gaugeswasmc++
yxkho1o1.png (26.5 KiB)
bx8kyd51.png (13.0 KiB)
1 comment
10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

ROB avatar image ROB commented ·

https://devsupport.flightsimulator.com/articles/11498/wasm-changes-for-su11.html

"Check that your Debug target doesn't optimize your code ("Optimization" = Disabled /Od). Otherwise, you won't be able to debug your code anymore."


regards
ROB


0 Likes 0 ·
FlyingRaccoon avatar image
FlyingRaccoon answered

Hello @fsx360

We would need your wasm module and ideally the source code to debug this issue.

Check section 3 here to provide content privately: How to report a bug or crash - MSFS DevSupport (flightsimulator.com)

Regards,
Sylvain

10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

GutsherrBus9 avatar image
GutsherrBus9 answered simfan commented

@FlyingRaccoon getting the same problem here. Only difference is for me it's another .pbd file that I'm told cannot be found. To give some more information: I have the VS Wasm Debugger Extension installed but don't know how to activate/use it yet. @fsx360 do you also have that extension installed without using it?

Sometimes I am able to debug a few steps before this happens.
1677534199673.png


1677534199673.png (31.1 KiB)
1 comment
10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

simfan avatar image simfan commented ·

Did you add the -AllowDebugger flag into your Steam's FlightSimulator Properties window?

Like this:

1677584777951.png


0 Likes 0 ·
1677584777951.png (76.6 KiB)

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 5 attachments (including images) can be used with a maximum of 19.1 MiB each and 23.8 MiB total.