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

winrt with angle crash on createGLProgram, and help debugging #1336

Open
madrazo opened this issue Jun 22, 2019 · 0 comments
Open

winrt with angle crash on createGLProgram, and help debugging #1336

madrazo opened this issue Jun 22, 2019 · 0 comments

Comments

@madrazo
Copy link
Contributor

madrazo commented Jun 22, 2019

We suceeded running winrt with Cairo but it crashes when trying to run using Angle. Tryied many things but still get the error.

Using #1318
(https://github.com/madrazo/lime-1/tree/winrt8staticangle)

And tested with 2 different angle versions
https://github.com/madrazo/lime-1/tree/winrt7/project/lib/angle (works with NME)
https://github.com/madrazo/angle-ms/tree/vs2017 (ms version of angle enabled for vs2017)
(should be included in project/lib/angle)

Compile lime and DisplayingABitmap:
haxelib run lime rebuild winrt -64 -debug
haxelib run openfl test project.xml winrt -64 -debug

On visual studio 2017, Debug-Options-Symbols, added various directories such as :
C:...\lime\project\obj\msvc19-rt64-stat-debug-c
C:...\DisplayingABitmap\Export\winrt\obj
C:...\DisplayingABitmap\Export\winrt\obj\obj\msvc19-rt64-stat-debug-nc-c
C:\temp (HXCPP temp)
These enables to see the Call Stack, but I am not able to see the source.

I was getting the error "Main-debug.pdb not loaded", but solved it by setting "Use Managed Compatibility Mode" in Tools-Options-Debugging-General

To start debugging: On Debug-Other Debug Targets-Debug Installed App Package, look for "Displaying A Bitmap", choose Native Only or Mixed mode.

You can try enabling the Sleep function on lime/templates/winrt/static/Main.cpp to pause debugging.

You can see on the call stack that crashes on createGLProgram, but I cant access the souces
image

Any ideas to solve it would be appreciated

NOTE

You can also try to install it by creating the packaged appx with the -appx flag, e.g.
haxelib run openfl test project.xml winrt -64 -debug -appx

The first time you may need to create the certificate using the command that is shown on the command prompt, it will be created in
Export/winrt/scripts/DisplayingABitmap.pfx

Double click the pfx file and install on Local Machine, password openflexample, and "certificate store" to Trusted People
You can see your installed certificates on "Manage Computer Certificates. Check it is on Trusted People/Certificates

The next time it would use the certificate to sign the Appx but alternatively you can it manually with "C:\Program Files (x86)\Windows Kits\10\bin\10.0.17763.0\x64\SignTool.exe" sign /fd SHA256 /a /f Export/winrt/scripts/DisplayingABitmap.pfx /p openflexample Export/winrt/DisplayingABitmap.Appx
Double click the appx and it lets you install it and debug it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant