[Bug] Opening Audacity With Multiple Files As Arguments Leads To Crash

Audacity Version: 2.3.0
Operating System: Windows 10 Home 64-bit 1809

What I’m trying to do:
Opening multiple files trough the console.

How:
cmd.exe
C:\Users\Dewernh> “C:\Program Files (x86)\Audacity\audacity.exe” “C:\Users\Dewernh\Desktop\a.mp3” “C:\Users\Dewernh\Desktop\c.mp3”

What happens:
Both files are opened at the same time and them imported in parallel, not sequentially as it would happen if you select them manually and pull them into Audacity.
It doesn’t happen in 100% of cases but pretty much every time.

Error Message:
Error report generated by Audacity after it crashed in the .zip file in the attachment.
Audacity_dbgrpt-13032-20190125T071210.zip (76.1 KB)

How do you see that happen? Are they very large MP3s?
In the log it looks like they are imported sequentially:

07:11:59: File name is C:\Users\Dewernh\Desktop\a.mp3
07:11:59: Mime type is *
07:11:59: Opening with libsndfile
07:11:59: Opening with libmad
07:11:59: Open(C:\Users\Dewernh\Desktop\a.mp3) succeeded
07:11:59: File name is C:\Users\Dewernh\Desktop\c.mp3
07:11:59: Mime type is *
07:11:59: Opening with libsndfile
07:11:59: Opening with libmad
07:11:59: Open(C:\Users\Dewernh\Desktop\c.mp3) succeeded

Does the problem only occur with MP3 files?
Does the problem only occur with very long files?
How much RAM is used during the process, and how much free RAM does your machine have?

So you can use the same command line arguments (same files) and Audacity will open successfully on one occasion, but on another occasion (with exactly the same arguments and files) it will fail?

While testing out how much RAM opening several files uses, I noticed that doing this with e.g. 10 files will spawn 10 instances of Audacity which are then step by step killed until only the first one remains. Maybe that helps?

How do you see that happen?
I’ve added a picture to show what it looks like. The little windows that are shown when music files are loaded are on top of each other. Something that wouldn’t occur if you open audacity first, then select several music files and draw them into the window.

Are they very large MP3s?
They are not large. They are normal mp3 files.

Does the problem only occur with MP3 files?
I do not have any other files besides mp3

Does the problem only occur with very long files?
same as before

How much RAM is used during the process, and how much free RAM does your machine have?
My machine has 16GB which should be more than enough.
abc.png

Well, when I tried figuring out why this happened, very rarely, it didn’t crash.

Also it is more likely to crash the more files you do this with.