simongeilfus / Cinder-Runtime

Runtime-Compiled C++ for Cinder
58 stars 43 forks source link

Unhandled exception when saving code on VS2017 #30

Closed mattfelsen closed 6 years ago

mattfelsen commented 6 years ago

Hello! Figured I'd give this block a shot. I'm on Win10, the latest Cinder (b953e7b67) & Cinder-Runtime (7d1646c) from git, and VS2017 with the VS2015 build tools but not the IDE itself. I retargeted Cinder , Cinder-Runtime, and the Basics example to the Win10 SDK but kept the platform toolset at v140, and had no issues compiling the debug & release shared targets for the Cinder or Cinder-Runtime libs. The Basics example starts up fine, but when I change a line of code I get this exception:

Unhandled exception at 0x00007FFC81664008 in Basics.exe: Microsoft C++ exception: runtime::FactoryException at memory location 0x000000000014C800. occurred

You can see it fails calling launch() inside AppBase::executeLaunch():

image

I briefly tried retargeting everything to the v141 toolset, starting with Cinder, but ran into separate issues there so I backed off since I'm not sure if Cinder is even working natively with VS2017/v141 yet.

Let me know if you've got any thoughts or what else I can provide to help figure it out. Thanks!

mattfelsen commented 6 years ago

Here's a bit of into from the Output window...

1>------ Runtime Compiler Build started: Project: Basics, Configuration: Debug_Shared x64 ------
1>  Basics.cpp
1>  Basics.cpp -> C:\Users\mattfelsen\Documents\Cinder\Cinder-0.9.2dev\blocks\Cinder-Runtime\samples\Basics\vc2015\build\x64\Debug_Shared\intermediate\runtime\Basics\build\Basics.dll
1>  Basics.cpp -> C:\Users\mattfelsen\Documents\Cinder\Cinder-0.9.2dev\blocks\Cinder-Runtime\samples\Basics\vc2015\build\x64\Debug_Shared\intermediate\runtime\Basics\build\Basics.pdb
========== Runtime Compiler Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========

Time Elapsed 00:00:00.049

Exception thrown at 0x00007FFBEE904008 in Basics.exe: Microsoft C++ exception: runtime::FactoryException at memory location 0x000000000014C800.
|fatal  | cinder::app::AppBase::executeLaunch[197] Uncaught exception, type: class runtime::FactoryException, what: Module Basics not found at 
Exception thrown at 0x00007FFBEE904008 in Basics.exe: Microsoft C++ exception: [rethrow] at memory location 0x0000000000000000.
Exception thrown at 0x00007FFBEE904008 in Basics.exe: Microsoft C++ exception: runtime::FactoryException at memory location 0x000000000014C800.
Unhandled exception at 0x00007FFBEE904008 in Basics.exe: Microsoft C++ exception: runtime::FactoryException at memory location 0x000000000014C800.
mattfelsen commented 6 years ago

bump šŸ™ƒ

mattfelsen commented 6 years ago

Hm, probably should have tested again before bumping. I just tried again (there have been a few VS 2017 updates since posting a few months ago), and now the app no longer crashes, but changes aren't reflected. I'll take another look at https://github.com/simongeilfus/Cinder-Runtime/issues/11 and/or poke around some more and hopefully report back with more helpful info.

mattfelsen commented 6 years ago

Just reporting back to say I gave this another shot today with Cinder 35e555f1c and Cinder-Runtime 7d1646c and it seems to be working now šŸ¤·šŸ¼ā€ā™‚ļø šŸ™ƒ