View Issue Details

IDProjectCategoryView StatusLast Update
0006495ardourbugspublic2016-02-17 10:55
Reportertimbyr Assigned Totimbyr  
PrioritynormalSeverityminorReproducibilityalways
Status assignedResolutionopen 
Product Version4.X git (version in description) 
Summary0006495: Windows Portaudio Backend
DescriptionA tracker bug for issues with the Portaudio Backend on Windows

Current issues:

Done - Backend fails to load on WinXP (Fixed gc8b207d)
Done - MIDI input doesn't work for 32bit release builds(but does for all other builds) (Fixed c8b207)
Done - WASAPI support for Vista or later(8671e109)
Done - ASIO buffersize is not queried(6ca1c816)
Done - Implement pretty port names for ASIO(66cafd10)
Done - Buffersize combo empty with ASIO, crash when click on OK(Fixed 815ffcd5)
Done - No driver displayed when switching to Portaudio backend (Fixed 71e7b2fb)
Done - Previous backend state is not restored (Fixed ab7cf8c7)
Done - Slow startup issues and excessive device querying (Fixed c929148e)
Done - Don't query the supported samplerate of ASIO devices (dd93aec0)
Done - No settings are updated after changing in the ASIO dialog (9626e0c41)
Done - No hotplugging of Audio devices (9626e0c41)
Done - No hotplugging of MIDI device (9626e0c41)
Done - Add "None" devices to be able to explicitly disable input/output (08d6dd15)
Done - Translation of errors/warnings/devices etc (94f3e3029)
Done - Changes to Midi system don't apply after initial backend start (d520b9c8)
Done - Use smoothing and or roll-off for DSP calc (a65b1dded)
Done - Stop engine after calibration, not PA specific
Done - Fix crash when clicking on calibrate/measure twice
Done - Use the PA callback API for reduced/predictable latency(b4fb1d61)
Done - Fix latency compensation for audio I/O(e9be313c)
Done - Implement enumerate_midi_devices, set_midi_device_enabled etc(b2cf028fcb)
Done - Add support for setting/adding systemic latency for MIDI I/O(b2cf028fcb)
Todo - issues with changing samplerate after starting PortaudioBackend
Todo - Portaudio library isn't deinitialized when the Backend is destroyed
Todo - Issues with some devices/drivers(focusrite), especially at lower latency
Todo - XRun reporting seems broken for many(all?) portaudio drivers
Todo - Use(or optionally use) MME stream out api instead of thread/WaitableTimer
Todo - Use a single thread/WaitableTimer for all midi outputs
Todo - Add option to use timestamps supplied via API on a per device level
Todo - Add DirectMusic MIDI driver? Deprecated? mingw-w64 issues?
Todo - Use a DLL for the CycleTimer, will affect/improve MIDI timing etc
Todo - Support Direct Monitoring
TagsNo tags attached.

Relationships

related to 0006507 closedx42 Ardour does not recognize my audio interface 

Activities

x42

2015-08-03 21:23

administrator   ~0016983

"Backend fails to load on WinXP" is fixed in 4.1-496-gc6a0250

The problem was GetThreadId (Vista or later only)

x42

2015-08-03 23:11

administrator   ~0016984

"real" fix for 32bit optimized builds is in 4.1-502-gc8b207d

x42

2015-08-03 23:22

administrator   ~0016985

Add support for PortAudioBackend::get_port_property() "pretty-name"

see CoreAudio and JACK -- both implement pretty-name port property.

also see Waves backend -- it queries port-names from the device (but wrongly appends that name to the port-name, it's older than the port_property API)

timbyr

2015-08-06 00:53

developer   ~0016995

One problem RME HDSP using ASIO is with changing samplerate after opening a session and selecting 96k, then trying to change it back to 48k will fail. I then have to go to the HDSP ASIO control and change it from 96k back to 48k and then I can reconnect/start engine again.

timbyr

2015-08-08 09:25

developer   ~0017002

Added Todo about backend state not being restored. This is something I fixed previously but I have since broken again in committing 71e7b2fb. It could be reverted to fix restoring of state if necessary while I work on a way to fix both issues.

x42

2015-08-09 15:09

administrator   ~0017011

Last edited: 2015-08-09 15:17

comment from #ardour IRC:

wasapi works great, very smooth. i wasnt able to use capture though, or set latency compensation, strange cause it works with ASIO. Same physical device but they had different names in the selection dialogs. i was using it with a SB Audigy, in the output it's called SB Audigy (speakers), in the inputs it was Analog Mix, which is what i typically use as input for the Audigy, input signals also were not registering in the windows mixer meter for that recording device

(might be a windows issues, not an ardour one)

timbyr

2015-08-13 23:44

developer   ~0017028

There has been mention that querying the supported samplerates of ASIO devices is very slow for some devices. We either need to have a way of disabling querying for some devices, or just return hard coded lists.

timbyr

2015-11-20 11:43

developer   ~0017634

I noticed while recording today with the AG06 in loopback mode that adding multiple tracks(in this case 20+) causes some sort of feedback and restarting the driver doesn't seem to fix it. I'm just leaving this note to remind me to look into it further when I get a chance.

timbyr

2015-12-08 03:48

developer  

4.4.463-bt-restart-backend.txt (42,938 bytes)   
GNU gdb (GDB) 7.7
Copyright (C) 2014 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 "i686-w64-mingw32".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://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"...
Source directories searched: C:\Users\timbyr\Desktop\ardour-4.4.463-i686-dbg\bin
/../src/gtk2_ardour;$cdir;$cwd
Source directories searched: C:\Users\timbyr\Desktop\ardour-4.4.463-i686-dbg\bin
/../src/portaudio/src;C:\Users\timbyr\Desktop\ardour-4.4.463-i686-dbg\bin/../src
/gtk2_ardour;$cdir;$cwd
Copying output to C:\Users\timbyr\ardour-debug.log.
Reading symbols from ardour-4.4.463.exe...done.
(gdb) run
Starting program: C:\Users\timbyr\Desktop\ardour-4.4.463-i686-dbg\bin\ardour-4.4
.463.exe
[New Thread 3452.0x13e8]
[New Thread 3452.0xa6c]
[New Thread 3452.0xe98]
Ardour4.4.456 (built using 4.4-463-g1372407 and GCC version 4.9.2 20141030 (Fedo
ra MinGW 4.9.2-1.fc21))
ardour: [INFO]: QPC timer microseconds per tick: 0.4666

ardour: [INFO]: MMCSS Initialized
ardour: [INFO]: Loading system configuration file C:\Users\timbyr\Desktop\ardour
-4.4.463-i686-dbg\share\ardour4\system_config
Loading user configuration file C:\Users\timbyr\AppData\Local\Ardour4\config
CPU vendor: GenuineIntel
ardour: [INFO]: CPU brand: Intel(R) Core(TM)2 Duo CPU     T7500  @ 2.20GHz
ardour: [INFO]: No H/W specific optimizations in use
WASAPI::OpenStream(output): framesPerUser[ 1024 ] framesPerHost[ 2048 ] latency[
 46.44ms ] exclusive[ NO ] wow64_fix[ NO ] mode[ POLL ]
WASAPI::OpenStream: full-duplex mode
[New Thread 3452.0xf78]
[New Thread 3452.0xe64]
[New Thread 3452.0x1120]
[New Thread 3452.0xc08]
[New Thread 3452.0x73c]
[New Thread 3452.0x31c]
[New Thread 3452.0xef4]
[New Thread 3452.0xc58]
[New Thread 3452.0x720]
[New Thread 3452.0x1190]
[New Thread 3452.0x770]
[New Thread 3452.0x9c8]
[New Thread 3452.0xad4]
WASAPI: thread[ priority-0xFFFFFFFD class-0x20 ]
[New Thread 3452.0xab4]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 3452.0x13b8]
0x7789e39e in ntdll!RtlInitUnicodeString () from C:\Windows\system32\ntdll.dll
(gdb) t a a bt

Thread 199 (Thread 3452.0xab4):
#0  0x7789014d in ntdll!ZwWaitForMultipleObjects ()
   from C:\Windows\system32\ntdll.dll
#1  0x7789014d in ntdll!ZwWaitForMultipleObjects ()
   from C:\Windows\system32\ntdll.dll
#2  0x77280962 in WaitForMultipleObjectsEx ()
   from C:\Windows\syswow64\KernelBase.dll
#3  0x00000002 in ?? ()
#4  0x77371a2c in WaitForMultipleObjectsEx ()
   from C:\Windows\syswow64\kernel32.dll
#5  0x77374238 in WaitForMultipleObjects ()
   from C:\Windows\syswow64\kernel32.dll
#6  0x64b42000 in ?? ()
   from C:\Users\timbyr\Desktop\ardour-4.4.463-i686-dbg\bin\libwinpthread-1.dll
Backtrace stopped: previous frame inner to this frame (corrupt stack?)

Thread 198 (Thread 3452.0xad4):
#0  0x7788fd81 in ntdll!ZwDelayExecution () from C:\Windows\system32\ntdll.dll
#1  0x7788fd81 in ntdll!ZwDelayExecution () from C:\Windows\system32\ntdll.dll
#2  0x77282c50 in SleepEx () from C:\Windows\syswow64\KernelBase.dll
#3  0x00000000 in ?? ()

Thread 197 (Thread 3452.0x9c8):
#0  0x64b45169 in ?? ()
   from C:\Users\timbyr\Desktop\ardour-4.4.463-i686-dbg\bin\libwinpthread-1.dll
#1  0x00000000 in ?? ()

Thread 196 (Thread 3452.0x770):
#0  0x7788f8c1 in ntdll!ZwWaitForSingleObject ()
   from C:\Windows\system32\ntdll.dll
#1  0x7788f8c1 in ntdll!ZwWaitForSingleObject ()
   from C:\Windows\system32\ntdll.dll
#2  0x77280816 in WaitForSingleObjectEx ()
   from C:\Windows\syswow64\KernelBase.dll
#3  0x00000554 in ?? ()
#4  0x77371194 in WaitForSingleObjectEx ()
   from C:\Windows\syswow64\kernel32.dll
#5  0x77371148 in WaitForSingleObject () from C:\Windows\syswow64\kernel32.dll
#6  0x6bade5ef in ARDOUR::WinMMEMidiOutputDevice::wait (this=0x21625fd8,
    semaphore=0x554)
    at ../libs/backends/portaudio/winmmemidi_output_device.cc:291
#7  0x6badeea1 in ARDOUR::WinMMEMidiOutputDevice::midi_output_thread (
    this=0x21625fd8)
    at ../libs/backends/portaudio/winmmemidi_output_device.cc:362
#8  0x6badecca in ARDOUR::WinMMEMidiOutputDevice::midi_output_thread (
    arg=0x21625fd8)
    at ../libs/backends/portaudio/winmmemidi_output_device.cc:343
#9  0x64b44b39 in ?? ()
   from C:\Users\timbyr\Desktop\ardour-4.4.463-i686-dbg\bin\libwinpthread-1.dll
#10 0x76d11287 in msvcrt!_itow_s () from C:\Windows\syswow64\msvcrt.dll
#11 0x76d11328 in msvcrt!_endthreadex () from C:\Windows\syswow64\msvcrt.dll
#12 0x773733ca in KERNEL32!BaseThreadInitThunk ()
   from C:\Windows\syswow64\kernel32.dll
#13 0x778a9ed2 in ntdll!RtlInitializeExceptionChain ()
   from C:\Windows\system32\ntdll.dll
#14 0x778a9ea5 in ntdll!RtlInitializeExceptionChain ()
   from C:\Windows\system32\ntdll.dll
#15 0x00000000 in ?? ()

Thread 195 (Thread 3452.0x1190):
#0  0x7788f8c1 in ntdll!ZwWaitForSingleObject ()
   from C:\Windows\system32\ntdll.dll
#1  0x7788f8c1 in ntdll!ZwWaitForSingleObject ()
   from C:\Windows\system32\ntdll.dll
#2  0x77280816 in WaitForSingleObjectEx ()
   from C:\Windows\syswow64\KernelBase.dll
#3  0x00000540 in ?? ()
#4  0x77371194 in WaitForSingleObjectEx ()
   from C:\Windows\syswow64\kernel32.dll
#5  0x77371148 in WaitForSingleObject () from C:\Windows\syswow64\kernel32.dll
#6  0x6bade5ef in ARDOUR::WinMMEMidiOutputDevice::wait (this=0x21625f60,
    semaphore=0x540)
    at ../libs/backends/portaudio/winmmemidi_output_device.cc:291
#7  0x6badeea1 in ARDOUR::WinMMEMidiOutputDevice::midi_output_thread (
    this=0x21625f60)
    at ../libs/backends/portaudio/winmmemidi_output_device.cc:362
#8  0x6badecca in ARDOUR::WinMMEMidiOutputDevice::midi_output_thread (
    arg=0x21625f60)
    at ../libs/backends/portaudio/winmmemidi_output_device.cc:343
#9  0x64b44b39 in ?? ()
   from C:\Users\timbyr\Desktop\ardour-4.4.463-i686-dbg\bin\libwinpthread-1.dll
#10 0x76d11287 in msvcrt!_itow_s () from C:\Windows\syswow64\msvcrt.dll
#11 0x76d11328 in msvcrt!_endthreadex () from C:\Windows\syswow64\msvcrt.dll
#12 0x773733ca in KERNEL32!BaseThreadInitThunk ()
   from C:\Windows\syswow64\kernel32.dll
#13 0x778a9ed2 in ntdll!RtlInitializeExceptionChain ()
   from C:\Windows\system32\ntdll.dll
#14 0x778a9ea5 in ntdll!RtlInitializeExceptionChain ()
   from C:\Windows\system32\ntdll.dll
#15 0x00000000 in ?? ()

Thread 194 (Thread 3452.0x720):
#0  0x7788f8c1 in ntdll!ZwWaitForSingleObject ()
   from C:\Windows\system32\ntdll.dll
#1  0x7788f8c1 in ntdll!ZwWaitForSingleObject ()
   from C:\Windows\system32\ntdll.dll
#2  0x77280816 in WaitForSingleObjectEx ()
   from C:\Windows\syswow64\KernelBase.dll
#3  0x0000052c in ?? ()
#4  0x77371194 in WaitForSingleObjectEx ()
   from C:\Windows\syswow64\kernel32.dll
#5  0x77371148 in WaitForSingleObject () from C:\Windows\syswow64\kernel32.dll
#6  0x6bade5ef in ARDOUR::WinMMEMidiOutputDevice::wait (this=0x21626b28,
    semaphore=0x52c)
    at ../libs/backends/portaudio/winmmemidi_output_device.cc:291
#7  0x6badeea1 in ARDOUR::WinMMEMidiOutputDevice::midi_output_thread (
    this=0x21626b28)
    at ../libs/backends/portaudio/winmmemidi_output_device.cc:362
#8  0x6badecca in ARDOUR::WinMMEMidiOutputDevice::midi_output_thread (
    arg=0x21626b28)
    at ../libs/backends/portaudio/winmmemidi_output_device.cc:343
#9  0x64b44b39 in ?? ()
   from C:\Users\timbyr\Desktop\ardour-4.4.463-i686-dbg\bin\libwinpthread-1.dll
#10 0x76d11287 in msvcrt!_itow_s () from C:\Windows\syswow64\msvcrt.dll
#11 0x76d11328 in msvcrt!_endthreadex () from C:\Windows\syswow64\msvcrt.dll
#12 0x773733ca in KERNEL32!BaseThreadInitThunk ()
   from C:\Windows\syswow64\kernel32.dll
#13 0x778a9ed2 in ntdll!RtlInitializeExceptionChain ()
   from C:\Windows\system32\ntdll.dll
#14 0x778a9ea5 in ntdll!RtlInitializeExceptionChain ()
   from C:\Windows\system32\ntdll.dll
#15 0x00000000 in ?? ()

Thread 193 (Thread 3452.0xc58):
#0  0x7788f8c1 in ntdll!ZwWaitForSingleObject ()
   from C:\Windows\system32\ntdll.dll
#1  0x7788f8c1 in ntdll!ZwWaitForSingleObject ()
   from C:\Windows\system32\ntdll.dll
#2  0x77280816 in WaitForSingleObjectEx ()
   from C:\Windows\syswow64\KernelBase.dll
#3  0x000004f0 in ?? ()
#4  0x77371194 in WaitForSingleObjectEx ()
   from C:\Windows\syswow64\kernel32.dll
#5  0x77371148 in WaitForSingleObject () from C:\Windows\syswow64\kernel32.dll
#6  0x6bade5ef in ARDOUR::WinMMEMidiOutputDevice::wait (this=0x18740370,
    semaphore=0x4f0)
    at ../libs/backends/portaudio/winmmemidi_output_device.cc:291
#7  0x6badeea1 in ARDOUR::WinMMEMidiOutputDevice::midi_output_thread (
    this=0x18740370)
    at ../libs/backends/portaudio/winmmemidi_output_device.cc:362
#8  0x6badecca in ARDOUR::WinMMEMidiOutputDevice::midi_output_thread (
    arg=0x18740370)
    at ../libs/backends/portaudio/winmmemidi_output_device.cc:343
#9  0x64b44b39 in ?? ()
   from C:\Users\timbyr\Desktop\ardour-4.4.463-i686-dbg\bin\libwinpthread-1.dll
#10 0x76d11287 in msvcrt!_itow_s () from C:\Windows\syswow64\msvcrt.dll
#11 0x76d11328 in msvcrt!_endthreadex () from C:\Windows\syswow64\msvcrt.dll
#12 0x773733ca in KERNEL32!BaseThreadInitThunk ()
   from C:\Windows\syswow64\kernel32.dll
#13 0x778a9ed2 in ntdll!RtlInitializeExceptionChain ()
   from C:\Windows\system32\ntdll.dll
#14 0x778a9ea5 in ntdll!RtlInitializeExceptionChain ()
   from C:\Windows\system32\ntdll.dll
#15 0x00000000 in ?? ()

Thread 192 (Thread 3452.0xef4):
#0  0x77891f36 in ntdll!ZwWaitForWorkViaWorkerFactory ()
   from C:\Windows\system32\ntdll.dll
#1  0x77891f36 in ntdll!ZwWaitForWorkViaWorkerFactory ()
   from C:\Windows\system32\ntdll.dll
#2  0x778b471e in ntdll!TpSetTimer () from C:\Windows\system32\ntdll.dll
#3  0x773733ca in KERNEL32!BaseThreadInitThunk ()
   from C:\Windows\syswow64\kernel32.dll
#4  0x778a9ed2 in ntdll!RtlInitializeExceptionChain ()
   from C:\Windows\system32\ntdll.dll
#5  0x778a9ea5 in ntdll!RtlInitializeExceptionChain ()
   from C:\Windows\system32\ntdll.dll
#6  0x00000000 in ?? ()

Thread 191 (Thread 3452.0x31c):
#0  0x7789014d in ntdll!ZwWaitForMultipleObjects ()
   from C:\Windows\system32\ntdll.dll
#1  0x7789014d in ntdll!ZwWaitForMultipleObjects ()
   from C:\Windows\system32\ntdll.dll
#2  0x77280962 in WaitForMultipleObjectsEx ()
   from C:\Windows\syswow64\KernelBase.dll
#3  0x00000001 in ?? ()
#4  0x77371a2c in WaitForMultipleObjectsEx ()
   from C:\Windows\syswow64\kernel32.dll
#5  0x75ea086a in USER32!PeekMessageW () from C:\Windows\syswow64\user32.dll
#6  0x73032101 in MMDevAPI!DllCanUnloadNow ()
   from C:\Windows\SysWOW64\MMDevAPI.dll
#7  0x000004ff in ?? ()
#8  0x730327ee in MMDevAPI!DllCanUnloadNow ()
   from C:\Windows\SysWOW64\MMDevAPI.dll
#9  0x1b12ffd4 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)

Thread 190 (Thread 3452.0x73c):
#0  0x7789014d in ntdll!ZwWaitForMultipleObjects ()
   from C:\Windows\system32\ntdll.dll
#1  0x7789014d in ntdll!ZwWaitForMultipleObjects ()
   from C:\Windows\system32\ntdll.dll
#2  0x77280962 in WaitForMultipleObjectsEx ()
   from C:\Windows\syswow64\KernelBase.dll
#3  0x00000003 in ?? ()
#4  0x77371a2c in WaitForMultipleObjectsEx ()
   from C:\Windows\syswow64\kernel32.dll
#5  0x74585016 in wodMessage () from C:\Windows\SysWOW64\wdmaud.drv
#6  0x74588119 in modMessage () from C:\Windows\SysWOW64\wdmaud.drv
#7  0x773733ca in KERNEL32!BaseThreadInitThunk ()
   from C:\Windows\syswow64\kernel32.dll
#8  0x778a9ed2 in ntdll!RtlInitializeExceptionChain ()
   from C:\Windows\system32\ntdll.dll
#9  0x778a9ea5 in ntdll!RtlInitializeExceptionChain ()
   from C:\Windows\system32\ntdll.dll
#10 0x00000000 in ?? ()

Thread 189 (Thread 3452.0xc08):
#0  0x7788f8c1 in ntdll!ZwWaitForSingleObject ()
   from C:\Windows\system32\ntdll.dll
#1  0x7788f8c1 in ntdll!ZwWaitForSingleObject ()
   from C:\Windows\system32\ntdll.dll
#2  0x77280816 in WaitForSingleObjectEx ()
   from C:\Windows\syswow64\KernelBase.dll
#3  0x00000558 in ?? ()
#4  0x77371194 in WaitForSingleObjectEx ()
   from C:\Windows\syswow64\kernel32.dll
#5  0x77371148 in WaitForSingleObject () from C:\Windows\syswow64\kernel32.dll
#6  0x74584d62 in wodMessage () from C:\Windows\SysWOW64\wdmaud.drv
#7  0x7458530b in wodMessage () from C:\Windows\SysWOW64\wdmaud.drv
#8  0x7458f2d2 in midMessage () from C:\Windows\SysWOW64\wdmaud.drv
#9  0x74584b7b in wodMessage () from C:\Windows\SysWOW64\wdmaud.drv
#10 0x732b49d7 in waveOutOpen () from C:\Windows\SysWOW64\winmm.dll
#11 0x732d5557 in waveOutGetPosition () from C:\Windows\SysWOW64\winmm.dll
#12 0x745c131b in ?? () from C:\Windows\SysWOW64\msacm32.drv
#13 0x745c14f5 in wodMessage () from C:\Windows\SysWOW64\msacm32.drv
#14 0x732b49d7 in waveOutOpen () from C:\Windows\SysWOW64\winmm.dll
#15 0x732d5557 in waveOutGetPosition () from C:\Windows\SysWOW64\winmm.dll
#16 0x74595795 in midMessage () from C:\Windows\SysWOW64\wdmaud.drv
#17 0x7459927b in midMessage () from C:\Windows\SysWOW64\wdmaud.drv
#18 0x74599351 in midMessage () from C:\Windows\SysWOW64\wdmaud.drv
#19 0x76d11287 in msvcrt!_itow_s () from C:\Windows\syswow64\msvcrt.dll
#20 0x76d11328 in msvcrt!_endthreadex () from C:\Windows\syswow64\msvcrt.dll
#21 0x773733ca in KERNEL32!BaseThreadInitThunk ()
   from C:\Windows\syswow64\kernel32.dll
#22 0x778a9ed2 in ntdll!RtlInitializeExceptionChain ()
   from C:\Windows\system32\ntdll.dll
#23 0x778a9ea5 in ntdll!RtlInitializeExceptionChain ()
   from C:\Windows\system32\ntdll.dll
#24 0x00000000 in ?? ()

Thread 188 (Thread 3452.0x1120):
#0  0x7789014d in ntdll!ZwWaitForMultipleObjects ()
   from C:\Windows\system32\ntdll.dll
#1  0x7789014d in ntdll!ZwWaitForMultipleObjects ()
   from C:\Windows\system32\ntdll.dll
#2  0x77280962 in WaitForMultipleObjectsEx ()
   from C:\Windows\syswow64\KernelBase.dll
#3  0x00000002 in ?? ()
#4  0x77371a2c in WaitForMultipleObjectsEx ()
   from C:\Windows\syswow64\kernel32.dll
#5  0x77374238 in WaitForMultipleObjects ()
   from C:\Windows\syswow64\kernel32.dll
#6  0x74593964 in midMessage () from C:\Windows\SysWOW64\wdmaud.drv
#7  0x773733ca in KERNEL32!BaseThreadInitThunk ()
   from C:\Windows\syswow64\kernel32.dll
#8  0x778a9ed2 in ntdll!RtlInitializeExceptionChain ()
   from C:\Windows\system32\ntdll.dll
#9  0x778a9ea5 in ntdll!RtlInitializeExceptionChain ()
   from C:\Windows\system32\ntdll.dll
#10 0x00000000 in ?? ()

Thread 187 (Thread 3452.0xe64):
#0  0x7789014d in ntdll!ZwWaitForMultipleObjects ()
   from C:\Windows\system32\ntdll.dll
#1  0x7789014d in ntdll!ZwWaitForMultipleObjects ()
   from C:\Windows\system32\ntdll.dll
#2  0x77280962 in WaitForMultipleObjectsEx ()
   from C:\Windows\syswow64\KernelBase.dll
#3  0x00000002 in ?? ()
#4  0x77371a2c in WaitForMultipleObjectsEx ()
   from C:\Windows\syswow64\kernel32.dll
#5  0x77374238 in WaitForMultipleObjects ()
   from C:\Windows\syswow64\kernel32.dll
#6  0x74593964 in midMessage () from C:\Windows\SysWOW64\wdmaud.drv
#7  0x773733ca in KERNEL32!BaseThreadInitThunk ()
   from C:\Windows\syswow64\kernel32.dll
#8  0x778a9ed2 in ntdll!RtlInitializeExceptionChain ()
   from C:\Windows\system32\ntdll.dll
#9  0x778a9ea5 in ntdll!RtlInitializeExceptionChain ()
   from C:\Windows\system32\ntdll.dll
#10 0x00000000 in ?? ()

Thread 186 (Thread 3452.0xf78):
#0  0x7789014d in ntdll!ZwWaitForMultipleObjects ()
   from C:\Windows\system32\ntdll.dll
#1  0x7789014d in ntdll!ZwWaitForMultipleObjects ()
   from C:\Windows\system32\ntdll.dll
#2  0x77280962 in WaitForMultipleObjectsEx ()
   from C:\Windows\syswow64\KernelBase.dll
#3  0x00000002 in ?? ()
#4  0x77371a2c in WaitForMultipleObjectsEx ()
   from C:\Windows\syswow64\kernel32.dll
#5  0x77374238 in WaitForMultipleObjects ()
   from C:\Windows\syswow64\kernel32.dll
#6  0x74593964 in midMessage () from C:\Windows\SysWOW64\wdmaud.drv
#7  0x773733ca in KERNEL32!BaseThreadInitThunk ()
   from C:\Windows\syswow64\kernel32.dll
#8  0x778a9ed2 in ntdll!RtlInitializeExceptionChain ()
   from C:\Windows\system32\ntdll.dll
#9  0x778a9ea5 in ntdll!RtlInitializeExceptionChain ()
   from C:\Windows\system32\ntdll.dll
#10 0x00000000 in ?? ()

Thread 185 (Thread 3452.0xa98):
#0  0x77891f36 in ntdll!ZwWaitForWorkViaWorkerFactory ()
   from C:\Windows\system32\ntdll.dll
#1  0x77891f36 in ntdll!ZwWaitForWorkViaWorkerFactory ()
   from C:\Windows\system32\ntdll.dll
#2  0x778b471e in ntdll!TpSetTimer () from C:\Windows\system32\ntdll.dll
#3  0x773733ca in KERNEL32!BaseThreadInitThunk ()
   from C:\Windows\syswow64\kernel32.dll
#4  0x778a9ed2 in ntdll!RtlInitializeExceptionChain ()
   from C:\Windows\system32\ntdll.dll
#5  0x778a9ea5 in ntdll!RtlInitializeExceptionChain ()
   from C:\Windows\system32\ntdll.dll
#6  0x00000000 in ?? ()

Thread 180 (Thread 3452.0xf54):
#0  0x77891f1d in ntdll!ZwWaitForKeyedEvent ()
   from C:\Windows\system32\ntdll.dll
#1  0x77891f1d in ntdll!ZwWaitForKeyedEvent ()
   from C:\Windows\system32\ntdll.dll
#2  0x7791810f in ntdll!RtlSleepConditionVariableSRW ()
   from C:\Windows\system32\ntdll.dll
#3  0x227afcc0 in ?? ()
#4  0x773f4b98 in SleepConditionVariableSRW ()
   from C:\Windows\syswow64\kernel32.dll
#5  0x688368c8 in ?? ()
   from C:\Users\timbyr\Desktop\ardour-4.4.463-i686-dbg\bin\libglib-2.0-0.dll
#6  0x0f3533a0 in sigc::pointer_functor0<void>::operator() (this=0x190d1c3c)
    at /usr/i686-w64-mingw32/sys-root/mingw/include/sigc++-2.0/sigc++/functors/p
tr_fun.h:77
#7  0x0f35328e in sigc::adaptor_functor<sigc::pointer_functor0<void> >::operator
() (this=0x190d1c38)
    at /usr/i686-w64-mingw32/sys-root/mingw/include/sigc++-2.0/sigc++/adaptors/a
daptor_trait.h:256
#8  0x0f348601 in sigc::internal::slot_call0<sigc::pointer_functor0<void>, void>
::call_it (rep=0x190d1c20)
    at /usr/i686-w64-mingw32/sys-root/mingw/include/sigc++-2.0/sigc++/functors/s
lot.h:103
#9  0x664cf373 in ?? ()
   from C:\Users\timbyr\Desktop\ardour-4.4.463-i686-dbg\bin\libglibmm-2.4-1.dll
#10 0x76d11328 in msvcrt!_endthreadex () from C:\Windows\syswow64\msvcrt.dll
#11 0x773733ca in KERNEL32!BaseThreadInitThunk ()
   from C:\Windows\syswow64\kernel32.dll
#12 0x778a9ed2 in ntdll!RtlInitializeExceptionChain ()
   from C:\Windows\system32\ntdll.dll
#13 0x778a9ea5 in ntdll!RtlInitializeExceptionChain ()
   from C:\Windows\system32\ntdll.dll
#14 0x00000000 in ?? ()

Thread 178 (Thread 3452.0x840):
#0  0x77891f1d in ntdll!ZwWaitForKeyedEvent ()
   from C:\Windows\system32\ntdll.dll
#1  0x77891f1d in ntdll!ZwWaitForKeyedEvent ()
   from C:\Windows\system32\ntdll.dll
#2  0x7791810f in ntdll!RtlSleepConditionVariableSRW ()
   from C:\Windows\system32\ntdll.dll
#3  0x229afdb0 in ?? ()
#4  0x773f4b98 in SleepConditionVariableSRW ()
   from C:\Windows\syswow64\kernel32.dll
#5  0x6883691e in ?? ()
   from C:\Users\timbyr\Desktop\ardour-4.4.463-i686-dbg\bin\libglib-2.0-0.dll
Backtrace stopped: previous frame inner to this frame (corrupt stack?)

Thread 176 (Thread 3452.0xa5c):
#0  0x7788fd81 in ntdll!ZwDelayExecution () from C:\Windows\system32\ntdll.dll
#1  0x7788fd81 in ntdll!ZwDelayExecution () from C:\Windows\system32\ntdll.dll
#2  0x77282c50 in SleepEx () from C:\Windows\syswow64\KernelBase.dll
#3  0x00000000 in ?? ()

Thread 175 (Thread 3452.0xf60):
#0  0x7789014d in ntdll!ZwWaitForMultipleObjects ()
   from C:\Windows\system32\ntdll.dll
#1  0x7789014d in ntdll!ZwWaitForMultipleObjects ()
   from C:\Windows\system32\ntdll.dll
#2  0x77280962 in WaitForMultipleObjectsEx ()
   from C:\Windows\syswow64\KernelBase.dll
#3  0x00000002 in ?? ()
#4  0x77371a2c in WaitForMultipleObjectsEx ()
   from C:\Windows\syswow64\kernel32.dll
#5  0x77374238 in WaitForMultipleObjects ()
   from C:\Windows\syswow64\kernel32.dll
#6  0x64b42000 in ?? ()
   from C:\Users\timbyr\Desktop\ardour-4.4.463-i686-dbg\bin\libwinpthread-1.dll
Backtrace stopped: previous frame inner to this frame (corrupt stack?)

Thread 174 (Thread 3452.0x13b8):
#0  0x7789e39e in ntdll!RtlInitUnicodeString ()
   from C:\Windows\system32\ntdll.dll
#1  0x09130000 in ?? ()
#2  0x7789e003 in ntdll!RtlFreeHeap () from C:\Windows\system32\ntdll.dll
#3  0x76d098cd in msvcrt!free () from C:\Windows\syswow64\msvcrt.dll
#4  0x09130000 in ?? ()
#5  0x0981c7f7 in AbstractUI<ARDOUR::MidiUIRequest>::handle_ui_requests (
    this=0x1805bce8)
    at /home/timbyr/Data/devel/mingw-pkg/BUILD/ardour-master-i686/libs/pbd/pbd/a
