View Issue Details

IDProjectCategoryView StatusLast Update
0009263ardourbugspublic2023-04-08 06:01
Reportercolinf Assigned Tozamaudio  
PrioritynormalSeveritycrashReproducibilityalways
Status resolvedResolutionfixed 
Summary0009263: Crash on ProTools session import
DescriptionImporting the attached .ptx file crashes ardour.
Additional InformationHere's an example of a backtrace of the crashing thread (with dummy audio backend), with 1 CPU in use for DSP:

[Switching to Thread 0x7fffd45c4c40 (LWP 242897)]
0x0000555555e59f9e in ARDOUR::PresentationInfo::flags (this=0x392) at ../libs/ardour/ardour/presentation_info.h:164
164 PresentationInfo::Flag flags() const { return _flags; }
(gdb) bt
#0 0x0000555555e59f9e in ARDOUR::PresentationInfo::flags() const (this=0x392) at ../libs/ardour/ardour/presentation_info.h:164
0000001 0x0000555555ea35c8 in ARDOUR::Stripable::is_auditioner() const (this=0x2a) at ../libs/ardour/ardour/stripable.h:75
#2 0x00007ffff7537868 in ARDOUR::Session::no_roll(unsigned int) (this=0x555559730ce0, nframes=512) at ../libs/ardour/session_process.cc:229
#3 0x00007ffff7539f9b in ARDOUR::Session::process_without_events(unsigned int) (this=0x555559730ce0, nframes=512) at ../libs/ardour/session_process.cc:701
0000004 0x00007ffff753928a in ARDOUR::Session::process_with_events(unsigned int) (this=0x555559730ce0, nframes=512) at ../libs/ardour/session_process.cc:531
0000005 0x00007ffff7536e34 in ARDOUR::Session::process(unsigned int) (this=0x555559730ce0, nframes=512) at ../libs/ardour/session_process.cc:120
#6 0x00007ffff6d6f3df in ARDOUR::AudioEngine::process_callback(unsigned int) (this=0x555557b33cc0, nframes=512) at ../libs/ardour/audioengine.cc:537
#7 0x00007fffd58caef4 in ARDOUR::DummyAudioBackend::main_process_thread() (this=0x5555575980e0) at ../libs/backends/dummy/dummy_audiobackend.cc:953
0000008 0x00007fffd58c8603 in pthread_process(void*) (arg=0x5555575980e0) at ../libs/backends/dummy/dummy_audiobackend.cc:434
0000009 0x00007ffff46c0ea7 in start_thread (arg=<optimized out>) at pthread_create.c:477
0000010 0x00007ffff38d3a2f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

It looks like the process callback sees a corrupted value in the Session::routes list, but the routes appear to be good when added in Session::import_pt_rest(). Using multiple CPUs for DSP causes a crash in a different place, but it appears to be from a similar cause.
TagsNo tags attached.

Activities

colinf

2023-02-26 19:05

updater  

Copy of SORCERERS.ptx (440,467 bytes)

zamaudio

2023-04-08 03:44

developer   ~0027565

Fixed in f3e13848fa, confirmed fixed in 295dbd8e1e. Thanks Robin!

zamaudio

2023-04-08 06:01

developer   ~0027566

Fixed in 295dbd8e1e8465fb74d94e4eb0cfa35b09761cfc

Issue History

Date Modified Username Field Change
2023-02-26 19:05 colinf New Issue
2023-02-26 19:05 colinf File Added: Copy of SORCERERS.ptx
2023-04-08 03:44 zamaudio Note Added: 0027565
2023-04-08 06:01 zamaudio Assigned To => zamaudio
2023-04-08 06:01 zamaudio Status new => resolved
2023-04-08 06:01 zamaudio Resolution open => fixed
2023-04-08 06:01 zamaudio Note Added: 0027566