View Issue Details

IDProjectCategoryView StatusLast Update
0000268ardourbugspublic2004-11-14 21:43
Reporternbd Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionopen 
Summary0000268: if sound file doesn't exist when loading session, ardour won't exit cleanly
DescriptionI had sound files in partition that I forgot to mount, and loaded (recent) session that used these files. Ardour gave errors (log attached) and when I try to quit, I get SegFault. (Sometimes I don't even have to press 'quit', ardour segfaults itself as soon as I click Session menu)

Also, JACK says:

jackd watchdog: timeout - killing jackd

Here is shell output from the whole episode:

Ardour/GTK 0.436.0 running with libardour 0.720.0
Loading UI configuration file /usr/local/etc/ardour/ardour_ui.rc
Loading system configuration file /usr/local/etc/ardour/ardour_system.rc
Loading user configuration file /root/.ardour/ardour.rc
MIDI: MTC on port c0d0 MMC on port c0d0
Use of deprecated SAXv1 function internalSubset
ardour: [ERROR]: KeyboardTarget: unknown action "set-mouse-mode-pan"
ardour: [ERROR]: KeyboardTarget: unknown action "set-mouse-mode-automation"
Loading session /home/signifer/treenit/ma16.2. using snapshot ma16.2.
stopping peak file builder thread
stopping disk butler thread
Segmentation fault

Additional InformationHere is ardour's log

[ERROR]: SndFileSource: cannot open file "/mnt/test/ch1.wav" (System error.)
[ERROR]: Found a sound file that cannot be used by Ardour. See the progammers.
[ERROR]: Session: cannot create Source from XML description.
[ERROR]: Session "/home/signifer/treenit/ma16.2./ (snapshot ma16.2.)" did not load successfully
TagsNo tags attached.

Relationships

related to 0001467 closedtimbyr Ardour crashes when a file referenced by a session does not exist. 

Activities

nbd

2004-02-18 11:11

reporter   ~0000448

Also with

Ardour/GTK 0.446.0 running with libardour 0.724.1

taybin

2004-05-07 00:14

administrator   ~0000697

Is this still an issue? What should ardour do if a file can't be found? Just keep going? Draw a black region with an X in it where the missing region would go?

nbd

2004-06-02 18:54

reporter   ~0000957

Maybe ardour could just generate silence there and inform the user that sound files were not found.

nbd

2004-09-02 12:43

reporter   ~0001460

Last edited: 2004-09-02 12:43

Protools informs the user that files were not found and starts to search them. It would be good to have dialog to inform about this and give the user a chance to locate the files manually or just skip the file and draw the black regions with an X where the missing region would go

This raises some questions:

Q: What happens if the user gives sound file that is bigger/smaller than the region of the missing file?

A: Just place the new region start according to the missing region start and get rid of the missing region.

Q: What if the user-located sound file causes some load error and can't be loaded?

A: Give the dialog again so user can choose to skip the file or locate another one.

edited on: 09-02-04 05:43

nbd

2004-09-02 19:26

reporter   ~0001463

Ardour/GTK 0.529.3 running with libardour 0.827.4

now it doesn't segfault, it just aborts

I created new session, inserted audiofile to regions/name list, inserted one track and dragged the audiofile from regions/name to the track. Save, Quit.
Then deleted the original audiofile and started Ardour again, loaded the saved session and waited a while for some harddrive action and then Ardour aborted.

Here is the log:
Ardour/GTK 0.529.3 running with libardour 0.827.4
Loading UI configuration file /usr/local/etc/ardour/ardour_ui.rc
Loading system configuration file /usr/local/etc/ardour/ardour_system.rc
Loading user configuration file /home/tuimonen/.ardour/ardour.rc
ardour: [ERROR]: MIDI: no such port device
ardour: [WARNING]: No MMC control (MIDI port "c0d0" not available)
ardour: [WARNING]: Your system generates "Mod2" when the NumLock key is pressed. This can cause problems when editing so Ardour will use Mod3 to mean Meta rather than Mod2
ardour: [ERROR]: KeyboardTarget: unknown action "transport-locate"
ardour: [ERROR]: KeyboardTarget: unknown action "set-mouse-mode-pan"
ardour: [ERROR]: KeyboardTarget: unknown action "set-mouse-mode-scrub"
ardour: [ERROR]: KeyboardTarget: unknown action "set-mouse-mode-automation"
ardour: [ERROR]: KeyboardTarget: unknown action "start-selection"
ardour: [ERROR]: KeyboardTarget: unknown action "finish-selection"
ardour: [ERROR]: KeyboardTarget: unknown action "extend-selection-to-end-of-region"
ardour: [ERROR]: KeyboardTarget: unknown action "extend-selection-to-start-of-region"
ardour: [ERROR]: KeyboardTarget: unknown action "duplicate-selection"
ardour: [ERROR]: KeyboardTarget: unknown action "split-region"
Loading session using snapshot
Loading session /tmp/foo using snapshot foo
finished route resort
 master
finished route resort
 master Audio 1
finished route resort
 master Audio 1
finished route resort
 master Audio 1
finished route resort
 Audio 1 master
Aborted

paul

2004-11-02 03:43

administrator   ~0001562

believed fixed in 0.9beta21. please report back. ardour will now open a session even if some source files are corrupt or missing.

nbd

2004-11-14 21:43

reporter   ~0001591

Missing sound files don't cause problems anymore

Issue History

Date Modified Username Field Change
2004-02-16 23:52 nbd New Issue
2004-02-18 11:11 nbd Note Added: 0000448
2004-05-07 00:14 taybin Note Added: 0000697
2004-06-02 18:54 nbd Note Added: 0000957
2004-09-02 12:43 nbd Note Added: 0001460
2004-09-02 12:43 nbd Note Edited: 0001460
2004-09-02 19:26 nbd Note Added: 0001463
2004-11-02 03:43 paul Note Added: 0001562
2004-11-02 03:43 paul Status new => feedback
2004-11-14 21:43 nbd Status feedback => closed
2004-11-14 21:43 nbd Note Added: 0001591
2007-02-05 02:17 timbyr Relationship added related to 0001467