Bug 33330 - aegisub crashes at start in wayland session
Summary: aegisub crashes at start in wayland session
Status: UPSTREAM
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 9
Hardware: All Linux
Priority: Normal critical
Target Milestone: ---
Assignee: David GEIGER
QA Contact:
URL:
Whiteboard:
Keywords: FOR_ERRATA9, UPSTREAM
Depends on:
Blocks:
 
Reported: 2024-06-25 12:38 CEST by Olivier FAURAX
Modified: 2024-06-27 21:37 CEST (History)
4 users (show)

See Also:
Source RPM: aegisub, wxgtk?
CVE:
Status comment:


Attachments

Description Olivier FAURAX 2024-06-25 12:38:13 CEST
$ gdb aegisub 
GNU gdb (GDB) 12.1-7.mga9 (Mageia release 9)
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-mageia-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from aegisub...
Reading symbols from .gnu_debugdata for /usr/bin/aegisub...
(No debugging symbols found in .gnu_debugdata for /usr/bin/aegisub)
Missing separate debuginfos, use: debuginfo-install aegisub-3.3.3-2.mga9.x86_64
(gdb) run
Starting program: /usr/bin/aegisub 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
[New Thread 0x7fffee3ff6c0 (LWP 2786740)]
[New Thread 0x7fffedbfe6c0 (LWP 2786741)]
[New Thread 0x7fffed3fd6c0 (LWP 2786742)]
[New Thread 0x7fffecbfc6c0 (LWP 2786743)]
[New Thread 0x7fffdffff6c0 (LWP 2786744)]
[New Thread 0x7fffdd9ff6c0 (LWP 2786745)]
[New Thread 0x7fffdd1fe6c0 (LWP 2786746)]
[New Thread 0x7fffdc9fd6c0 (LWP 2786747)]
[New Thread 0x7fffd3fff6c0 (LWP 2786748)]
[New Thread 0x7fffd37fe6c0 (LWP 2786749)]
[New Thread 0x7fffd2ffd6c0 (LWP 2786750)]
[New Thread 0x7fffd27fc6c0 (LWP 2786751)]
[New Thread 0x7fffd1ffb6c0 (LWP 2786752)]
[New Thread 0x7fffd17fa6c0 (LWP 2786753)]
[New Thread 0x7fffd0ff96c0 (LWP 2786754)]
[New Thread 0x7fffcbfff6c0 (LWP 2786755)]
[New Thread 0x7fffcb7fe6c0 (LWP 2786756)]
[New Thread 0x7fffcaffd6c0 (LWP 2786757)]
[Thread 0x7fffd0ff96c0 (LWP 2786754) exited]
[Thread 0x7fffd1ffb6c0 (LWP 2786752) exited]
[Thread 0x7fffcbfff6c0 (LWP 2786755) exited]
[Thread 0x7fffcb7fe6c0 (LWP 2786756) exited]
[Thread 0x7fffd27fc6c0 (LWP 2786751) exited]
[Thread 0x7fffd17fa6c0 (LWP 2786753) exited]
[Thread 0x7fffcaffd6c0 (LWP 2786757) exited]
[New Thread 0x7fffcaffd6c0 (LWP 2786761)]
[Thread 0x7fffcaffd6c0 (LWP 2786761) exited]
[New Thread 0x7fffcaffd6c0 (LWP 2786762)]
[New Thread 0x7fffcb7fe6c0 (LWP 2786763)]
[Thread 0x7fffcaffd6c0 (LWP 2786762) exited]
[Thread 0x7fffcb7fe6c0 (LWP 2786763) exited]
[New Thread 0x7fffcb7fe6c0 (LWP 2786764)]
[New Thread 0x7fffcaffd6c0 (LWP 2786765)]
[Thread 0x7fffcb7fe6c0 (LWP 2786764) exited]
[Thread 0x7fffcaffd6c0 (LWP 2786765) exited]
[New Thread 0x7fffcaffd6c0 (LWP 2786766)]
[New Thread 0x7fffcb7fe6c0 (LWP 2786767)]
[Thread 0x7fffcaffd6c0 (LWP 2786766) exited]
[Thread 0x7fffcb7fe6c0 (LWP 2786767) exited]
[New Thread 0x7fffcb7fe6c0 (LWP 2786768)]
[New Thread 0x7fffcaffd6c0 (LWP 2786769)]
[Thread 0x7fffcb7fe6c0 (LWP 2786768) exited]
[Thread 0x7fffcaffd6c0 (LWP 2786769) exited]

