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
using xrandr with external monitor - unhandled error #71
Comments
I tried to reproduce this, and I couldn't. It looks like something is nil when it should be defined, but without a way to reproduce it myself I can't handle the nil case properly. Is it possible this is a freebsd thing? |
dbjergaard notifications@github.com writes:
I'm not sure. Do you haven any suggestions for pinning this down? Is Joseph |
Please use this issue for further discussion |
I don't think it is a freebsd issue, as this also has affected my archlinux box for something like 8 months. It showed up first when I started using an external monitor. |
I am affected by this on Debian. It seems to only happen when there are frames in the monitor that is turned off by xrandr. |
To be clear, if I run the steps to reproduce on an empty desktop, it will work as expected. But if I put windows on the external monitor, then run the xrandr commands, stump will crash? |
Put another way: I know this seems like a lot to ask, but I can't for the life of me reproduce this on my machines. |
David Bjergaard notifications@github.com writes:
Hi, Whether I start X with startx or with xdm and if I move ~/.stumpwmrc out Connect an external VGA monitor to my laptop. Run xrandr --output VGA1 --auto --above LVDS1 --output LVDS1 --auto then run xrandr --output VGA1 --off then do a The error I get, which is different from the one I initially reported The value NIL is not of type STUMPWM::FRAME. The package versions I have running on the laptop are I also have two monitors connected to my desktop at work and I just Just let me know if there is anything else I can test. Joseph |
Could you please post your .xinitrc or .xsession, as well as steps from turning the computer on to when the crash happens. I gather that this is what is happening:
At this point, I'm much less interested in the stack trace as I am in reproducing the effect myself. |
David Bjergaard notifications@github.com writes:
Here is
I can 1. log in with xdm or 2. without a login manger then type 'startx. It
The external monitor is connected with a vga cable, so it makes no
I don't have to open any windows or even switch focus to the external
That's it.
Feel free to ask anything else. I'll do my best to help isolate the Joseph |
I get this every time, regardless of how many windows are open and where. I have no desktop environment. .xinitrc looks like this: xsetroot -cursor_name left_ptr export GTK_IM_MODULE=fcitx export XMODIFIERS="@im=fcitx" export QT_IM_MODULE=fcitx exec /usr/local/bin/stumpwm I start out with the external monitor plugged in (though it also happens if I plug it in later). I run "startx", X starts and my desktop is mirrored on the larger, external monitor. I open an xterm, and run the shell script ~/.screenlayout/two.sh, which contains: #!/bin/sh Then immediately after I run ~/.screenlayout/one.sh, which contains: #!/bin/sh And it crashes. I haven't opened any windows or even really issued any StumpWM commands at all, apart from that one xterm window. |
OK, I reproduced the issue! I was running unity-settings-daemon which is hijacking some of the XLIB events (it is also causing strange external monitor behavior). That's a separate issue though. For now, I have a procedure to reproduce the bug, and I have the region of the code. Now I just need some time to figure it out. Unless someone else can jump on the hacking wagon. Here's my minimal reproduction steps:
|
Guess removed head by frame number. Fixes #71
David Bjergaard notifications@github.com writes: Confirmed. Thanks! Joseph |
xrandr --output VGA1 --auto --above LVDS1 --output LVDS1 --auto
xrandr --output VGA1 --off
This results in the unhandled error pasted at the bottom. I recently updated to 0.9.8-14-g61a7cf2 compiled with sbcl 1.1.12,1 on FreeBSD 9-STABLE amd64 running Xorg-server 1.12.4_4,1. I didn't see this error in the past. If there is any other information I can offer, please let me know.
The value NIL is not of type STUMPWM::FRAME.
Backtrace for: #<SB-THREAD:THREAD "main thread" RUNNING {1003E84023}>
0: ((:METHOD STUMPWM::GROUP-CURRENT-WINDOW (STUMPWM::TILE-GROUP)) #<STUMPWM::TILE-GROUP {10054F7773}>) [fast-method]
1: (STUMPWM::HIDE-WINDOW #S(TILE-WINDOW "New Issue · stumpwm/stumpwm - Conkeror" #x1000070))
2: ((:METHOD STUMPWM::GROUP-REMOVE-HEAD (STUMPWM::TILE-GROUP T)) #<STUMPWM::TILE-GROUP {10054F7773}> #S(frame 1 NIL 0 0 1366 768)) [fast-method]
3: (STUMPWM::REMOVE-HEAD #S<screen #<XLIB:SCREEN :0.0 1366x768x24 TRUE-COLOR>> #S(frame 1 NIL 0 0 1366 768))
4: (STUMPWM::SCALE-SCREEN #S<screen #<XLIB:SCREEN :0.0 1366x768x24 TRUE-COLOR>> (#S(frame 0 NIL 0 0 1366 768)))
5: ((LABELS #:G110 :IN "/usr/home/jrm/scm/stumpwm.git/events.lisp") :STACK-MODE NIL :WINDOW #<XLIB:WINDOW :0 A7> :X 0 :Y 0 :WIDTH 1680 :HEIGHT 1818 :BORDER-WIDTH 0 :VALUE-MASK NIL)
6: (STUMPWM::HANDLE-EVENT :DISPLAY #<XLIB:DISPLAY :0 (The X.Org Foundation R11204000)> :EVENT-KEY :CONFIGURE-NOTIFY :EVENT-CODE 22 :SEND-EVENT-P NIL :SEQUENCE 29768 :EVENT-WINDOW #<XLIB:WINDOW :0 A7> :WINDOW #<XLIB:WINDOW :0 A7> :ABOVE-SIBLING NIL :X 0 :Y 0 :WIDTH 1680 :HEIGHT 1818 :BORDER-WIDTH 0 :OVERRIDE-REDIRECT-P NIL)
7: ((FLET SB-THREAD::WITH-RECURSIVE-LOCK-THUNK :IN XLIB:PROCESS-EVENT))
8: ((FLET SB-IMPL::TIMEOUT-BODY :IN XLIB:PROCESS-EVENT))
9: (XLIB:PROCESS-EVENT #<XLIB:DISPLAY :0 (The X.Org Foundation R11204000)> :HANDLER # :TIMEOUT 0 :PEEK-P NIL :DISCARD-P NIL :FORCE-OUTPUT-P T)
10: (STUMPWM::STUMPWM-INTERNAL-LOOP)
11: (STUMPWM::STUMPWM-INTERNAL ":0")
12: (STUMPWM ":0")
13: ((LAMBDA NIL :IN "/usr/home/jrm/scm/stumpwm.git/make-image.lisp"))
14: ((FLET #:WITHOUT-INTERRUPTS-BODY-54 :IN SB-EXT:SAVE-LISP-AND-DIE))
15: ((LABELS SB-IMPL::RESTART-LISP :IN SB-EXT:SAVE-LISP-AND-DIE))
The text was updated successfully, but these errors were encountered: