Aegisub 3.2.2 just hanging on load

Talk about anything else you might want to.

Aegisub 3.2.2 just hanging on load

Unread postby pda » Thu Mar 19, 2015 7:29 pm

I'm using aegisub in fedora 21 (3.2.2-1.fc21.R, 64 bit version, from russianfedora-free-updates), which configured as:
Code: Select all
--without-oss --without-openal --with-player-audio=pulseaudio --with-wx-config=wx-config-3.0

and maked without any patches.
Also installed:
alsa 1.0.28-2
boost 1.55.0-8
ffmpeg 2.4.7-1
ffms2 2.20-1
fftw 3.3.4-5
hunspell 1.3.3-3
kernel 3.18.9-200
libass 0.12.0-1
portaudio 19-20
wxGTK3 3.0.2-2

When I'm trying to start aegisub it's just hangs with 100% cpu load. No any message in console, but there strace log (1, 2) and the aegisub log.

They don't keep previous rpms, so I can't rollback to previous version. But may be some one can help me the understand and resolve my problem?
pda
Comic Sans MS
Comic Sans MS
 
Posts: 3
Joined: Thu Mar 19, 2015 6:59 pm

Re: Aegisub 3.2.2 just hanging on load

Unread postby pda » Thu Mar 26, 2015 8:44 pm

Now I make debug build (with --enable-debug and --enable-debug-exceptions). Now at start I see in console:
Code: Select all
D 05:35:29 398504332 <agi/log/emitter/subscribe> [/home/pda/work/rpmbuild/BUILD/aegisub-3.2.2/libaegisub/common/log.cpp:Subscribe:60]  Subscribe: 0x16cbd40
D 05:35:29 398623729 <agi/options              > [/home/pda/work/rpmbuild/BUILD/aegisub-3.2.2/libaegisub/common/option.cpp:Options:191]  New Options object
D 05:35:29 398633900 <utils/clean_cache        > [/home/pda/work/rpmbuild/BUILD/aegisub-3.2.2/src/utils.cpp:operator():166]  cleaning "/home/pda/.aegisub/log/*.json"
D 05:35:29 398856719 <utils/clean_cache        > [/home/pda/work/rpmbuild/BUILD/aegisub-3.2.2/src/utils.cpp:operator():176]  cache does not need cleaning (maxsize=10485760, cursize=26747, maxfiles=100, numfiles=9), exiting
D 05:35:29 403645795 <agi/io/open/file         > [/home/pda/work/rpmbuild/BUILD/aegisub-3.2.2/libaegisub/common/io.cpp:Open:34]  "/home/pda/.aegisub/config.json"
D 05:35:29 409545397 <command/init             > [/home/pda/work/rpmbuild/BUILD/aegisub-3.2.2/src/command/command.cpp:init_builtin_commands:80]  Populating command map
D 05:35:29 410166765 <hotkey/init              > [/home/pda/work/rpmbuild/BUILD/aegisub-3.2.2/libaegisub/common/hotkey.cpp:Hotkey:91]  Generating hotkeys.
D 05:35:29 410178012 <agi/io/open/file         > [/home/pda/work/rpmbuild/BUILD/aegisub-3.2.2/libaegisub/common/io.cpp:Open:34]  "/home/pda/.aegisub/hotkey.json"
D 05:35:29 412418694 <agi/mru                  > [/home/pda/work/rpmbuild/BUILD/aegisub-3.2.2/libaegisub/common/mru.cpp:MRUManager:67]  Loading MRU List
D 05:35:29 412430065 <agi/io/open/file         > [/home/pda/work/rpmbuild/BUILD/aegisub-3.2.2/libaegisub/common/io.cpp:Open:34]  "/home/pda/.aegisub/mru.json"
D 05:35:29 452166389 <subtitle/provider/libass > [/home/pda/work/rpmbuild/BUILD/aegisub-3.2.2/src/subtitles_provider_libass.cpp:msg_callback:85]  Raster: FreeType 2.5.3
D 05:35:29 452361771 <subtitle/provider/libass > [/home/pda/work/rpmbuild/BUILD/aegisub-3.2.2/src/subtitles_provider_libass.cpp:msg_callback:85]  Shaper: FriBidi 0.19.6 (SIMPLE) HarfBuzz-ng 0.9.36 (COMPLEX)
D 05:35:29 452368643 <subtitle/provider/libass > [/home/pda/work/rpmbuild/BUILD/aegisub-3.2.2/src/subtitles_provider_libass.cpp:msg_callback:85]  Initialized
I 05:35:29 453473121 <frame_main/init          > [/home/pda/work/rpmbuild/BUILD/aegisub-3.2.2/src/frame_main.cpp:FrameMain:100]  Entering FrameMain constructor
I 05:35:29 453494475 <frame_main/init          > [/home/pda/work/rpmbuild/BUILD/aegisub-3.2.2/src/frame_main.cpp:FrameMain:111]  Initializing context controls
I 05:35:29 453507292 <frame_main/init          > [/home/pda/work/rpmbuild/BUILD/aegisub-3.2.2/src/frame_main.cpp:FrameMain:118]  Initializing context frames
I 05:35:29 453509926 <frame_main/init          > [/home/pda/work/rpmbuild/BUILD/aegisub-3.2.2/src/frame_main.cpp:FrameMain:122]  Apply saved Maximized state
I 05:35:29 453519000 <frame_main/init          > [/home/pda/work/rpmbuild/BUILD/aegisub-3.2.2/src/frame_main.cpp:FrameMain:125]  Initialize toolbar


With gdb i find what I'm stuck in
Code: Select all
0x00007ffff0c87d8f in pthread_mutex_unlock () from /lib64/libpthread.so.0


which part of thread 1 and it's stacktrace:
Code: Select all
Thread 1 (Thread 0x7fffd79a0b40 (LWP 12170)):
#0  0x00007ffff0c87d8f in pthread_mutex_unlock () at /lib64/libpthread.so.0
#1  0x00007ffff7ded4c9 in tls_get_addr_tail () at /lib64/ld-linux-x86-64.so.2
#2  0x00007ffff02e204c in __cxa_get_globals () at /lib64/libstdc++.so.6
#3  0x00007ffff02e3063 in __cxa_throw () at /lib64/libstdc++.so.6
#4  0x000000000044ae0c in cmd::find_command(std::string const&) (name="tool/assdraw") at /home/pda/work/rpmbuild/BUILD/aegisub-3.2.2/src/command/command.cpp:31
#5  0x000000000044af4f in cmd::get(std::string const&) (name="tool/assdraw")
---Type <return> to continue, or q <return> to quit---
    at /home/pda/work/rpmbuild/BUILD/aegisub-3.2.2/src/command/command.cpp:44
#6  0x0000000000835632 in (anonymous namespace)::Toolbar::Populate() (this=0x15f25b0) at /home/pda/work/rpmbuild/BUILD/aegisub-3.2.2/src/toolbar.cpp:127
#7  0x0000000000836199 in (anonymous namespace)::Toolbar::Toolbar(wxFrame*, std::string, agi::Context*, std::string) (this=0x15f25b0, parent=0x15e0460, name="x&Y\360\377\177\000\000wN\377\377\377\177\000\000x&Y\360\377\177\000\000V\225\064\360\377\177\000\000\000\000\000\000\000\000\000\000p\v_\001\000\000\000\000lEv", '\000' <repeats 13 times>, "\220N\377\377\377\177\000\000\234\070v\000\000\000\000\000\000pM\001\000\000\000\000`\004^\001\000\000\000\000\250\025a\001\000\000\000\000/`v\000\000\000\000\000(2a\001\000\000\000\000(\200\377\377\377\177\000\000\060\200\377\377\377\177\000\000\000pM\001\000\000\000\000`\004^\001\000\000\000\000`\004^\001\000\000\000\000\300\315\377\377\377\177\000\000\263/v\000\000\000\000\000\200Nv", '\000' <repeats 13 times>, "lEv\000\000\000\000\000"..., c=0x15f0b70, ht_context="x&Y\360\377\177\000\000V\225\064\360\377\177\000\000\000\000\000\000\000\000\000\000p\v_\001\000\000\000\000lEv", '\000' <repeats 13 times>, "\220N\377\377\377\177\000\000\234\070v\000\000\000\000\000\000pM\001\000\000\000\000`\004^\001\000\000\000\000\250\025a\001\000\000\000\000/`v\000\000\000\000\000(2a\001\000\000\000\000(\200\377\377\377\177\000\000\060\200\377\377\377\177\000\000\000pM\001\000\000\000\000`\004^\001\000\000\000\000`\004^\001\000\000\000\000\300\315\377\377\377\177\000\000\263/v\000\000\000\000\000\200Nv", '\000' <repeats 13 times>, "lEv", '\000' <repeats 13 times>, "\070Nv\000\000\000\000\000"...) at /home/pda/work/rpmbuild/BUILD/aegisub-3.2.2/src/toolbar.cpp:201
#8  0x0000000000836335 in toolbar::AttachToolbar(wxFrame*, std::string const&, a---Type <return> to continue, or q <return> to quit---
gi::Context*, std::string const&) (frame=0x15e0460, name="main", c=0x15f0b70, hotkey="Default")
    at /home/pda/work/rpmbuild/BUILD/aegisub-3.2.2/src/toolbar.cpp:209
