Logrus
Topic Author
Posts: 52
Joined: 22 Jul 2015, 12:16

Inheritance from NoesisApp::Window crashes in version 3.0

25 May 2020, 12:03

Hi
We have implemented multi-window functionality using the WindowEx class inherited from Noesis App::Window
https://www.youtube.com/watch?v=r2SANnWfX8o

After migrating to version 3.0, the application crashes inside NoesisApp::Window
crash causes any access to Window fields (Window::mActivated, Window::mDeactivated(),... ParentClass::MeasureOverride ...)
mActivated.Empty() -> crash
void Window::OnDisplayActivated(Display*)
{
    mView->Activate();
    SetReadOnlyProperty<bool>(IsActiveProperty, true);
    mActivated(this, EventArgs::Empty); //CRASH!!!
}
 
User avatar
jsantos
Site Admin
Posts: 3905
Joined: 20 Jan 2012, 17:18
Contact:

Re: Inheritance from NoesisApp::Window crashes in version 3.0

25 May 2020, 12:10

Hi! What part of that video is NoesisGUI? The whole editor is NoesisGUI?

I am going to need more information and context about the crash, not sure how you used WindowEx and a call-stack will definitely help.
 
Logrus
Topic Author
Posts: 52
Joined: 22 Jul 2015, 12:16

Re: Inheritance from NoesisApp::Window crashes in version 3.0

25 May 2020, 12:19

The UI is fully implemented on Noesis + Unigine Engine
 
Logrus
Topic Author
Posts: 52
Joined: 22 Jul 2015, 12:16

Re: Inheritance from NoesisApp::Window crashes in version 3.0

25 May 2020, 12:53

Dump
https://yadi.sk/d/rSIqNNLvBWl1fg
Size Window::ArrangeOverride(const Size& finalSize)
{
    if (mDisplay != 0)
    {
        float clientW = (float)mDisplay->GetClientWidth();
        float clientH = (float)mDisplay->GetClientHeight();

        ParentClass::ArrangeOverride(Size(clientW, clientH));   // !!!CRASH
        return Sizei((uint32_t)GetWidth(), (uint32_t)GetHeight());
    }

    return ParentClass::ArrangeOverride(finalSize);
}
 
User avatar
jsantos
Site Admin
Posts: 3905
Joined: 20 Jan 2012, 17:18
Contact:

Re: Inheritance from NoesisApp::Window crashes in version 3.0

25 May 2020, 13:07

Without knowing what modifications you have it is impossible to solve this. Are you able to reproduce this in our samples? Could you also paste a callstack?
 
Logrus
Topic Author
Posts: 52
Joined: 22 Jul 2015, 12:16

Re: Inheritance from NoesisApp::Window crashes in version 3.0

25 May 2020, 13:30

Image
Attachments
Window.mActivated.PNG
 
Logrus
Topic Author
Posts: 52
Joined: 22 Jul 2015, 12:16

Re: Inheritance from NoesisApp::Window crashes in version 3.0

25 May 2020, 13:37

I will do a test based on Sample
 
User avatar
jsantos
Site Admin
Posts: 3905
Joined: 20 Jan 2012, 17:18
Contact:

Re: Inheritance from NoesisApp::Window crashes in version 3.0

25 May 2020, 13:38

Are you able to reproduce this in our samples without source code modifications?
 
Logrus
Topic Author
Posts: 52
Joined: 22 Jul 2015, 12:16

Re: Inheritance from NoesisApp::Window crashes in version 3.0

25 May 2020, 13:43

ok
 
Logrus
Topic Author
Posts: 52
Joined: 22 Jul 2015, 12:16

Re: Inheritance from NoesisApp::Window crashes in version 3.0

07 Jun 2020, 20:14

I made an example and found errors:
- different macros when building projects (NS_PROFILE)
- missing resources in styles (Fonts)

Who is online

Users browsing this forum: Google [Bot] and 69 guests