View Issue Details

IDProjectCategoryView StatusLast Update
0002997ardourbugspublic2020-04-19 20:14
Reporterd13b Assigned Topaul  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product VersionSVN/2.0-ongoing 
Summary0002997: [PATCH] loading a session with 2x5hrs files takes 9 minutes
Descriptionwhen i load a session of 2 tracks with 5hours 35 minutes recorded stereo-sound each, it takes more than 9 minutes on my latop to show ardour's main window.
during most of the time the ardour splashscreen says "Configuring Midi Ports"


after the long startup, everything seems to work fine.
other sessions with shorter files load normally (within seconds).
Additional Informationi use ardour_vst from svn, revision 6516.
the recorded material is 44.1khz, 24bit
my system is debian unstable
hardware: 1.8ghz dualcore-intel, 1gb ram
libjack 0.116.1-4
jackd 0.118+svn3796-2
libgtk2.0 2.18.6-1
libgtkmm-2.4 1:2.18.2-1
TagsNo tags attached.

Activities

cth103

2010-05-01 21:53

administrator   ~0007712

I'm seeing this with current SVN. It appears to need two tracks rather than just one to trigger it.

cth103

2010-05-01 22:21

administrator   ~0007713

This is because the stat of audio_path in AudioSource::initialize_peakfile can fail with EOVERFLOW if the audio file is larger than (2<<31)-1 bits, so the peakfile will always be rebuilt even if it is not necessary.

man 2 stat suggests that we need to compile with -D_FILE_OFFSET_BITS=64.

2010-05-01 22:50

 

2997.patch (733 bytes)   
diff --git a/libs/ardour/SConscript b/libs/ardour/SConscript
index a965d23..10662fd 100644
--- a/libs/ardour/SConscript
+++ b/libs/ardour/SConscript
@@ -130,7 +130,7 @@ if ardour['LV2']:
 if ardour['LIBLO']:
     extra_sources += osc_files
 
-ardour.Append(CCFLAGS="-D_REENTRANT -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE")
+ardour.Append(CCFLAGS="-D_REENTRANT -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64")
 ardour.Append(CXXFLAGS="-DDATA_DIR=\\\"" + os.path.join (final_prefix, 'share') + "\\\"")
 ardour.Append(CXXFLAGS="-DMODULE_DIR=\\\"" + os.path.join (final_prefix, env['LIBDIR']) + "\\\"")
 ardour.Append(CXXFLAGS="-DVAMP_DIR=\\\"" + os.path.join (final_prefix, env['LIBDIR'], 'ardour2', 'vamp') + "\\\"")
2997.patch (733 bytes)   

cth103

2010-05-01 22:51

administrator   ~0007714

The attached patch should fix this, though I'm not 100% sure it puts the -D in the right place.

d13b

2010-05-02 07:55

reporter   ~0007734

this patch fixes the problem for me.
opening the same session now takes only a few seconds.
thanks

paul

2010-05-02 15:21

administrator   ~0007764

patch applied to 2.0-ongoing and 3.0

system

2020-04-19 20:14

developer   ~0022024

Issue has been closed automatically, by Trigger Close Plugin.
Feel free to re-open with additional information if you think the issue is not resolved.

Issue History

Date Modified Username Field Change
2010-01-19 18:55 d13b New Issue
2010-04-24 10:28 cth103 Category bugs => bugs2
2010-04-24 10:30 cth103 Category bugs2 => bugs
2010-05-01 21:53 cth103 Note Added: 0007712
2010-05-01 21:53 cth103 Status new => confirmed
2010-05-01 22:21 cth103 Note Added: 0007713
2010-05-01 22:22 cth103 Status confirmed => assigned
2010-05-01 22:22 cth103 Assigned To => paul
2010-05-01 22:50 cth103 File Added: 2997.patch
2010-05-01 22:50 cth103 cost => 0.00
2010-05-01 22:50 cth103 Summary loading a session with 2x5hrs files takes 9 minutes => [PATCH] loading a session with 2x5hrs files takes 9 minutes
2010-05-01 22:51 cth103 Note Added: 0007714
2010-05-02 07:55 d13b Note Added: 0007734
2010-05-02 15:21 paul Note Added: 0007764
2010-05-02 15:21 paul Status assigned => resolved
2010-05-02 15:21 paul Resolution open => fixed
2020-04-19 20:14 system Note Added: 0022024
2020-04-19 20:14 system Status resolved => closed