View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0002997 | ardour | bugs | public | 2010-01-19 18:55 | 2020-04-19 20:14 |
| Reporter | d13b | Assigned To | paul | ||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Product Version | SVN/2.0-ongoing | ||||
| Summary | 0002997: [PATCH] loading a session with 2x5hrs files takes 9 minutes | ||||
| Description | when 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 Information | i 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 | ||||
| Tags | No tags attached. | ||||
|
|
I'm seeing this with current SVN. It appears to need two tracks rather than just one to trigger it. |
|
|
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') + "\\\"")
|
|
|
The attached patch should fix this, though I'm not 100% sure it puts the -D in the right place. |
|
|
this patch fixes the problem for me. opening the same session now takes only a few seconds. thanks |
|
|
patch applied to 2.0-ongoing and 3.0 |
|
|
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. |
| 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 |