Qmod Forum

General Category => Questions and Bugs => Topic started by: maxpayne13 on May 26, 2022, 01:05:16 pm

Title: Qmod starts fine the first time, then crash every start
Post by: maxpayne13 on May 26, 2022, 01:05:16 pm
Hello,

I have 2.22 x64 version.
When the folders are not created, the program starts fine.
If I close it, and restart it, I saw the main window initializing, then the program exit every time. I must delete all the folders in the primary folder to start it again.

Despite this, amazing program, thanks for your work.

Regards
Title: Re: Qmod starts fine the first time, then crash every start
Post by: corb on May 26, 2022, 07:17:14 pm
Hi,
Welcome to the board.

Qmod crashes for some reason. In the Qmod directory should be a folder called Errorlog. In there you should find a file qmodlog.txt and stacklog.txt.
After a crash in the stacklog.txt file you'll find the reason for the crash. Don't restart qmod but copy the content and post it here so I can check it out and try to reproduce it on my system and compile an update as soon as possible. Thanks.

Regards,
Cor
Title: Re: Qmod starts fine the first time, then crash every start
Post by: maxpayne13 on May 27, 2022, 12:09:44 am
I only have the stacklog.txt in my Errorlog folder.
Here is the content of the file :

panic: runtime error: index out of range

goroutine 38 [running]:
qmod/qmodcore.AudioServer.func10()
   C:/Users/Cor/GoProjects/src/qmod/qmodcore/core.go:1238 +0x20fb
qmod/qmodcore.AudioServer.func11()
   C:/Users/Cor/GoProjects/src/qmod/qmodcore/core.go:1449 +0x85
created by time.goFunc
   C:/Go/src/time/sleep.go:180 +0x31

I don't have any Cor directory in my Users folder..

Regards.
Title: Re: Qmod starts fine the first time, then crash every start
Post by: corb on May 27, 2022, 03:04:54 pm
Hi,
I could reproduce it here and will look into it.

<C:/Users/Cor/GoProjects/src/qmod/qmodcore/core.go:1238>
The C:/Users/Cor folder is on my system. Its part of the compilation and gives me a hint where the error comes from.

Cor
Title: Re: Qmod starts fine the first time, then crash every start
Post by: corb on May 27, 2022, 06:40:29 pm
Hi,

I have a temporary solution.
If you haven't set a different audio folder go to <your qmod folder>/Audio/Music.
Create a new folder, say songs. This represents a format.
If not running start qmod and open the config window.
Select the silence tab.
Select the format player tab.
You should see the format you just created Music/songs.
Drag the format to the right panel. You've now created a format.
Close the config window.
This should solve the problem for now. The fix wil be in the next update.

Regards,
Cor
Title: Re: Qmod starts fine the first time, then crash every start
Post by: maxpayne13 on May 27, 2022, 08:23:11 pm
Hi,

Indeed, it works :D

Thanks for the temporary solution !

Regards
Rémy