Tom4nt / Mega-Soundboard

Play and manage sounds with keybinds.
MIT License
12 stars 1 forks source link

won't lunche #62

Closed EeEkKOo closed 1 year ago

EeEkKOo commented 1 year ago

when lunching a pop up appears and say "an error has occured while trying to load the app. This may cause unexpected behaviours. TypeError:Cannot read propreties of undefined (reading 'uuid')" and then procide to load indefinitely

Tom4nt commented 1 year ago

I am not able to reproduce the issue, even in a fresh install. Can you send me your Soundboards.json located at C:\Users\Username\AppData\Roaming\MegaSoundboard? I will be able to see the names of your soundboards and sounds. (tmsntns@gmail.com) Thanks for the bug report.

EeEkKOo commented 1 year ago

tanks for replying so fast but i'm new to this site and aparently it don't support .json

Tom4nt commented 1 year ago

No worries, you can send it to my email: tmsntns@gmail.com.

EeEkKOo commented 1 year ago

here is the file and tanks again for replying so fast.

_Eyko

Le sam. 26 août 2023 à 00:34, Tomás Antunes @.***> a écrit :

No worries, you can send it to my email: @.***

— Reply to this email directly, view it on GitHub https://github.com/Tom4nt/Mega-Soundboard/issues/62#issuecomment-1694002089, or unsubscribe https://github.com/notifications/unsubscribe-auth/BCEXJV2R3FJM4XNHQNW54DDXXER53ANCNFSM6AAAAAA37APQNU . You are receiving this because you authored the thread.Message ID: @.***>

Tom4nt commented 1 year ago

Sorry, I don't see any attachments. You can also use https://www.file.io/ and send me the link if you want.

EeEkKOo commented 1 year ago

here is the dawnload link: https://file.io/IJT2C7IPOFZL

Tom4nt commented 1 year ago

Apparently, that file has no problems, but I am looking at the code and it is possible that the problem is in Settings.json (in the same folder). Can you send me that one too? Sorry for asking again.

EeEkKOo commented 1 year ago

no worries, i forgot to mention that i successfuly lunched it the first time then closed it ( to see if it works in the background) then when i relunched it it showed the errore. i also tryed to lunch the 0.6.2 version but the same probleme occured. https://file.io/jV9kXDGmH6nn

Tom4nt commented 1 year ago

Thanks for the additional info! The error shows because your Settings.json file has the value of selectedSoundboard set to 1, which means the app is trying to select your second soundboard when it launches, but you only have 1 at the moment. I don't know how this happened though. Since the settings are saved when you close the app, it should never happen.

Do you remember the steps you took, like adding soundboards, etc...? If I find how it happens, I can track the root of the issue.

For now, you can fix this by opening Settings.json (can use notepad) and setting the value of selectedSoundboard to 0 instead of 1. Before that, please make sure the app is closed by ending any tasks related to Mega Soundboard in the Task Manager.

Thanks again for your contribution! It helped squashing a bug. :)

EeEkKOo commented 1 year ago

yes i remember i created a new soundboard and deleted the first one that's maybe the issu. anyways tanks for helping me and replying that fast.

EeEkKOo commented 1 year ago

it seems that it won't stay in the background too do you have a solution to that ? otherwise i'm gonna resort to leave it open btw i fixed it and it works very well

Tom4nt commented 1 year ago

Thanks to you, I was able to reproduce this consistently and find the root cause. This list is mainly for me:

  1. Create Soundboard
  2. Select new Soundboard
  3. Delete first soundboard
  4. Close and launch again

It should stay in the background if you have this↓ option enabled and minimize the window, not close. Close always fully closes.

image

EeEkKOo commented 1 year ago

ok, tanks you so much for the help and for replaying so fast hope i helped other people too