bstract_ui.cc:214
#6  0x64142423 in BaseUI::request_handler (this=0x1805bce8, ioc=Glib::IO_IN)
    at ../libs/pbd/base_ui.cc:141
#7  0x641881fa in sigc::bound_mem_functor1<bool, BaseUI, Glib::IOCondition>::ope
rator() (this=0x1805bf3c, _A_a1=@0x1c82fc48: Glib::IO_IN)
    at /usr/i686-w64-mingw32/sys-root/mingw/include/sigc++-2.0/sigc++/functors/m
em_fun.h:1856
#8  0x6418808c in sigc::adaptor_functor<sigc::bound_mem_functor1<bool, BaseUI, G
lib::IOCondition> >::operator()<Glib::IOCondition const&> (this=0x1805bf38,
    _A_arg1=@0x1c82fc48: Glib::IO_IN)
    at /usr/i686-w64-mingw32/sys-root/mingw/include/sigc++-2.0/sigc++/adaptors/a
daptor_trait.h:89
#9  0x6417dfc3 in sigc::internal::slot_call1<sigc::bound_mem_functor1<bool, Base
UI, Glib::IOCondition>, bool, Glib::IOCondition>::call_it (rep=0x1805bf20,
    a_1=@0x1c82fc48: Glib::IO_IN)
    at /usr/i686-w64-mingw32/sys-root/mingw/include/sigc++-2.0/sigc++/functors/s
lot.h:137
#10 0x641882b8 in sigc::slot1<bool, Glib::IOCondition>::operator() (
    this=0x1805bd24, _A_a1=@0x1c82fc48: Glib::IO_IN)
    at /usr/i686-w64-mingw32/sys-root/mingw/include/sigc++-2.0/sigc++/functors/s
lot.h:515
#11 0x64147e30 in cross_thread_channel_call_receive_slot (condition=G_IO_IN,
    data=0x1805bd1c) at ../libs/pbd/crossthread.cc:49
#12 0x687f2f74 in ?? ()
   from C:\Users\timbyr\Desktop\ardour-4.4.463-i686-dbg\bin\libglib-2.0-0.dll

Thread 173 (Thread 3452.0x105c):
#0  0x7788f8c1 in ntdll!ZwWaitForSingleObject ()
   from C:\Windows\system32\ntdll.dll
#1  0x7788f8c1 in ntdll!ZwWaitForSingleObject ()
   from C:\Windows\system32\ntdll.dll
#2  0x73da6f0f in ?? () from C:\Windows\SysWOW64\mswsock.dll
#3  0x73da6d30 in ?? () from C:\Windows\SysWOW64\mswsock.dll
#4  0x77046a28 in select () from C:\Windows\syswow64\ws2_32.dll
#5  0x0000028d in ?? ()
#6  0x64147d3d in CrossThreadChannel::poll_for_request (this=0x17241c3c)
    at ../libs/pbd/crossthread.win.cc:163
#7  0x64147dbd in CrossThreadChannel::receive (this=0x17241c3c,
    msg=@0x179efb5f: 1 '\001', wait=true)
    at ../libs/pbd/crossthread.win.cc:183
#8  0x0952ff98 in ARDOUR::Butler::thread_work (this=0x17241bd0)
    at ../libs/ardour/butler.cc:175
#9  0x0952fc37 in ARDOUR::Butler::_thread_work (arg=0x17241bd0)
    at ../libs/ardour/butler.cc:156
#10 0x64155ade in fake_thread_start (arg=0x1805b948)
    at ../libs/pbd/pthread_utils.cc:93
#11 0x64b44b39 in ?? ()
   from C:\Users\timbyr\Desktop\ardour-4.4.463-i686-dbg\bin\libwinpthread-1.dll
#12 0x76d11287 in msvcrt!_itow_s () from C:\Windows\syswow64\msvcrt.dll
#13 0x76d11328 in msvcrt!_endthreadex () from C:\Windows\syswow64\msvcrt.dll
#14 0x773733ca in KERNEL32!BaseThreadInitThunk ()
   from C:\Windows\syswow64\kernel32.dll
#15 0x778a9ed2 in ntdll!RtlInitializeExceptionChain ()
   from C:\Windows\system32\ntdll.dll
#16 0x778a9ea5 in ntdll!RtlInitializeExceptionChain ()
   from C:\Windows\system32\ntdll.dll
#17 0x00000000 in ?? ()

Thread 118 (Thread 3452.0x1218):
#0  0x77891f36 in ntdll!ZwWaitForWorkViaWorkerFactory ()
   from C:\Windows\system32\ntdll.dll
#1  0x77891f36 in ntdll!ZwWaitForWorkViaWorkerFactory ()
   from C:\Windows\system32\ntdll.dll
#2  0x778b471e in ntdll!TpSetTimer () from C:\Windows\system32\ntdll.dll
#3  0x773733ca in KERNEL32!BaseThreadInitThunk ()
   from C:\Windows\syswow64\kernel32.dll
#4  0x778a9ed2 in ntdll!RtlInitializeExceptionChain ()
   from C:\Windows\system32\ntdll.dll
#5  0x778a9ea5 in ntdll!RtlInitializeExceptionChain ()
   from C:\Windows\system32\ntdll.dll
#6  0x00000000 in ?? ()

Thread 16 (Thread 3452.0xa70):
#0  0x7789014d in ntdll!ZwWaitForMultipleObjects ()
   from C:\Windows\system32\ntdll.dll
#1  0x7789014d in ntdll!ZwWaitForMultipleObjects ()
   from C:\Windows\system32\ntdll.dll
#2  0x77280962 in WaitForMultipleObjectsEx ()
   from C:\Windows\syswow64\KernelBase.dll
#3  0x00000001 in ?? ()
#4  0x77371a2c in WaitForMultipleObjectsEx ()
   from C:\Windows\syswow64\kernel32.dll
#5  0x77374238 in WaitForMultipleObjects ()
   from C:\Windows\syswow64\kernel32.dll
#6  0x72fb12da in ?? () from C:\Windows\SysWOW64\dsound.dll
#7  0x72fb2e13 in ?? () from C:\Windows\SysWOW64\dsound.dll
#8  0x72fb2d94 in ?? () from C:\Windows\SysWOW64\dsound.dll
#9  0x72fb29ae in ?? () from C:\Windows\SysWOW64\dsound.dll
#10 0x773733ca in KERNEL32!BaseThreadInitThunk ()
   from C:\Windows\syswow64\kernel32.dll
#11 0x778a9ed2 in ntdll!RtlInitializeExceptionChain ()
   from C:\Windows\system32\ntdll.dll
#12 0x778a9ea5 in ntdll!RtlInitializeExceptionChain ()
   from C:\Windows\system32\ntdll.dll
#13 0x00000000 in ?? ()

Thread 11 (Thread 3452.0x1310):
#0  0x7789014d in ntdll!ZwWaitForMultipleObjects ()
   from C:\Windows\system32\ntdll.dll
#1  0x7789014d in ntdll!ZwWaitForMultipleObjects ()
   from C:\Windows\system32\ntdll.dll
#2  0x778b431f in ntdll!RtlLoadString () from C:\Windows\system32\ntdll.dll
#3  0x00000005 in ?? ()
#4  0x773733ca in KERNEL32!BaseThreadInitThunk ()
   from C:\Windows\syswow64\kernel32.dll
#5  0x778a9ed2 in ntdll!RtlInitializeExceptionChain ()
   from C:\Windows\system32\ntdll.dll
#6  0x778a9ea5 in ntdll!RtlInitializeExceptionChain ()
   from C:\Windows\system32\ntdll.dll
#7  0x00000000 in ?? ()

Thread 9 (Thread 3452.0x3dc):
#0  0x7789014d in ntdll!ZwWaitForMultipleObjects ()
   from C:\Windows\system32\ntdll.dll
#1  0x7789014d in ntdll!ZwWaitForMultipleObjects ()
   from C:\Windows\system32\ntdll.dll
#2  0x77280962 in WaitForMultipleObjectsEx ()
   from C:\Windows\syswow64\KernelBase.dll
#3  0x00000002 in ?? ()
#4  0x77371a2c in WaitForMultipleObjectsEx ()
   from C:\Windows\syswow64\kernel32.dll
#5  0x75ea086a in USER32!PeekMessageW () from C:\Windows\syswow64\user32.dll
#6  0x75ea0b69 in USER32!MsgWaitForMultipleObjects ()
   from C:\Windows\syswow64\user32.dll
#7  0x73337923 in gdiplus!GdipCreateSolidFill ()
   from C:\Windows\WinSxS\x86_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.760
1.17514_none_72d18a4386696c80\GdiPlus.dll
#8  0x73337842 in gdiplus!GdipCreateSolidFill ()
   from C:\Windows\WinSxS\x86_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.760
1.17514_none_72d18a4386696c80\GdiPlus.dll
#9  0x773733ca in KERNEL32!BaseThreadInitThunk ()
   from C:\Windows\syswow64\kernel32.dll
#10 0x778a9ed2 in ntdll!RtlInitializeExceptionChain ()
   from C:\Windows\system32\ntdll.dll
#11 0x778a9ea5 in ntdll!RtlInitializeExceptionChain ()
   from C:\Windows\system32\ntdll.dll
#12 0x00000000 in ?? ()

Thread 8 (Thread 3452.0x1010):
#0  0x77891f1d in ntdll!ZwWaitForKeyedEvent ()
   from C:\Windows\system32\ntdll.dll
#1  0x77891f1d in ntdll!ZwWaitForKeyedEvent ()
   from C:\Windows\system32\ntdll.dll
#2  0x7791810f in ntdll!RtlSleepConditionVariableSRW ()
   from C:\Windows\system32\ntdll.dll
#3  0x1392fc80 in ?? ()
#4  0x773f4b98 in SleepConditionVariableSRW ()
   from C:\Windows\syswow64\kernel32.dll
#5  0x688368c8 in ?? ()
   from C:\Users\timbyr\Desktop\ardour-4.4.463-i686-dbg\bin\libglib-2.0-0.dll
#6  0x09943c86 in boost::_mfi::mf0<void, ARDOUR::AudioEngine>::operator() (
    this=0x1192f638, p=0x118e7818)
    at /usr/i686-w64-mingw32/sys-root/mingw/include/boost/bind/mem_fn_template.h
pp:49
#7  0x0989d2d8 in boost::_bi::list1<boost::_bi::value<ARDOUR::AudioEngine*> >::o
perator()<boost::_mfi::mf0<void, ARDOUR::AudioEngine>, boost::_bi::list0> (
    this=0x1192f640, f=..., a=...)
    at /usr/i686-w64-mingw32/sys-root/mingw/include/boost/bind/bind.hpp:253
#8  0x098a8110 in boost::_bi::bind_t<void, boost::_mfi::mf0<void, ARDOUR::AudioE
ngine>, boost::_bi::list1<boost::_bi::value<ARDOUR::AudioEngine*> > >::operator(
) (this=0x1192f638)
    at /usr/i686-w64-mingw32/sys-root/mingw/include/boost/bind/bind_template.hpp
:20
#9  0x09939fcf 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=0x1192f638)
    at /usr/i686-w64-mingw32/sys-root/mingw/include/sigc++-2.0/sigc++/adaptors/a
daptor_trait.h:256
#10 0x0986da05 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=0x1192f620)
    at /usr/i686-w64-mingw32/sys-root/mingw/include/sigc++-2.0/sigc++/functors/s
lot.h:103
#11 0x664cf373 in ?? ()
   from C:\Users\timbyr\Desktop\ardour-4.4.463-i686-dbg\bin\libglibmm-2.4-1.dll
#12 0x76d11328 in msvcrt!_endthreadex () from C:\Windows\syswow64\msvcrt.dll
#13 0x773733ca in KERNEL32!BaseThreadInitThunk ()
   from C:\Windows\syswow64\kernel32.dll
#14 0x778a9ed2 in ntdll!RtlInitializeExceptionChain ()
   from C:\Windows\system32\ntdll.dll
#15 0x778a9ea5 in ntdll!RtlInitializeExceptionChain ()
   from C:\Windows\system32\ntdll.dll
#16 0x00000000 in ?? ()

Thread 7 (Thread 3452.0xe80):
#0  0x77891f1d in ntdll!ZwWaitForKeyedEvent ()
   from C:\Windows\system32\ntdll.dll
#1  0x77891f1d in ntdll!ZwWaitForKeyedEvent ()
   from C:\Windows\system32\ntdll.dll
#2  0x7791810f in ntdll!RtlSleepConditionVariableSRW ()
   from C:\Windows\system32\ntdll.dll
#3  0x136efc80 in ?? ()
#4  0x773f4b98 in SleepConditionVariableSRW ()
   from C:\Windows\syswow64\kernel32.dll
#5  0x688368c8 in ?? ()
   from C:\Users\timbyr\Desktop\ardour-4.4.463-i686-dbg\bin\libglib-2.0-0.dll
#6  0x09943c86 in boost::_mfi::mf0<void, ARDOUR::AudioEngine>::operator() (
    this=0x1192f538, p=0x118e7818)
    at /usr/i686-w64-mingw32/sys-root/mingw/include/boost/bind/mem_fn_template.h
pp:49
#7  0x0989d2d8 in boost::_bi::list1<boost::_bi::value<ARDOUR::AudioEngine*> >::o
perator()<boost::_mfi::mf0<void, ARDOUR::AudioEngine>, boost::_bi::list0> (
    this=0x1192f540, f=..., a=...)
    at /usr/i686-w64-mingw32/sys-root/mingw/include/boost/bind/bind.hpp:253
#8  0x098a8110 in boost::_bi::bind_t<void, boost::_mfi::mf0<void, ARDOUR::AudioE
ngine>, boost::_bi::list1<boost::_bi::value<ARDOUR::AudioEngine*> > >::operator(
) (this=0x1192f538)
    at /usr/i686-w64-mingw32/sys-root/mingw/include/boost/bind/bind_template.hpp
:20
#9  0x09939fcf 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=0x1192f538)
    at /usr/i686-w64-mingw32/sys-root/mingw/include/sigc++-2.0/sigc++/adaptors/a
daptor_trait.h:256
#10 0x0986da05 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=0x1192f520)
    at /usr/i686-w64-mingw32/sys-root/mingw/include/sigc++-2.0/sigc++/functors/s
lot.h:103
#11 0x664cf373 in ?? ()
   from C:\Users\timbyr\Desktop\ardour-4.4.463-i686-dbg\bin\libglibmm-2.4-1.dll
#12 0x76d11328 in msvcrt!_endthreadex () from C:\Windows\syswow64\msvcrt.dll
#13 0x773733ca in KERNEL32!BaseThreadInitThunk ()
   from C:\Windows\syswow64\kernel32.dll
#14 0x778a9ed2 in ntdll!RtlInitializeExceptionChain ()
   from C:\Windows\system32\ntdll.dll
#15 0x778a9ea5 in ntdll!RtlInitializeExceptionChain ()
   from C:\Windows\system32\ntdll.dll
#16 0x00000000 in ?? ()

Thread 6 (Thread 3452.0x8b4):
#0  0x77891f1d in ntdll!ZwWaitForKeyedEvent ()
   from C:\Windows\system32\ntdll.dll
#1  0x77891f1d in ntdll!ZwWaitForKeyedEvent ()
   from C:\Windows\system32\ntdll.dll
#2  0x7791810f in ntdll!RtlSleepConditionVariableSRW ()
   from C:\Windows\system32\ntdll.dll
#3  0x131dfd00 in ?? ()
#4  0x773f4b98 in SleepConditionVariableSRW ()
   from C:\Windows\syswow64\kernel32.dll
#5  0x688368c8 in ?? ()
   from C:\Users\timbyr\Desktop\ardour-4.4.463-i686-dbg\bin\libglib-2.0-0.dll
#6  0x0993a120 in sigc::pointer_functor0<void>::operator() (this=0x1193147c)
    at /usr/i686-w64-mingw32/sys-root/mingw/include/sigc++-2.0/sigc++/functors/p
tr_fun.h:77
#7  0x0993a002 in sigc::adaptor_functor<sigc::pointer_functor0<void> >::operator
() (this=0x11931478)
    at /usr/i686-w64-mingw32/sys-root/mingw/include/sigc++-2.0/sigc++/adaptors/a
daptor_trait.h:256
#8  0x0986da7d in sigc::internal::slot_call0<sigc::pointer_functor0<void>, void>
::call_it (rep=0x11931460)
    at /usr/i686-w64-mingw32/sys-root/mingw/include/sigc++-2.0/sigc++/functors/s
lot.h:103
#9  0x664cf373 in ?? ()
   from C:\Users\timbyr\Desktop\ardour-4.4.463-i686-dbg\bin\libglibmm-2.4-1.dll
#10 0x76d11328 in msvcrt!_endthreadex () from C:\Windows\syswow64\msvcrt.dll
#11 0x773733ca in KERNEL32!BaseThreadInitThunk ()
   from C:\Windows\syswow64\kernel32.dll
#12 0x778a9ed2 in ntdll!RtlInitializeExceptionChain ()
   from C:\Windows\system32\ntdll.dll
#13 0x778a9ea5 in ntdll!RtlInitializeExceptionChain ()
   from C:\Windows\system32\ntdll.dll
#14 0x00000000 in ?? ()

Thread 5 (Thread 3452.0x9a0):
#0  0x77891f1d in ntdll!ZwWaitForKeyedEvent ()
   from C:\Windows\system32\ntdll.dll
#1  0x77891f1d in ntdll!ZwWaitForKeyedEvent ()
   from C:\Windows\system32\ntdll.dll
#2  0x7791810f in ntdll!RtlSleepConditionVariableSRW ()
   from C:\Windows\system32\ntdll.dll
#3  0x133dfcd0 in ?? ()
#4  0x773f4b98 in SleepConditionVariableSRW ()
   from C:\Windows\syswow64\kernel32.dll
#5  0x688368c8 in ?? ()
   from C:\Users\timbyr\Desktop\ardour-4.4.463-i686-dbg\bin\libglib-2.0-0.dll
#6  0x094c46cc in analyser_work () at ../libs/ardour/analyser.cc:51
#7  0x0993a120 in sigc::pointer_functor0<void>::operator() (this=0x119267ac)
    at /usr/i686-w64-mingw32/sys-root/mingw/include/sigc++-2.0/sigc++/functors/p
tr_fun.h:77
#8  0x0993a002 in sigc::adaptor_functor<sigc::pointer_functor0<void> >::operator
() (this=0x119267a8)
    at /usr/i686-w64-mingw32/sys-root/mingw/include/sigc++-2.0/sigc++/adaptors/a
daptor_trait.h:256
#9  0x0986da7d in sigc::internal::slot_call0<sigc::pointer_functor0<void>, void>
::call_it (rep=0x11926790)
    at /usr/i686-w64-mingw32/sys-root/mingw/include/sigc++-2.0/sigc++/functors/s
lot.h:103
#10 0x664cf373 in ?? ()
   from C:\Users\timbyr\Desktop\ardour-4.4.463-i686-dbg\bin\libglibmm-2.4-1.dll
#11 0x76d11328 in msvcrt!_endthreadex () from C:\Windows\syswow64\msvcrt.dll
#12 0x773733ca in KERNEL32!BaseThreadInitThunk ()
   from C:\Windows\syswow64\kernel32.dll
#13 0x778a9ed2 in ntdll!RtlInitializeExceptionChain ()
   from C:\Windows\system32\ntdll.dll
#14 0x778a9ea5 in ntdll!RtlInitializeExceptionChain ()
   from C:\Windows\system32\ntdll.dll
#15 0x00000000 in ?? ()

Thread 4 (Thread 3452.0x8a4):
#0  0x77891f1d in ntdll!ZwWaitForKeyedEvent ()
   from C:\Windows\system32\ntdll.dll
#1  0x77891f1d in ntdll!ZwWaitForKeyedEvent ()
   from C:\Windows\system32\ntdll.dll
#2  0x7791810f in ntdll!RtlSleepConditionVariableSRW ()
   from C:\Windows\system32\ntdll.dll
#3  0x12fdfd00 in ?? ()
#4  0x773f4b98 in SleepConditionVariableSRW ()
   from C:\Windows\syswow64\kernel32.dll
#5  0x688368c8 in ?? ()
   from C:\Users\timbyr\Desktop\ardour-4.4.463-i686-dbg\bin\libglib-2.0-0.dll
#6  0x0993a120 in sigc::pointer_functor0<void>::operator() (this=0x118ad5ec)
    at /usr/i686-w64-mingw32/sys-root/mingw/include/sigc++-2.0/sigc++/functors/p
tr_fun.h:77
#7  0x0993a002 in sigc::adaptor_functor<sigc::pointer_functor0<void> >::operator
() (this=0x118ad5e8)
    at /usr/i686-w64-mingw32/sys-root/mingw/include/sigc++-2.0/sigc++/adaptors/a
daptor_trait.h:256
#8  0x0986da7d in sigc::internal::slot_call0<sigc::pointer_functor0<void>, void>
::call_it (rep=0x118ad5d0)
    at /usr/i686-w64-mingw32/sys-root/mingw/include/sigc++-2.0/sigc++/functors/s
lot.h:103
#9  0x664cf373 in ?? ()
   from C:\Users\timbyr\Desktop\ardour-4.4.463-i686-dbg\bin\libglibmm-2.4-1.dll
#10 0x76d11328 in msvcrt!_endthreadex () from C:\Windows\syswow64\msvcrt.dll
#11 0x773733ca in KERNEL32!BaseThreadInitThunk ()
   from C:\Windows\syswow64\kernel32.dll
#12 0x778a9ed2 in ntdll!RtlInitializeExceptionChain ()
   from C:\Windows\system32\ntdll.dll
#13 0x778a9ea5 in ntdll!RtlInitializeExceptionChain ()
   from C:\Windows\system32\ntdll.dll
#14 0x00000000 in ?? ()

Thread 3 (Thread 3452.0xe98):
#0  0x77891f36 in ntdll!ZwWaitForWorkViaWorkerFactory ()
   from C:\Windows\system32\ntdll.dll
#1  0x77891f36 in ntdll!ZwWaitForWorkViaWorkerFactory ()
   from C:\Windows\system32\ntdll.dll
#2  0x778b471e in ntdll!TpSetTimer () from C:\Windows\system32\ntdll.dll
#3  0x773733ca in KERNEL32!BaseThreadInitThunk ()
   from C:\Windows\syswow64\kernel32.dll
#4  0x778a9ed2 in ntdll!RtlInitializeExceptionChain ()
   from C:\Windows\system32\ntdll.dll
#5  0x778a9ea5 in ntdll!RtlInitializeExceptionChain ()
   from C:\Windows\system32\ntdll.dll
#6  0x00000000 in ?? ()

Thread 1 (Thread 3452.0x13e8):
#0  0x6baeb15f in __gnu_cxx::__normal_iterator<ARDOUR::PamPort* const*, std::vec
tor<ARDOUR::PamPort*, std::allocator<ARDOUR::PamPort*> > >::__normal_iterator
    (this=0x28ec88, __i=@0x28ec8c: 0x183835c0)
    at /usr/i686-w64-mingw32/sys-root/mingw/include/c++/bits/stl_iterator.h:729
#1  0x6baedd2e in std::vector<ARDOUR::PamPort*, std::allocator<ARDOUR::PamPort*>
 >::end (this=0x13a2d068)
    at /usr/i686-w64-mingw32/sys-root/mingw/include/c++/bits/stl_vector.h:575
#2  0x6baec97d in ARDOUR::PortAudioBackend::valid_port (this=0x13a2cf98,
    port=0x19b380e8) at ../libs/backends/portaudio/portaudio_backend.h:472
#3  0x6bacb54f in ARDOUR::PortAudioBackend::set_latency_range (
    this=0x13a2cf98, port=0x19b380e8, for_playback=false, latency_range=...)
    at ../libs/backends/portaudio/portaudio_backend.cc:1562
#4  0x09673340 in ARDOUR::Port::set_public_latency_range (this=0x183407c0,
    range=..., playback=false) at ../libs/ardour/port.cc:320
#5  0x096ddecb in ARDOUR::Route::set_public_port_latencies (this=0x1831afe8,
    value=3071, playback=false) at ../libs/ardour/route.cc:4603
#6  0x0971ff68 in ARDOUR::Session::update_latency (this=0x17d91f50,
    playback=false) at ../libs/ardour/session.cc:5966
#7  0x097206bd in ARDOUR::Session::initialize_latencies (this=0x17d91f50)
    at ../libs/ardour/session.cc:6021
#8  0x09944132 in boost::_mfi::mf0<void, ARDOUR::Session>::operator() (
    this=0x215fa5dc, p=0x17d91f50)
    at /usr/i686-w64-mingw32/sys-root/mingw/include/boost/bind/mem_fn_template.h
pp:49
#9  0x0989dae0 in boost::_bi::list1<boost::_bi::value<ARDOUR::Session*> >::opera
tor()<boost::_mfi::mf0<void, ARDOUR::Session>, boost::_bi::list0> (
    this=0x215fa5e4, f=..., a=...)
    at /usr/i686-w64-mingw32/sys-root/mingw/include/boost/bind/bind.hpp:253
#10 0x098a87cc in boost::_bi::bind_t<void, boost::_mfi::mf0<void, ARDOUR::Sessio
n>, boost::_bi::list1<boost::_bi::value<ARDOUR::Session*> > >::operator() (
    this=0x215fa5dc)
    at /usr/i686-w64-mingw32/sys-root/mingw/include/boost/bind/bind_template.hpp
:20
#11 0x098d921a in boost::detail::function::void_function_obj_invoker0<boost::_bi
::bind_t<void, boost::_mfi::mf0<void, ARDOUR::Session>, boost::_bi::list1<boost:
:_bi::value<ARDOUR::Session*> > >, void>::invoke (function_obj_ptr=...)
    at /usr/i686-w64-mingw32/sys-root/mingw/include/boost/function/function_temp
late.hpp:153
#12 0x09954a68 in boost::function0<void>::operator() (this=0x215fa5d8)
    at /usr/i686-w64-mingw32/sys-root/mingw/include/boost/function/function_temp
late.hpp:767
#13 0x09848aa5 in PBD::Signal0<void, PBD::OptionalLastValue<void> >::operator()
(this=0x118e79f8)
    at /home/timbyr/Data/devel/mingw-pkg/BUILD/ardour-master-i686/build/libs/pbd
/pbd/signals_generated.h:312
#14 0x094f3e84 in ARDOUR::AudioEngine::start (this=0x118e7818,
    for_latency=false) at ../libs/ardour/audioengine.cc:861
#15 0x00664736 in EngineControl::push_state_to_backend (this=0x13b27660,
    start=true) at ../gtk2_ardour/engine_dialog.cc:2482
#16 0x0064c0bd in EngineControl::start_engine (this=0x13b27660)
    at ../gtk2_ardour/engine_dialog.cc:418
#17 0x00666350 in EngineControl::start_stop_button_clicked (this=0x13b27660)
    at ../gtk2_ardour/engine_dialog.cc:2665
#18 0x00e147d7 in sigc::bound_mem_functor0<void, EngineControl>::operator() (
    this=0x13a3028c)
    at /usr/i686-w64-mingw32/sys-root/mingw/include/sigc++-2.0/sigc++/functors/m
em_fun.h:1787
#19 0x00e09ea2 in sigc::adaptor_functor<sigc::bound_mem_functor0<void, EngineCon
trol> >::operator() (this=0x13a30288)
    at /usr/i686-w64-mingw32/sys-root/mingw/include/sigc++-2.0/sigc++/adaptors/a
daptor_trait.h:256
#20 0x00c61c9d in sigc::internal::slot_call0<sigc::bound_mem_functor0<void, Engi
neControl>, void>::call_it (rep=0x13a30270)
    at /usr/i686-w64-mingw32/sys-root/mingw/include/sigc++-2.0/sigc++/functors/s
lot.h:103
#21 0x00c67296 in sigc::internal::signal_emit0<void, sigc::nil>::emit (
    impl=0x13a33eb0)
    at /usr/i686-w64-mingw32/sys-root/mingw/include/sigc++-2.0/sigc++/signal.h:7
72
#22 0x00e25013 in sigc::signal0<void, sigc::nil>::emit (this=0x13b27da0)
    at /usr/i686-w64-mingw32/sys-root/mingw/include/sigc++-2.0/sigc++/signal.h:2
679
#23 0x00e2505f in sigc::signal0<void, sigc::nil>::operator() (this=0x13b27da0)
    at /usr/i686-w64-mingw32/sys-root/mingw/include/sigc++-2.0/sigc++/signal.h:2
687
#24 0x0041af6a in ArdourButton::on_button_release_event (this=0x13b27d58,
    ev=0x139e0ed8) at ../gtk2_ardour/ardour_button.cc:771
#25 0x0933f9fe in ?? ()
   from C:\Users\timbyr\Desktop\ardour-4.4.463-i686-dbg\bin\libgtkmm-2.4-1.dll
#26 0x6184dd2d in ?? ()
   from C:\Users\timbyr\Desktop\ardour-4.4.463-i686-dbg\bin\libgtk-win32-2.0-0.d
ll
#27 0x6184dcb0 in ?? ()
   from C:\Users\timbyr\Desktop\ardour-4.4.463-i686-dbg\bin\libgtk-win32-2.0-0.d
ll
#28 0x72615c70 in ?? ()
#29 0x7070682e in ?? ()
   from C:\Users\timbyr\Desktop\ardour-4.4.463-i686-dbg\bin\libfftw3-3.dll
#30 0x65646f6e in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
(gdb)
4.4.463-bt-restart-backend.txt (42,938 bytes)   

timbyr

2015-12-08 03:56

developer   ~0017711

Last edited: 2015-12-08 03:58

I added a backtrace for a crash I'm seeing since commit 1372407f(although I'm doubtful that is related) when restarting the backend. Occurs even when stopping and restarting the dummy backend. It doesn't occur with 4.4.381(last portaudio backend change), needs more investigation.

timbyr

2016-02-16 04:06

developer   ~0017948

I added support direct monitoring to the Todo list but as this is not something currently supported by the Portaudio ASIO API, it isn't trivial.

timbyr

2016-02-17 10:55

developer   ~0017962

Apparently Mixbus 3.1(and I'm assuming Ardour) will crash when closing the application with the Zoom R16 and R24.

Issue History

Date Modified Username Field Change
2015-08-03 10:03 timbyr New Issue
2015-08-03 14:24 timbyr Description Updated
2015-08-03 21:23 x42 Note Added: 0016983
2015-08-03 23:11 x42 Note Added: 0016984
2015-08-03 23:19 timbyr Description Updated
2015-08-03 23:22 x42 Note Added: 0016985
2015-08-04 12:21 timbyr Description Updated
2015-08-04 12:23 timbyr Description Updated
2015-08-05 04:18 timbyr Description Updated
2015-08-06 00:46 timbyr Description Updated
2015-08-06 00:50 timbyr Description Updated
2015-08-06 00:53 timbyr Note Added: 0016995
2015-08-06 01:09 timbyr Description Updated
2015-08-06 01:09 timbyr Description Updated
2015-08-06 23:59 timbyr Description Updated
2015-08-08 09:25 timbyr Note Added: 0017002
2015-08-08 09:25 timbyr Description Updated
2015-08-09 15:09 x42 Note Added: 0017011
2015-08-09 15:17 x42 Note Edited: 0017011
2015-08-11 05:16 timbyr Description Updated
2015-08-11 05:47 timbyr Description Updated
2015-08-12 18:22 x42 Relationship added related to 0006507
2015-08-13 23:44 timbyr Note Added: 0017028
2015-08-13 23:44 timbyr Description Updated
2015-08-19 12:54 timbyr Description Updated
2015-08-20 06:43 timbyr Description Updated
2015-08-24 22:02 timbyr Description Updated
2015-09-02 04:18 timbyr Description Updated
2015-09-02 22:20 timbyr Description Updated
2015-09-08 22:06 timbyr Description Updated
2015-09-15 01:16 timbyr Description Updated
2015-09-25 00:53 timbyr Description Updated
2015-11-20 11:43 timbyr Note Added: 0017634
2015-11-30 02:47 timbyr Description Updated
2015-12-01 10:58 timbyr Description Updated
2015-12-03 12:21 timbyr Description Updated
2015-12-03 12:22 timbyr Description Updated
2015-12-08 03:48 timbyr File Added: 4.4.463-bt-restart-backend.txt
2015-12-08 03:56 timbyr Note Added: 0017711
2015-12-08 03:58 timbyr Note Edited: 0017711
2016-02-11 13:17 timbyr Description Updated
2016-02-16 04:04 timbyr Description Updated
2016-02-16 04:06 timbyr Note Added: 0017948
2016-02-16 04:07 timbyr Assigned To => timbyr
2016-02-16 04:07 timbyr Status new => assigned
2016-02-17 10:55 timbyr Note Added: 0017962