Thread 1 "aegisub" received signal SIGSEGV, Segmentation fault.
0x000000000079ce70 in VideoDisplay::ToolIsType(std::type_info const&) const ()
(gdb) bt
#0  0x000000000079ce70 in VideoDisplay::ToolIsType(std::type_info const&) const ()
#1  0x000000000078c019 in (anonymous namespace)::Toolbar::OnIdle(wxIdleEvent&) ()
#2  0x00007ffff7004a6e in wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) ()
    at /lib64/libwx_baseu-3.2.so.0
#3  0x00007ffff7004efe in wxEvtHandler::SearchDynamicEventTable(wxEvent&) () at /lib64/libwx_baseu-3.2.so.0
#4  0x00007ffff7005250 in wxEvtHandler::TryHereOnly(wxEvent&) () at /lib64/libwx_baseu-3.2.so.0
#5  0x00007ffff700530a in wxEvtHandler::ProcessEventLocally(wxEvent&) () at /lib64/libwx_baseu-3.2.so.0
#6  0x00007ffff7005421 in wxEvtHandler::ProcessEvent(wxEvent&) () at /lib64/libwx_baseu-3.2.so.0
#7  0x00007ffff7006a97 in wxEvtHandler::SafelyProcessEvent(wxEvent&) () at /lib64/libwx_baseu-3.2.so.0
#8  0x00007ffff775e800 in wxWindowBase::SendIdleEvents(wxIdleEvent&) () at /lib64/libwx_gtk3u_core-3.2.so.0
#9  0x00007ffff775e7d8 in wxWindowBase::SendIdleEvents(wxIdleEvent&) () at /lib64/libwx_gtk3u_core-3.2.so.0
#10 0x00007ffff775e7d8 in wxWindowBase::SendIdleEvents(wxIdleEvent&) () at /lib64/libwx_gtk3u_core-3.2.so.0
#11 0x00007ffff775e7d8 in wxWindowBase::SendIdleEvents(wxIdleEvent&) () at /lib64/libwx_gtk3u_core-3.2.so.0
#12 0x00007ffff75e5c35 in wxFrame::SendIdleEvents(wxIdleEvent&) () at /lib64/libwx_gtk3u_core-3.2.so.0
#13 0x00007ffff764242d in wxAppBase::ProcessIdle() () at /lib64/libwx_gtk3u_core-3.2.so.0
#14 0x00007ffff7555729 in wxApp::DoIdle() () at /lib64/libwx_gtk3u_core-3.2.so.0
#15 0x00007ffff7555863 in wxapp_idle_callback () at /lib64/libwx_gtk3u_core-3.2.so.0
#16 0x00007ffff502540e in g_idle_dispatch () at /lib64/libglib-2.0.so.0
#17 0x00007ffff5029689 in g_main_context_dispatch () at /lib64/libglib-2.0.so.0
#18 0x00007ffff5029a18 in g_main_context_iterate.constprop () at /lib64/libglib-2.0.so.0
#19 0x00007ffff5029cbf in g_main_loop_run () at /lib64/libglib-2.0.so.0
#20 0x00007ffff57541b3 in gtk_dialog_run () at /lib64/libgtk-3.so.0
#21 0x00007ffff75f5178 in wxMessageDialog::ShowModal() () at /lib64/libwx_gtk3u_core-3.2.so.0
#22 0x00007ffff753a6f4 in wxMessageBox(wxString const&, wxString const&, long, wxWindow*, int, int) ()
    at /lib64/libwx_gtk3u_core-3.2.so.0
#23 0x00007ffff764204d in wxGUIAppTraitsBase::SafeMessageBox(wxString const&, wxString const&) ()
    at /lib64/libwx_gtk3u_core-3.2.so.0
#24 0x00007ffff6f2791b in wxSafeShowMessage(wxString const&, wxString const&) () at /lib64/libwx_baseu-3.2.so.0
#25 0x00007ffff7f16a29 in IsAvailable() () at /lib64/libwx_gtk3u_gl-3.2.so.0
#26 0x00007ffff7f16d99 in wxGLCanvas::Create(wxWindow*, int, wxPoint const&, wxSize const&, long, wxString const&, int const*, wxPalette const&) () at /lib64/libwx_gtk3u_gl-3.2.so.0
#27 0x00007ffff7f16eae in wxGLCanvas::wxGLCanvas(wxWindow*, int, int const*, wxPoint const&, wxSize const&, long, wxString const&, wxPalette const&) () at /lib64/libwx_gtk3u_gl-3.2.so.0
#28 0x000000000079dac4 in VideoDisplay::VideoDisplay(wxToolBar*, bool, wxComboBox*, wxWindow*, agi::Context*) ()
#29 0x00000000007986eb in VideoBox::VideoBox(wxWindow*, bool, agi::Context*) ()
#30 0x00000000006d472e in FrameMain::InitContents() ()
#31 0x00000000006d6979 in FrameMain::FrameMain() ()
#32 0x00000000006ec90e in AegisubApp::NewProjectContext() ()
#33 0x00000000006ed937 in AegisubApp::OnInit() ()
#34 0x00007ffff6f1ec8a in wxEntry(int&, wchar_t**) () at /lib64/libwx_baseu-3.2.so.0
#35 0x000000000049e802 in main ()
(gdb) 
quit
Marja Van Waes 2024-06-25 17:47:32 CEST

CC: (none) => marja11
Source RPM: aegisub => aegisub, wxgtk?

Comment 1 katnatek 2024-06-26 00:52:09 CEST
Can't reproduce in my system
Comment 2 David GEIGER 2024-06-26 06:29:35 CEST
If you run aegisub on command line you have to use:

$ env GDK_BACKEND=x11 aegisub

Otherwise it segfault (like the aegisub.deskop file do this command)

CC: (none) => geiger.david68210

Comment 3 katnatek 2024-06-26 20:02:20 CEST
(In reply to David GEIGER from comment #2)
> If you run aegisub on command line you have to use:
> 
> $ env GDK_BACKEND=x11 aegisub
> 
> Otherwise it segfault (like the aegisub.deskop file do this command)

I guess this is for Wayland session? In x11 session not see this, I test later
Comment 4 Lewis Smith 2024-06-26 21:46:30 CEST
Re the previous 2 comments, is this a Wayland/X11 issue?
"If you run aegisub on command line..."
What about running it from its menu entry? Olivier does not say how he launches it. katnatek "Can't reproduce in my system": how launched; (X11 implied).

@Olivier
Please say:
- what desktop
- are you using X11 or Wayland?
- does the crash happen if you launch aegisub from both its menu entry and the command line?

CC: (none) => lewyssmith

Comment 5 Olivier FAURAX 2024-06-26 23:12:26 CEST
I use gnome wayland.
I launched it from command line, it crashed, then I ran it in gdb as you can see in comment #1
Comment 6 katnatek 2024-06-27 04:36:53 CEST
I can confirm this bug in Plasma Wayland 
And can confirm the David's workaround in comment#1 makes aegisub start without issues, for the moment I can't do a deep test of the application

Summary: aegisub crashes at start => aegisub crashes at start in wayland session

Comment 7 katnatek 2024-06-27 05:21:07 CEST
(In reply to katnatek from comment #6)
> I can confirm this bug in Plasma Wayland 
> And can confirm the David's workaround in comment#1 makes aegisub start
> without issues, for the moment I can't do a deep test of the application

I mean comment#2
Comment 8 Lewis Smith 2024-06-27 21:37:37 CEST
Thank you katnatek for testing this problem.

OK, let us say that aegisub crashes if used under Wayland; and needs DavidG's workaround in that situation:
run aegisub on command line, you have to use:
 $ env GDK_BACKEND=x11 aegisub
It is OK under X11.

@DavidG: Is this likely to be correctable, or is it purely upstream? Marking as such anyway.

Good for Errata? CC'ing Morgan.

Assignee: bugsquad => geiger.david68210
Status: NEW => UPSTREAM
Keywords: (none) => FOR_ERRATA9, UPSTREAM
CC: (none) => fri


Note You need to log in before you can comment on or make changes to this bug.