Audacity 3.1.3 crashes when launching macros

Hello, the new Audacity 3.1.3 crashes immediately when launching macros (I have used a macro to export to FLAC and the default macro do export to mp3). OS is Windows 7
I have tried with both versions, portable and installed.
With the old version 2.3.3 it didn’t crash. The first part of the report is here below. I attach the complete file to the post. I hope you can see something:


Operating system Windows NT
6.1.7601 Service Pack 1
CPU amd64
family 16 model 5 stepping 3
4 CPUs

GPU UNKNOWN

Crash reason EXCEPTION_ACCESS_VIOLATION_READ
Crash address 0xffffffffffffffe0
Process uptime 173 seconds

Thread 0 (crashed)
0 wxbase313u_vc_x64_custom.dll + 0x48ec8
rax = 0x000000000000000c rdx = 0x000000000028d070
rcx = 0xffffffffffffffd0 rbx = 0x0000000000000001
rsi = 0x0000000003689c18 rdi = 0x00000000034dcb40
rbp = 0x000000000028cfa0 rsp = 0x000000000028ce70
r8 = 0x0000000006bd1e01 r9 = 0x000000000a066aa0
r10 = 0x000007fef3c50000 r11 = 0x0000da5300020001
r12 = 0x0000000000000000 r13 = 0x0000000003429a70
r14 = 0x000000000028d760 r15 = 0x00000000034608a0
rip = 0x000007fedc4a8ec8
Found by given as instruction pointer in context

