sgonchar
Topic Author
Posts: 40
Joined: 15 Mar 2021, 22:11

Stack overflow when nothing on screen is focusable

21 Apr 2022, 00:23

Hello,
We're on Noesis v3.1.4-11293
Starting to see a crash/stack overflow when nothing on screen is focusable and we press Tab / R2.

Stack is full of GetElementRecursive::GetNext()
Likely because this keeps getting next in KeyboardNavigation.cpp
        if (!newFocused && currentIndex == UnsetTabIndex)
        {
            GetTabIndexed search(mRoot.GetPtr(), currentIndex);
            newFocused = search.GetNext();
        }
I haven't checked yet if this is new to this version of Noesis.
We can avoid it by setting something that's not meant to be focused at this time to be focusable, but this seems like a hack.

What can we do to disable focusing in this case entirely / prevent Tab from recusing?
 
User avatar
sfernandez
Site Admin
Posts: 2536
Joined: 22 Dec 2011, 19:20

Re: Stack overflow when nothing on screen is focusable

21 Apr 2022, 11:09

I was not able to reproduce the stack overflow crash, could you please create a ticket in our bugtracker and attach a small sample project so we can investigate it?

Have you tried to set KeyboardNavigation.TabNavigation="None" and KeyboardNavigation.ControlTabNavigation="None" in your screen root?
 
sgonchar
Topic Author
Posts: 40
Joined: 15 Mar 2021, 22:11

Re: Stack overflow when nothing on screen is focusable

21 Apr 2022, 16:41

Hi
Thank you, that fixes the crash by removing the tab navigation .. which we really don't need in this case.
I'll try to see how to repro it in a sample / small project.
Cheers.
 
sgonchar
Topic Author
Posts: 40
Joined: 15 Mar 2021, 22:11

Re: Stack overflow when nothing on screen is focusable

22 Apr 2022, 22:14

Having a hard time figuring out which bit does this, can't repro in samples .. we might have some kind of circular onFocus events happening.
 
User avatar
sfernandez
Site Admin
Posts: 2536
Joined: 22 Dec 2011, 19:20

Re: Stack overflow when nothing on screen is focusable

25 Apr 2022, 21:14

Thank you, that fixes the crash by removing the tab navigation .. which we really don't need in this case.
Great, I'm marking this as solved, although if you find a way to reproduce the stack overflow crash in an isolated scenario please file a report in our bugtracker.

Who is online

Users browsing this forum: Semrush [Bot] and 3 guests