[gui] reenable fit panel testing and fix nullptr access#21882
[gui] reenable fit panel testing and fix nullptr access#21882ferdymercury wants to merge 4 commits intoroot-project:masterfrom
Conversation
Test Results 22 files 22 suites 3d 10h 11m 32s ⏱️ For more details on these failures, see this check. Results for commit 522f4c3. ♻️ This comment has been updated with latest results. |
| if (values) { | ||
| fValues = *values; | ||
| fContext = gVirtualX->CreateGC(gVirtualX->GetDefaultRootWindow(), values); | ||
| if (gVirtualX) |
There was a problem hiding this comment.
Checking of gVirtualX does not make big sense - it always present, also in batch mode
There was a problem hiding this comment.
It was null when i checked with the debugger. Note that TVirtualX::Instance can still return nullptr when on batch
There was a problem hiding this comment.
|
I checkout your branch and try to run test.
|
Yes, same here, I had deactivated (commented) locally those old tests for the moment and was focusing on whether it was running at all without crashing.
Weird, where? I see a different behavior on Linux. It just crashes when deleting the TGTooltip at shutdown for me.
Same here, that's what I would say "expected", a lot of errors in batch mode of not being able to load icons, but no crashes. |
I mean when I run compiled executable.
This is most challenging part - try to understand if there double deletion or just wrong pointer released. |
|
I probably found the reason why it crashes. Also side problem is that in Fixing this two problems makes test running for me |
|
First step is #21907 @ferdymercury After such two steps we will be able to enable this and may be other GUI tests in CI |
| if (gVirtualX) | ||
| gVirtualX->ChangeWindowAttributes(fId, &wattr); |
There was a problem hiding this comment.
Probably these changes are no longer needed since I was trying out different things and you already found the culprit in TGGC
This Pull request:
Changes or fixes:
initialize to null instead
Fixes #21881
Checklist: