View Issue Details

IDProjectCategoryView StatusLast Update
0007095ardourbugspublic2016-11-14 23:44
ReporterjaZz_KCS Assigned Totimbyr  
PriorityurgentSeveritycrashReproducibilityalways
Status feedbackResolutionopen 
PlatformMicrosoft WindowsOSMicrosoft Windows 7OS Version32-bit
Product Version5.4 
Summary0007095: Freeze / Severe Crash upon Exit
DescriptionHello there..!

I am new to both ardour and the bugtracker, and I have seen multiple entries catering the "crash upon exit" dilemma.

Nevertheless I would like to add my two cents here since I am not stricly encountering a - what most ppl would call - a "crash" when exiting ardour, but more alike a complete freeze.

I have seen that most ppl here that encounter crashes after exit seem to encounter "normal crashes" ("...has stopped working") and are also able to send in crash-reports.

Due to the fact that I encounter frequent total freezes of the program after exiting, I have to actually call the task-manager and forcefully kill-off ardour5.exe. And if I am not fast enough, it will - after 10 more seconds - freeze the whole system (+explorer) which renders me unable to call the task-manager to kill it off. Due to this total freeze instead of genuine crash, I am also left off without any crashlogs.

EDIT: This happens regardless of any plugins loaded. Even starting up a new, empty project. When you exit, it doesnt ask you whether you want to save (since you havn't done anything, yet) albeit it still crashes the same way as with a fully bloated project.
Steps To ReproduceThis can be easily reproduced (at least by me) under Windows 7 32-bit with Ardour 5.4.

Each exit, regarless of the project loaded, will yield a complete freeze of Ardour - and if you take more than 10 seconds to kill it off via task manager it will also completely freeze the explorer as well, forcing you to restart. After that, rien ne va plus.

It does seem to save the project - if there is one - before crashing, though. If that is worth noting.
Additional InformationIf I can provide additional system information that could help you investigating this rather severe bug, feel free to contact me or ask here immediately
TagsNo tags attached.

Activities

jaZz_KCS

2016-11-07 11:42

reporter  

ardour-debug.log (30,552 bytes)

jaZz_KCS

2016-11-07 11:42

reporter   ~0018914

Last edited: 2016-11-07 11:44

I have supplied a debug log.
It has a bunch of "internal-error: sect_index_data not initialized. Further debugging may proove unreliable" at the startup [at least 20 until the UI was fully loaded] I don't know what that is about and whether the debug log is now actually worthwile. I have ignored those "internal-error: sect_index_data not initialized."-errors, proceeded to the crash and followed the instrucions [CTRL-C etc] to produce a log file.

timbyr

2016-11-11 12:39

developer   ~0018938

I can confirm this issue with official 5.4 (32bit) and a nightly 5.4.319

I get basically the same backtrace, but I'll attach it as another reference.

timbyr

2016-11-11 12:40

developer  

Ardour-5.5.319-hang-at-engine-stop-bt.txt (13,083 bytes)   
Scanning folders for bundled LV2s: C:\Program Files (x86)\Ardour5\lib\ardour5\LV
2
[New Thread 4532.0x3c4]
[New Thread 4532.0xa50]
[New Thread 4532.0x58c]
[New Thread 4532.0x1080]
[New Thread 4532.0x9f8]
[New Thread 4532.0x135c]
[New Thread 4532.0xdb0]
[New Thread 4532.0xbb0]
[New Thread 4532.0xc34]
[New Thread 4532.0xf6c]
[New Thread 4532.0xf1c]

Program received signal SIGINT, Interrupt.
[Switching to Thread 4532.0xf1c]
Quit (expect signal SIGINT when the program is resumed)
(gdb) t a a bt

Thread 66 (Thread 4532.0xf1c):
#0  0x776d6d8f in KERNEL32!CtrlRoutine ()
   from C:\Windows\syswow64\kernel32.dll
#1  0x8b905082 in ?? ()
#2  0x00000000 in ?? ()

Thread 55 (Thread 4532.0xfb4):
#0  0x77bc1e0e in ntdll!ZwTraceControl () from C:\Windows\system32\ntdll.dll
#1  0x77bc1e0e in ntdll!ZwTraceControl () from C:\Windows\system32\ntdll.dll
#2  0x77c01536 in ntdll!EtwpNotificationThread ()
   from C:\Windows\system32\ntdll.dll
#3  0x776333ca in KERNEL32!BaseThreadInitThunk ()
   from C:\Windows\syswow64\kernel32.dll
#4  0x77bd9ed2 in ntdll!RtlInitializeExceptionChain ()
   from C:\Windows\system32\ntdll.dll
#5  0x77bd9ea5 in ntdll!RtlInitializeExceptionChain ()
   from C:\Windows\system32\ntdll.dll
#6  0x00000000 in ?? ()

Thread 54 (Thread 4532.0xe68):
#0  0x77bc014d in ntdll!ZwWaitForMultipleObjects ()
   from C:\Windows\system32\ntdll.dll
#1  0x77bc014d in ntdll!ZwWaitForMultipleObjects ()
   from C:\Windows\system32\ntdll.dll
#2  0x77760962 in WaitForMultipleObjectsEx ()
   from C:\Windows\syswow64\KernelBase.dll
#3  0x00000002 in ?? ()
#4  0x1eeefc68 in ?? ()
#5  0x77631a2c in WaitForMultipleObjectsEx ()
   from C:\Windows\syswow64\kernel32.dll
#6  0x77634238 in WaitForMultipleObjects ()
   from C:\Windows\syswow64\kernel32.dll
#7  0x626834d3 in pthreadCancelableTimedWait ()
   from C:\Program Files (x86)\Ardour5\bin\pthreadGC2.dll
#8  0xffffffff in ?? ()
#9  0x1eeefdb4 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)

Thread 53 (Thread 4532.0xc74):
#0  0x77bbf8c1 in ntdll!ZwWaitForSingleObject ()
   from C:\Windows\system32\ntdll.dll
#1  0x77bbf8c1 in ntdll!ZwWaitForSingleObject ()
   from C:\Windows\system32\ntdll.dll
#2  0x77760816 in WaitForSingleObjectEx ()
   from C:\Windows\syswow64\KernelBase.dll
#3  0x00000554 in ?? ()
#4  0x00000000 in ?? ()

Thread 52 (Thread 4532.0xd48):
#0  0x77bbfd81 in ntdll!ZwDelayExecution () from C:\Windows\system32\ntdll.dll
#1  0x77bbfd81 in ntdll!ZwDelayExecution () from C:\Windows\system32\ntdll.dll
#2  0x77762c50 in SleepEx () from C:\Windows\syswow64\KernelBase.dll
#3  0x00000000 in ?? ()

Thread 37 (Thread 4532.0x10a0):
#0  0x77bc1f36 in ntdll!ZwWaitForWorkViaWorkerFactory ()
   from C:\Windows\system32\ntdll.dll
#1  0x77bc1f36 in ntdll!ZwWaitForWorkViaWorkerFactory ()
   from C:\Windows\system32\ntdll.dll
#2  0x77be471e in ntdll!TpSetTimer () from C:\Windows\system32\ntdll.dll
#3  0x776333ca in KERNEL32!BaseThreadInitThunk ()
   from C:\Windows\syswow64\kernel32.dll
#4  0x77bd9ed2 in ntdll!RtlInitializeExceptionChain ()
   from C:\Windows\system32\ntdll.dll
#5  0x77bd9ea5 in ntdll!RtlInitializeExceptionChain ()
   from C:\Windows\system32\ntdll.dll
#6  0x00000000 in ?? ()

Thread 22 (Thread 4532.0x388):
#0  0x77bc1f36 in ntdll!ZwWaitForWorkViaWorkerFactory ()
   from C:\Windows\system32\ntdll.dll
#1  0x77bc1f36 in ntdll!ZwWaitForWorkViaWorkerFactory ()
   from C:\Windows\system32\ntdll.dll
#2  0x77be471e in ntdll!TpSetTimer () from C:\Windows\system32\ntdll.dll
#3  0x776333ca in KERNEL32!BaseThreadInitThunk ()
   from C:\Windows\syswow64\kernel32.dll
#4  0x77bd9ed2 in ntdll!RtlInitializeExceptionChain ()
   from C:\Windows\system32\ntdll.dll
#5  0x77bd9ea5 in ntdll!RtlInitializeExceptionChain ()
   from C:\Windows\system32\ntdll.dll
#6  0x00000000 in ?? ()

Thread 11 (Thread 4532.0xf74):
#0  0x77bbf949 in ntdll!ZwRemoveIoCompletion ()
   from C:\Windows\system32\ntdll.dll
#1  0x77bbf949 in ntdll!ZwRemoveIoCompletion ()
   from C:\Windows\system32\ntdll.dll
#2  0x7481635c in ?? () from C:\Windows\SysWOW64\mswsock.dll
#3  0x776333ca in KERNEL32!BaseThreadInitThunk ()
   from C:\Windows\syswow64\kernel32.dll
#4  0x77bd9ed2 in ntdll!RtlInitializeExceptionChain ()
   from C:\Windows\system32\ntdll.dll
#5  0x77bd9ea5 in ntdll!RtlInitializeExceptionChain ()
   from C:\Windows\system32\ntdll.dll
#6  0x00000000 in ?? ()

Thread 10 (Thread 4532.0x958):
#0  0x77bc014d in ntdll!ZwWaitForMultipleObjects ()
   from C:\Windows\system32\ntdll.dll
#1  0x77bc014d in ntdll!ZwWaitForMultipleObjects ()
   from C:\Windows\system32\ntdll.dll
#2  0x77be431f in ntdll!RtlLoadString () from C:\Windows\system32\ntdll.dll
#3  0x00000005 in ?? ()
#4  0x0a67e640 in ?? ()
#5  0x776333ca in KERNEL32!BaseThreadInitThunk ()
   from C:\Windows\syswow64\kernel32.dll
#6  0x77bd9ed2 in ntdll!RtlInitializeExceptionChain ()
   from C:\Windows\system32\ntdll.dll
#7  0x77bd9ea5 in ntdll!RtlInitializeExceptionChain ()
   from C:\Windows\system32\ntdll.dll
#8  0x00000000 in ?? ()

Thread 8 (Thread 4532.0x2ec):
#0  0x77bc1f1d in ntdll!ZwWaitForKeyedEvent ()
   from C:\Windows\system32\ntdll.dll
#1  0x77bc1f1d in ntdll!ZwWaitForKeyedEvent ()
   from C:\Windows\system32\ntdll.dll
#2  0x77c4810f in ntdll!RtlSleepConditionVariableSRW ()
   from C:\Windows\system32\ntdll.dll
#3  0x197bfc80 in ?? ()
#4  0x776b4b98 in SleepConditionVariableSRW ()
   from C:\Windows\syswow64\kernel32.dll
#5  0x6886d9c8 in g_cond_wait ()
   from C:\Program Files (x86)\Ardour5\bin\libglib-2.0-0.dll
#6  0x1575c908 in ?? ()
#7  0x0b10f1b4 in boost::_mfi::mf0<void, ARDOUR::AudioEngine>::operator() (
    this=0x15789b88, p=0x1575c518)
    at /home/ardour/win-stack-w32-dbg/include/boost/bind/mem_fn_template.hpp:49
#8  0x0aeffc98 in boost::_bi::list1<boost::_bi::value<ARDOUR::AudioEngine*> >::o
perator()<boost::_mfi::mf0<void, ARDOUR::AudioEngine>, boost::_bi::list0> (
    this=0x15789b90, f=..., a=...)
    at /home/ardour/win-stack-w32-dbg/include/boost/bind/bind.hpp:253
#9  0x0af0c30c in boost::_bi::bind_t<void, boost::_mfi::mf0<void, ARDOUR::AudioE
ngine>, boost::_bi::list1<boost::_bi::value<ARDOUR::AudioEngine*> > >::operator(
) (this=0x15789b88)
    at /home/ardour/win-stack-w32-dbg/include/boost/bind/bind_template.hpp:20
#10 0x0b10340f in sigc::adaptor_functor<boost::_bi::bind_t<void, boost::_mfi::mf
0<void, ARDOUR::AudioEngine>, boost::_bi::list1<boost::_bi::value<ARDOUR::AudioE
ngine*> > > >::operator() (this=0x15789b88)
    at /home/ardour/win-stack-w32/include/sigc++-2.0/sigc++/adaptors/adaptor_tra
it.h:256
#11 0x0aeccaf9 in sigc::internal::slot_call0<boost::_bi::bind_t<void, boost::_mf
i::mf0<void, ARDOUR::AudioEngine>, boost::_bi::list1<boost::_bi::value<ARDOUR::A
udioEngine*> > >, void>::call_it (rep=0x15789b70)
    at /home/ardour/win-stack-w32/include/sigc++-2.0/sigc++/functors/slot.h:103
#12 0x666d2673 in call_thread_entry_slot ()
   from C:\Program Files (x86)\Ardour5\bin\libglibmm-2.4-1.dll
#13 0x00000000 in ?? ()

Thread 7 (Thread 4532.0xec0):
#0  0x77bc1f1d in ntdll!ZwWaitForKeyedEvent ()
   from C:\Windows\system32\ntdll.dll
#1  0x77bc1f1d in ntdll!ZwWaitForKeyedEvent ()
   from C:\Windows\system32\ntdll.dll
#2  0x77c4810f in ntdll!RtlSleepConditionVariableSRW ()
   from C:\Windows\system32\ntdll.dll
#3  0x1957fc80 in ?? ()
#4  0x776b4b98 in SleepConditionVariableSRW ()
   from C:\Windows\syswow64\kernel32.dll
#5  0x6886d9c8 in g_cond_wait ()
   from C:\Program Files (x86)\Ardour5\bin\libglib-2.0-0.dll
#6  0x1575c8e8 in ?? ()
#7  0x0b10f1b4 in boost::_mfi::mf0<void, ARDOUR::AudioEngine>::operator() (
    this=0x1578a060, p=0x1575c518)
    at /home/ardour/win-stack-w32-dbg/include/boost/bind/mem_fn_template.hpp:49
#8  0x0aeffc98 in boost::_bi::list1<boost::_bi::value<ARDOUR::AudioEngine*> >::o
perator()<boost::_mfi::mf0<void, ARDOUR::AudioEngine>, boost::_bi::list0> (
    this=0x1578a068, f=..., a=...)
    at /home/ardour/win-stack-w32-dbg/include/boost/bind/bind.hpp:253
#9  0x0af0c30c in boost::_bi::bind_t<void, boost::_mfi::mf0<void, ARDOUR::AudioE
ngine>, boost::_bi::list1<boost::_bi::value<ARDOUR::AudioEngine*> > >::operator(
) (this=0x1578a060)
    at /home/ardour/win-stack-w32-dbg/include/boost/bind/bind_template.hpp:20
#10 0x0b10340f in sigc::adaptor_functor<boost::_bi::bind_t<void, boost::_mfi::mf
0<void, ARDOUR::AudioEngine>, boost::_bi::list1<boost::_bi::value<ARDOUR::AudioE
ngine*> > > >::operator() (this=0x1578a060)
    at /home/ardour/win-stack-w32/include/sigc++-2.0/sigc++/adaptors/adaptor_tra
it.h:256
#11 0x0aeccaf9 in sigc::internal::slot_call0<boost::_bi::bind_t<void, boost::_mf
i::mf0<void, ARDOUR::AudioEngine>, boost::_bi::list1<boost::_bi::value<ARDOUR::A
udioEngine*> > >, void>::call_it (rep=0x1578a048)
    at /home/ardour/win-stack-w32/include/sigc++-2.0/sigc++/functors/slot.h:103
#12 0x666d2673 in call_thread_entry_slot ()
   from C:\Program Files (x86)\Ardour5\bin\libglibmm-2.4-1.dll
#13 0x00000000 in ?? ()

Thread 6 (Thread 4532.0x10c0):
#0  0x77bc1f1d in ntdll!ZwWaitForKeyedEvent ()
   from C:\Windows\system32\ntdll.dll
#1  0x77bc1f1d in ntdll!ZwWaitForKeyedEvent ()
   from C:\Windows\system32\ntdll.dll
#2  0x77c4810f in ntdll!RtlSleepConditionVariableSRW ()
   from C:\Windows\system32\ntdll.dll
#3  0x16cdfcd0 in ?? ()
#4  0x776b4b98 in SleepConditionVariableSRW ()
   from C:\Windows\syswow64\kernel32.dll
#5  0x6886d9c8 in g_cond_wait ()
   from C:\Program Files (x86)\Ardour5\bin\libglib-2.0-0.dll
#6  0x0b36f024 in ARDOUR::Analyser::analysis_queue_lock ()
   from C:\Program Files (x86)\Ardour5\bin\ardour-3.dll
#7  0x0b36f01c in ARDOUR::Analyser::analysis_active_lock ()
   from C:\Program Files (x86)\Ardour5\bin\ardour-3.dll
#8  0xffffffff in ?? ()
#9  0x00000000 in ?? ()

Thread 5 (Thread 4532.0x6a4):
#0  0x77bc1f1d in ntdll!ZwWaitForKeyedEvent ()
   from C:\Windows\system32\ntdll.dll
#1  0x77bc1f1d in ntdll!ZwWaitForKeyedEvent ()
   from C:\Windows\system32\ntdll.dll
#2  0x77c4810f in ntdll!RtlSleepConditionVariableSRW ()
   from C:\Windows\system32\ntdll.dll
#3  0x16a9fd00 in ?? ()
#4  0x776b4b98 in SleepConditionVariableSRW ()
   from C:\Windows\syswow64\kernel32.dll
#5  0x6886d9c8 in g_cond_wait ()
   from C:\Program Files (x86)\Ardour5\bin\libglib-2.0-0.dll
#6  0x0b370f68 in ARDOUR::SourceFactory::SourceCreated ()
   from C:\Program Files (x86)\Ardour5\bin\ardour-3.dll
#7  0x0b370f74 in ARDOUR::SourceFactory::PeaksToBuild ()
   from C:\Program Files (x86)\Ardour5\bin\ardour-3.dll
#8  0xffffffff in ?? ()
#9  0x00000000 in ?? ()

Thread 4 (Thread 4532.0x3e0):
#0  0x77bc1f1d in ntdll!ZwWaitForKeyedEvent ()
   from C:\Windows\system32\ntdll.dll
#1  0x77bc1f1d in ntdll!ZwWaitForKeyedEvent ()
   from C:\Windows\system32\ntdll.dll
#2  0x77c4810f in ntdll!RtlSleepConditionVariableSRW ()
   from C:\Windows\system32\ntdll.dll
#3  0x1685fd00 in ?? ()
#4  0x776b4b98 in SleepConditionVariableSRW ()
   from C:\Windows\syswow64\kernel32.dll
#5  0x6886d9c8 in g_cond_wait ()
   from C:\Program Files (x86)\Ardour5\bin\libglib-2.0-0.dll
#6  0x0b370f68 in ARDOUR::SourceFactory::SourceCreated ()
   from C:\Program Files (x86)\Ardour5\bin\ardour-3.dll
#7  0x0b370f74 in ARDOUR::SourceFactory::PeaksToBuild ()
   from C:\Program Files (x86)\Ardour5\bin\ardour-3.dll
#8  0xffffffff in ?? ()
#9  0x00000000 in ?? ()

Thread 3 (Thread 4532.0xc84):
#0  0x77bc1f36 in ntdll!ZwWaitForWorkViaWorkerFactory ()
   from C:\Windows\system32\ntdll.dll
#1  0x77bc1f36 in ntdll!ZwWaitForWorkViaWorkerFactory ()
   from C:\Windows\system32\ntdll.dll
#2  0x77be471e in ntdll!TpSetTimer () from C:\Windows\system32\ntdll.dll
#3  0x776333ca in KERNEL32!BaseThreadInitThunk ()
   from C:\Windows\syswow64\kernel32.dll
#4  0x77bd9ed2 in ntdll!RtlInitializeExceptionChain ()
   from C:\Windows\system32\ntdll.dll
#5  0x77bd9ea5 in ntdll!RtlInitializeExceptionChain ()
   from C:\Windows\system32\ntdll.dll
#6  0x00000000 in ?? ()

Thread 2 (Thread 4532.0x1334):
#0  0x77bc1f36 in ntdll!ZwWaitForWorkViaWorkerFactory ()
   from C:\Windows\system32\ntdll.dll
#1  0x77bc1f36 in ntdll!ZwWaitForWorkViaWorkerFactory ()
   from C:\Windows\system32\ntdll.dll
#2  0x77be471e in ntdll!TpSetTimer () from C:\Windows\system32\ntdll.dll
#3  0x776333ca in KERNEL32!BaseThreadInitThunk ()
   from C:\Windows\syswow64\kernel32.dll
#4  0x77bd9ed2 in ntdll!RtlInitializeExceptionChain ()
   from C:\Windows\system32\ntdll.dll
#5  0x77bd9ea5 in ntdll!RtlInitializeExceptionChain ()
   from C:\Windows\system32\ntdll.dll
#6  0x00000000 in ?? ()

Thread 1 (Thread 4532.0x95c):
#0  0x77bbf8c1 in ntdll!ZwWaitForSingleObject ()
   from C:\Windows\system32\ntdll.dll
#1  0x77bbf8c1 in ntdll!ZwWaitForSingleObject ()
   from C:\Windows\system32\ntdll.dll
#2  0x77760816 in WaitForSingleObjectEx ()
   from C:\Windows\syswow64\KernelBase.dll
#3  0x000004f0 in ?? ()
#4  0x00000000 in ?? ()
(gdb)

timbyr

2016-11-11 12:41

developer   ~0018939

Oh, I forgot to mention, the hang also occurs when trying to stop the engine via the Audio Setup dialog. The backtrace is from that case but is the same as on quit.

jaZz_KCS

2016-11-11 23:44

reporter   ~0018940

Yes, I have also tried that. Can confirm it also happens upon stopping the audio engine. No matter what device used and what drivers used.

timbyr

2016-11-14 23:44

developer   ~0018971

This issue should now be resolved with commit d10913e2 and can be tested with a nightly build >= 5.4.345

Please test and confirm, thanks.

Issue History

Date Modified Username Field Change
2016-11-07 09:06 jaZz_KCS New Issue
2016-11-07 11:42 jaZz_KCS File Added: ardour-debug.log
2016-11-07 11:42 jaZz_KCS Note Added: 0018914
2016-11-07 11:44 jaZz_KCS Note Edited: 0018914
2016-11-11 12:39 timbyr Note Added: 0018938
2016-11-11 12:39 timbyr Status new => confirmed
2016-11-11 12:40 timbyr File Added: Ardour-5.5.319-hang-at-engine-stop-bt.txt
2016-11-11 12:41 timbyr Note Added: 0018939
2016-11-11 23:44 jaZz_KCS Note Added: 0018940
2016-11-14 23:44 timbyr Note Added: 0018971
2016-11-14 23:44 timbyr Assigned To => timbyr
2016-11-14 23:44 timbyr Status confirmed => feedback