-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nxagent segfults with -geometry fullscreen #987
Comments
Mit directly, but I have added all screens and Singlescreen, can you please
test those, too? Will check the code later today.
Simon Matter <notifications@github.com> schrieb am Sa., 16. Jan. 2021,
12:54:
… I've just compiled latest code for my test systems and see a new crash
with f60ac57
<f60ac57>
NX agent doesn't like -geometry fullscreen anymore and segfaults.
Backtrace from catched core is below:
Core was generated by `./nxagent -geometry fullscreen'.
Program terminated with signal 11, Segmentation fault.
...
(gdb) bt
#0 XYToWindow (x=0, y=0) at ../../dix/events.c:1935
#1 0x0000000000420555 in CheckMotion (xE=0x0) at NXevents.c:377
#2 WindowsRestructured () at ../../dix/events.c:2044
#3 0x000000000049fb62 in nxagentSetRootClip (enable=1, pScreen=0x203e650) at Screen.c:2266
#4 nxagentResizeScreen ***@***.***=0x203e650, ***@***.***=1920, ***@***.***=1200, mmWidth=<optimized out>, ***@***.***=0, mmHeight=<optimized out>, ***@***.***=0, ***@***.***=1) at Screen.c:2433
#5 0x000000000049fdb8 in nxagentChangeScreenConfig ***@***.***=0, width=1920, height=1200, ***@***.***=1) at Screen.c:3759
#6 0x00000000004a8021 in nxagentSwitchAllScreens (pScreen=0x203e650, switchOn=<optimized out>) at Window.c:906
#7 0x000000000049b075 in nxagentMaximizeToFullScreen ***@***.***=0x203e650) at Screen.c:341
#8 0x00000000004aa478 in nxagentMapDefaultWindows () at Window.c:2559
#9 0x0000000000415c12 in InitRootWindow (pWin=0x206f0c0) at NXwindow.c:171
#10 0x000000000040e467 in main (argc=3, argv=0x7ffd81c3f468, envp=<optimized out>) at main.c:333
Any clues where in the recent changes this could come from.
Regards,
Simon
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#987>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABQHBZEYJ5MNU5NTNGCTYLTS2F46NANCNFSM4WFGTU7A>
.
|
Results:
In my setup I can simply use |
Maybe this could also be added?
|
Please retry with this patch:
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Screen.c
b/nx-X11/programs/Xserver/hw/nxagent/Screen.c
index 173d2fb82..197004d80 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Screen.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Screen.c
@@ -337,11 +337,13 @@ void nxagentMinimizeFromFullScreen(ScreenPtr pScreen)
*/
void nxagentMaximizeToFullScreen(ScreenPtr pScreen)
{
+ /*
if (nxagentOption(AllScreens))
nxagentSwitchAllScreens(pScreen, True);
else
nxagentSwitchFullscreen(pScreen, True);
return;
+ */
/*
XUnmapWindow(nxagentDisplay, nxagentIconWindow);
I am a bit puzzled why I have added that at all. It seems to work for me
without. Can you please test allscreens and onescreen again after applying
above patch?
Thx,
Uli (who only has one display available at the moment...)
…On Sat, Jan 16, 2021 at 5:57 PM Simon Matter ***@***.***> wrote:
Maybe this could also be added?
--- ./nx-X11/programs/Xserver/hw/nxagent/Args.c.orig 2021-01-16 00:28:13.000000000 +0100
+++ ./nx-X11/programs/Xserver/hw/nxagent/Args.c 2021-01-16 17:56:05.949256176 +0100
@@ -2083,7 +2083,7 @@
ErrorF("-full utilize full regeneration\n");
ErrorF("-class string default visual class\n");
ErrorF("-depth int default depth\n");
- ErrorF("-geometry WxH+X+Y window size and position\n");
+ ErrorF("-geometry WxH+X+Y window size and position or 'allscreens' / 'onescreen'\n");
ErrorF("-bw int window border width\n");
ErrorF("-name string window name\n");
ErrorF("-scrns int number of screens to generate\n");
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#987 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABQHBZCYYVV4R4B4WB4GRO3S2HAOVANCNFSM4WFGTU7A>
.
|
While it doesn't crash anymore, it now doesn't go into fullscreen mode when using With With Note that I also have only a single display to test. |
sigh.... Thanks anyway, so pushing this patch will at least fix the
crashes. I will test more...
…On Sun, Jan 17, 2021 at 11:23 AM Simon Matter ***@***.***> wrote:
While it doesn't crash anymore, it now doesn't go into fullscreen mode when using onescreen.
With allscreens it shows:
Info: Screen [0] resized to geometry [1920x1200] fullscreen [1].
and works fullscreen.
With onescreen it shows:
Info: Screen [0] resized to geometry [1920x1119] fullscreen [1].
and works in a maximized window.
Note that I also have only a single display to test.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
I've just compiled latest code for my test systems and see a new crash with f60ac57
NX agent doesn't like
-geometry fullscreen
anymore and segfaults.Backtrace from catched core is below:
Any clues where in the recent changes this could come from.
Regards,
Simon
The text was updated successfully, but these errors were encountered: