You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug emacs -nw calls wr_adjust_canvas_size() despite webrender not running. This results (under tao on my hardware) in a segfault when tao tries to get a non-existent window. This also causes emacs -nw to fail when a graphical environment can't be found, e.g. over ssh.
To Reproduce
./configure --with-winit=tao --with-wr-gl=glutin
Expected behavior
Emacs should not call any graphical code when launching in a terminal.
OS
Which os do you use? (uname -a)
Linux 6.2.1-arch1-1 #1 SMP PREEMPT_DYNAMIC Sun, 26 Feb 2023 03:39:23 +0000 x86_64 GNU/Linux
Error callstack
Program received signal SIGSEGV, Segmentation fault.
0x0000555555ab7bdc inwrterm::display_info::DisplayInfo::get_inner::haca182995104828c ()
(gdb) bt
#0 0x0000555555ab7bdc in wrterm::display_info::DisplayInfo::get_inner::haca182995104828c ()#1 0x0000555555ac4bce in wrterm::output::Canvas::build::h57abddb1fff9f40a ()#2 0x0000555555ac4ac8 in <emacs::lisp::ExternalPtr<emacs::bindings::frame> as wrterm::frame::LispFrameExt>::canvas::heb8da1159cdfb60c ()#3 0x0000555555b0fcfe in wr_adjust_canvas_size ()#4 0x0000555555600fe0 in adjust_frame_size
(f=0x5555563b6370, new_text_width=<optimized out>, new_text_height=<optimized out>, inhibit=inhibit@entry=5, pretend=<optimized out>, parameter=parameter@entry=0x4110) at frame.c:910
#5 0x00005555555f4ad5 in change_frame_size_1
(f=<optimized out>, new_width=<optimized out>, new_height=<optimized out>, pretend=pretend@entry=false, delay=delay@entry=false, safe=safe@entry=true)
at dispnew.c:5984
#6 0x00005555555fd6e3 in change_frame_size (safe=true, delay=false, pretend=false, new_height=<optimized out>, new_width=<optimized out>, f=<optimized out>)
at dispnew.c:6017
#7 init_display_interactive () at dispnew.c:6621#8 init_display () at dispnew.c:6672#9 0x00005555556d8996 in main1 (argc=<optimized out>, argv=0x7fffffffe4a8) at emacs.c:2473#10 0x0000555555814211 in main ()
(gdb)
The text was updated successfully, but these errors were encountered:
Describe the bug
emacs -nw
callswr_adjust_canvas_size()
despite webrender not running. This results (under tao on my hardware) in a segfault when tao tries to get a non-existent window. This also causesemacs -nw
to fail when a graphical environment can't be found, e.g. over ssh.To Reproduce
Expected behavior
Emacs should not call any graphical code when launching in a terminal.
OS
Which os do you use? (
uname -a
)Linux 6.2.1-arch1-1 #1 SMP PREEMPT_DYNAMIC Sun, 26 Feb 2023 03:39:23 +0000 x86_64 GNU/Linux
Error callstack
The text was updated successfully, but these errors were encountered: