nokola
Topic Author
Posts: 188
Joined: 10 Mar 2015, 05:29

Noesis 2.0.2 crash on reimport all with invalid XAML

20 May 2017, 02:28

Just moved from 2.0.1 to 2.0.2, Reimort All worked OK in 2.0.1. Unity 5.6.1 in both cases

Now I get this crash:
Unity Editor [version: Unity 5.6.1f1_2860b30f0b54]

Noesis.dll caused an Access Violation (0xc0000005)
in module Noesis.dll at 0033:6afa50e4.

Crash dump files: https://1drv.ms/u/s!AspGCVZdWgTBuvNAVnl5M5gssBThxA

Edit: noticed new errors in 2.0.2 in the Console during reimport and fixed the XAMLs. After couple of reimport-crash cycles, I got rid of the errors in XAML and currently no crashes.
I removed these from my XAMLs:
systemtray:IsVisible
SupportedOrientations
CacheMode

Looks like any invalid property in XAML causes a crash.
Last edited by nokola on 23 May 2017, 06:39, edited 1 time in total.
 
User avatar
jsantos
Site Admin
Posts: 3906
Joined: 20 Jan 2012, 17:18
Contact:

Re: Noesis 2.0.2 crash on reimport all with invalid XAML

20 May 2017, 02:58

Did it happen just after upgrading the package? There is a problem with Unity and our native plugin library that makes Unity ignore it the first time you install the package. Just closing Unity and opening it again should solve the problem.

Invalid properties in XAML are now reported as errors. This is something new in 2.0.2 but it should never crash Unity. Could you confirm please that this was happening after restarting Unity?
 
User avatar
jsantos
Site Admin
Posts: 3906
Joined: 20 Jan 2012, 17:18
Contact:

Re: Noesis 2.0.2 crash on reimport all with invalid XAML

20 May 2017, 03:19

The dump you attached seems to indicate a different problem. Could you please file a ticket and put the minidump there? If possible we would like to have a version of your project before the changes you made for 2.0.2. Just to follow your steps and study why the application if crashing.

Thanks!
 
nokola
Topic Author
Posts: 188
Joined: 10 Mar 2015, 05:29

Re: Noesis 2.0.2 crash on reimport all with invalid XAML

20 May 2017, 06:42

It happened after upgrading the package, I restarted Unity 4-5 times, doing reimport all each time and same crash each time.

I'll try to find a good repro with a smaller project and open a bug. Do you have more details about where in the code/logic is the failure? If I know I can try to get a better repro project.
 
nokola
Topic Author
Posts: 188
Joined: 10 Mar 2015, 05:29

Re: Noesis 2.0.2 crash on reimport all with invalid XAML

20 May 2017, 07:30

 
nokola
Topic Author
Posts: 188
Joined: 10 Mar 2015, 05:29

Re: Noesis 2.0.2 crash on reimport all with invalid XAML

21 May 2017, 01:20

Update: Noesis is now completely unusable. Have been trying for the last 1+ hour to get it to not crash (on valid XAML)
It crashes when I open Unity, when I do reimport all, on Play, when closing Unity - basically all the time.
The crash is at a different address than before. Her are the dumps: https://1drv.ms/u/s!AspGCVZdWgTBuvNB3fJ8kxVJUgh3Ng
 
User avatar
ai_enabled
Posts: 231
Joined: 18 Jul 2013, 05:28
Contact:

Re: Noesis 2.0.2 crash on reimport all with invalid XAML

21 May 2017, 07:10

Yesterday I've also reported a crash issue (AccessViolationException) - in Noesis 2.0.2 Shutdown() method http://bugs.noesisengine.com/view.php?id=1090 Thought we're using C# SDK and not Unity, but the NoesisGUI C# API code is almost the same.
AFAIK, the Shutdown() method is called by Unity when need to reset the NoesisGUI state - I think it's expected in case of game or Unity Editor close, XAML reimport... so it might be the same issue.
I think this is related to this change in 2.0.2 (from changelog): "[Fixed] [C#] Deletion of native proxies was not thread-safe (infrequent random crashes)."
Waiting for a hotfix.
AtomicTorch Studio Pte. Ltd. http://atomictorch.com
 
nokola
Topic Author
Posts: 188
Joined: 10 Mar 2015, 05:29

Re: Noesis 2.0.2 crash on reimport all with invalid XAML

21 May 2017, 16:03

Thanks ai_enabled - good to know!
I moved back to 2.0.1 until the crash is fixed.
 
nikobarli
Posts: 180
Joined: 26 Apr 2017, 06:23

Re: Noesis 2.0.2 crash on reimport all with invalid XAML

22 May 2017, 01:52

I downloaded 2.0.2 C++ SDK and also experienced crash when loading my XAML.
Then I tried to build Src\Samples\D3D11\Tutorials.sln which come with the SDK and previously work in 2.0.1, and it also crashed when loading the XAML. Below is the callstack (I am using VS2015 Update 3).

> Tutorial05.exe!Noesis::Core::Ptr<Noesis::Gui::FrameworkElement>::Ptr<Noesis::Gui::FrameworkElement>(Noesis::Gui::FrameworkElement * ptr) Line 30 C++
Tutorial05.exe!NsDynamicCast<Noesis::Core::Ptr<Noesis::Gui::FrameworkElement>,Noesis::Core::BaseComponent>(const Noesis::Core::Ptr<Noesis::Core::BaseComponent> & ptr) Line 18 C++
Tutorial05.exe!Noesis::Gui::GUI::LoadXaml<Noesis::Gui::FrameworkElement>(const char * filename) Line 114 C++
Tutorial05.exe!wWinMain(HINSTANCE__ * hInstance, HINSTANCE__ * hPrevInstance, wchar_t * lpCmdLine, int nCmdShow) Line 253 C++
Tutorial05.exe!invoke_main() Line 118 C++
Tutorial05.exe!__scrt_common_main_seh() Line 253 C++
Tutorial05.exe!__scrt_common_main() Line 296 C++
Tutorial05.exe!wWinMainCRTStartup() Line 17 C++
kernel32.dll!BaseThreadInitThunk() Unknown
ntdll.dll!RtlUserThreadStart() Unknown
 
User avatar
jsantos
Site Admin
Posts: 3906
Joined: 20 Jan 2012, 17:18
Contact:

Re: Noesis 2.0.2 crash on reimport all with invalid XAML

22 May 2017, 04:05

Thanks everybody for all the feedback and reports. We are working in a hotfix version to be released urgently.

Please, share the stack traces (minidump always preferred if possible) in our tracker.

Who is online

Users browsing this forum: Bing [Bot] and 96 guests