#9  0x000000000076389c in FrameMain::EnableToolBar(agi::OptionValue const&) (this=0x15e0460, opt=...)
    at /home/pda/work/rpmbuild/BUILD/aegisub-3.2.2/src/frame_main.cpp:175
#10 0x0000000000762fb3 in FrameMain::FrameMain() (this=0x15e0460)
    at /home/pda/work/rpmbuild/BUILD/aegisub-3.2.2/src/frame_main.cpp:128
#11 0x0000000000785b06 in AegisubApp::OnInit() (this=0x13491e0)
    at /home/pda/work/rpmbuild/BUILD/aegisub-3.2.2/src/main.cpp:294
#12 0x0000000000788099 in wxAppConsoleBase::CallOnInit() (this=0x13491e0)
    at /usr/include/wx-3.0/wx/app.h:93
#13 0x00007ffff5525012 in wxEntry(int&, wchar_t**) ()
    at /lib64/libwx_baseu-3.0.so.0
#14 0x0000000000784ae4 in main(int, char**) (argc=1, argv=0x7fffffffdfc8)
    at /home/pda/work/rpmbuild/BUILD/aegisub-3.2.2/src/main.cpp:82


Looks like the exception throwing in src/command/command.cpp:31 caused deadlock by some reason. Any thoughts?
pda
Comic Sans MS
Comic Sans MS
 
Posts: 3
Joined: Thu Mar 19, 2015 6:59 pm

Re: Aegisub 3.2.2 just hanging on load

Unread postby pda » Wed Apr 01, 2015 7:08 pm

Solved. Not a bug. :) This problem was caused by OpenCL driver. I switched from fglrx to radeon but the old files left in the directory /etc/OpenCL/vendors. Looks like OpenCL driver may deplete TLS slots, leading to the infinite loop in tls_get_addr_tail. For some reason the mesa driver also caused a hunging. I'll continue investigation, but it's not related with aegisub anymore.
pda
Comic Sans MS
Comic Sans MS
 
Posts: 3
Joined: Thu Mar 19, 2015 6:59 pm


Return to Miscellanea

Who is online

Users browsing this forum: No registered users and 1 guest