Repository navigation
Open
Description
Note: i am not expecting some fancy solution to this, i'm just suggesting that it doesn't crash
My window manager(i3) starts applications as tiles with forced sizes by default. Fuse does not like this, and segfaults. I figured out that was the reason, as adding a float override to the window title in i3's config solved the issue.
Stack trace:
Program received signal SIGSEGV, Segmentation fault.
0x00005555558edaa4 in uBuildMemory(uType*) ()
(gdb) bt
#0 0x00005555558edaa4 in uBuildMemory(uType*) ()
#1 0x00005555558f447f in uType::Build() [clone .part.187] ()
#2 0x00005555558f3826 in uGetParameterization(uTypeKey const&) ()
#3 0x00005555558f3f68 in uType::MakeType(uType*, ...) ()
#4 0x00005555558a34fe in g::Uno::Platform::CoreApp_build(uType*) ()
#5 0x00005555558f4980 in uType::Init() ()
#6 0x00005555558a6f53 in g::Uno::Platform::CoreApp::Current() ()
#7 0x0000555555858092 in g::Uno::Application::Current1() ()
#8 0x00005555558b2183 in g::Uno::Runtime::Implementation::Internal::Bootstrapper::OnWindowSizeChanged(Xli::Window*) ()
#9 0x00005555558ec21c in uMainLoop::OnSizeChanged(Xli::Window*) ()
#10 0x00005555558fe39a in Xli::Window::ProcessMessages() ()
#11 0x00005555558eca1b in uMainLoop::uMainLoop() ()
#12 0x0000555555589326 in main ()
Expected behavior
App launches in some way shape or form
Actual behavior
Segfault
Suggested fix
My assumption is that uno is making assumptions based on an expected window size. I think, without looking at the code, that basing all size calculations on the actual window size coud fix this. But it's probably not that easy.
OS details
➜ ~ screenfetch
-`
.o+` petterroea@petterroea-arch
`ooo/ OS: Arch Linux
`+oooo: Kernel: x86_64 Linux 5.1.4-arch1-1-ARCH
`+oooooo: Uptime: 9h 15m
-+oooooo+: Packages: 1357
`/:-:++oooo+: Shell: zsh 5.7.1
`/++++/+++++++: Resolution: 7680x2160
`/++++++++++++++: DE: KDE
`/+++ooooooooooooo/` WM: i3
./ooosssso++osssssso+` CPU: Intel Core i7-8700K @ 12x 4.7GHz [27.8°C]
.oossssso-````/ossssss+` GPU: GeForce GTX 1060 6GB
-osssssso. :ssssssso. RAM: 10554MiB / 15973MiB
:osssssss/ osssso+++.
/ossssssss/ +ssssooo/-
`/ossssso+/:- -:/+osssso+-
`+sso+:-` `.-/+oso:
`++:. `-/+/
.` `/
Metadata
Metadata
Assignees
Labels
No labels
Activity
mortend commentedon Aug 8, 2019
Thank you for testing!
kusma commentedon Aug 8, 2019
From the stack-trace, it doesn't seem related to the window-manager, though.
mortend commentedon Aug 8, 2019
If you want to debug more, you can try passing
-DDEBUG_UNSAFEand-DDEBUG_NATIVEtouno build, and see if that generates any interesting output. Maybe also-DDEBUG_ARC1.petterroea commentedon Aug 19, 2019
will do
petterroea commentedon Aug 21, 2019
When running with
-DDEBUG_ARC1I getpetterroea commentedon Aug 21, 2019
Running with all other flags, i get a pretty "This program has crashed" Dialog, and the following output in gdb:
Backtrace:
petterroea commentedon Aug 21, 2019
@kusma I agree it doesn't seem to be directly related to the window-manager, but my theory is that it is a "follow error" due to uno disagreeing with the OS on the window size, as it is forced. I do not expect any references to the window manager in this case, and we do see that
OnSizeChangedis in the stack trace, so this is obviously somehow connected to the window sizekusma commentedon Aug 22, 2019
No, this seems to happen in the type system, which I think is extremely unlikely to be related to window geometry.
petterroea commentedon Aug 23, 2019
Ok. How can i assist in debugging this issue further
mortend commentedon Aug 26, 2019
If you can set a breakpoint and inspect local variables, it'd be interesting to see the values of
FullNamefields intypeandbaseparameters inuCopyBaseFields().mortend commentedon Aug 26, 2019
Also, does it crash if you run a plain empty project?