Stack contents
000000000028ce70 78 7b 7c dc fe 07 00 00 x{Üþ…
Possible instruction pointers

1 wxbase313u_vc_x64_custom.dll + 0x367b78
rbp = 0x000000000028cfa0 rsp = 0x000000000028ce78
rip = 0x000007fedc7c7b78
Found by stack scanning

Stack contents
000000000028ce78 0c 00 00 00 00 00 00 00 60 d7 28 00 00 00 00 00 …`×(…
000000000028ce88 40 cb 4d 03 00 00 00 00 18 9c 68 03 00 00 00 00 @ËM…œh…
000000000028ce98 24 41 a7 3f 01 00 00 00 $A§…
Possible instruction pointers

2 Audacity.exe + 0x3b4124
rbp = 0x000000000028cfa0 rsp = 0x000000000028cea0
rip = 0x000000013fa74124
Found by stack scanning

Stack contents
000000000028cea0 01 00 00 00 00 00 00 00 01 00 00 00 00 00 00 00 …
000000000028ceb0 b0 1e bd 06 00 00 00 00 a0 cf 28 00 00 00 00 00 °.½… Ï(…
000000000028cec0 00 00 00 00 00 00 00 00 f6 dd 57 dc fe 07 00 00 …öÝWÜþ…
Possible instruction pointers
Audacity 3.1.3 macro crash report.txt.zip (25.3 KB)

Use the old version. Windows 7 is no longer supported.

I have installed Audacity 3.1.3 on a Win10 installation and it crashes in the same way when launching macros. Here the first part of the report:
In attachment there is the complete file. Why does it happen?

Operating system: Windows NT
10.0.19044
CPU: amd64
family 16 model 5 stepping 3
4 CPUs

GPU: UNKNOWN

Crash reason: EXCEPTION_ACCESS_VIOLATION_READ
Crash address: 0xffffffffffffffe0
Process uptime: 77 seconds

Thread 0 (crashed)
0 wxbase313u_vc_x64_custom.dll + 0x48ec8
rax = 0x000000000000000c rdx = 0x000000a2e076d080
rcx = 0xffffffffffffffd0 rbx = 0x0000000000000001
rsi = 0x000002022a1d9818 rdi = 0x00000202284e38b0
rbp = 0x000000a2e076cfb0 rsp = 0x000000a2e076ce80
r8 = 0x0000020228433001 r9 = 0x0000000000000001
r10 = 0x0000000000008000 r11 = 0x000000a2e076cdc0
r12 = 0x0000000000000000 r13 = 0x000002022b53baf0
r14 = 0x000000a2e076d770 r15 = 0x000002022a7ec500
rip = 0x00007ff9c8928ec8
Found by: given as instruction pointer in context

Stack contents:
000000a2e076ce80 78 7b c4 c8 f9 7f 00 00 x{ÄÈù…
Possible instruction pointers:

1 wxbase313u_vc_x64_custom.dll + 0x367b78
rbp = 0x000000a2e076cfb0 rsp = 0x000000a2e076ce88
rip = 0x00007ff9c8c47b78
Found by: stack scanning

Stack contents:
000000a2e076ce88 0c 00 00 00 00 00 00 00 70 d7 76 e0 a2 00 00 00 …p×vࢅ
000000a2e076ce98 b0 38 4e 28 02 02 00 00 18 98 1d 2a 02 02 00 00 °8N(…*…
000000a2e076cea8 24 41 39 6e f7 7f 00 00 $A9n÷…
Possible instruction pointers:

2 Audacity.exe + 0x3b4124
rbp = 0x000000a2e076cfb0 rsp = 0x000000a2e076ceb0
rip = 0x00007ff76e394124
Found by: stack scanning

Stack contents:
000000a2e076ceb0 01 00 00 00 a2 00 00 00 01 00 00 00 00 00 00 00 …¢…
000000a2e076cec0 90 9b 6e 2b 02 02 00 00 b0 cf 76 e0 a2 00 00 00 .›n+…°Ïvࢅ
000000a2e076ced0 00 00 00 00 a2 00 00 00 8b b8 1c 6e f7 7f 00 00 …¢…‹¸.n÷…
Possible instruction pointers:

3 Audacity.exe + 0x1eb88b
rbp = 0x000000a2e076cfb0 rsp = 0x000000a2e076cee0
rip = 0x00007ff76e1cb88b
Found by: stack scanning

Stack contents:
000000a2e076cee0 10 d0 76 e0 a2 00 00 00 00 00 00 00 00 00 00 00 .Ðvࢅ
000000a2e076cef0 b0 cf 76 e0 a2 00 00 00 40 d1 76 e0 a2 00 00 00 °Ïvࢅ@Ñvࢅ
000000a2e076cf00 10 1f 4e 2b 02 02 00 00 87 bc 17 6e f7 7f 00 00 …N+…‡¼.n÷…
Possible instruction pointers:
Audacity3.1.3 macro crash Win10.txt (141 KB)

Hi, I got it… It has nothing to do with the operative system. It works fine also on Win7.
The problem is only that the exporting path for macros, which you can specify in menu Edit > Preferences > Directories
must be a folder and can’t be directly the root of a partition, example F:\ it crashes!

With path: F:\macro it works and it creates automatically a subfolder named “macro-output”

Anyway it should be fixed. It should work with any valid path. Furthermore, it should not force to use predefined subfolders.

Maybe it affects also other paths in the settings Preferences > Directories

Yes, I think that’s a bug (even though, personally I would always use a folder :wink: )

I will log this on GitHub


I don’t think so, I think I tested those some months ago - but I will retest to be sure.


Thanks for the report :slight_smile: :sunglasses:

Peter

I was right about that - I tested with a small USB clip drive formatted as exFAT

Open, Close, Import and Export directories worked as the top-level location without a folder

Even the temporary directory could be set to the exFAT USB stick and it works -but I REALLY wouldn’t recommend that IRL.
However it’s not an entirely silly use case as my Windows PC has a 256GB SSD C: drive and on onboard spinning metal 1TB d:drive - so one might set the temporary directory to be on the D: drive - and note that is a directory “Session Data” on the D: drive and just a set of temporary files.

Peter.

Done:
Audacity crashes on export from Macros to a top level drive #2471

Once again, thanks for the report - much appreciated.

Peter.

Hi, thank you very much for the support!
For the exports I have a partition dedicated on a separated HD, then I move the files quickly to their destinations, so for me it was normal to use the root path of the partition.