captainys / TOWNSEMU

FM Towns Emulator "Tsugaru"
BSD 3-Clause "New" or "Revised" License
246 stars 18 forks source link

GUI crashes #129

Open prietveld opened 1 month ago

prietveld commented 1 month ago

Tsugaru_GUI crashes as soon as I click the CD Image, FD0 or FD1-button. Crashes and closes the program. Clicking the ROM dir-button does work fine and opens explorer. This is on v20240604 in Windows 10. Not sure which version this problem was introduced, but it used to work fine if I remember correctly.

Edit: manually typing a path in the GUI does work, and clicking on the button AFTER having typed a path works as well. Just clicking on the button when the path is empty causes a crash. If I empty the path afterwards and click the button again, the app crashes again.

prietveld commented 1 month ago

I can now confirm v20240223 does not have this issue and opens explorer just fine. The problem seems to be introduced with v20240604.

captainys commented 1 month ago

Thank you for the report. I cannot re-create the problem in my environment at this time. Maybe something to do with the default file name. Do you mind sharing Tsugaru_Default.Tsugaru file? It should be in ~/Document/Tsugaru_TOWNS.

prietveld commented 1 month ago

It does not create a Tsugaru_Default.Tsugaru file after crashing, but I selected a BIOS-folder and saved new defaults and here is the file. With this file it still crashes when pressing the CD or FD buttons. Tsugaru_Default.zip

prietveld commented 1 month ago

Just tried this on my Windows 10 work laptop as well, where the application does not crash, but I do notice a difference between clicking the ROM dir button and the other buttons: the ROM dir button opens my USER folder, the other buttons open the USERS folder with my USER folder highlighted.

Edit: this is the same on older versions that do not crash, so that's not the issue...

captainys commented 1 month ago

Thank you for the file. Can you try the folloing?

  1. Type C:\disk.fd0 in the FD0 text box, and then
  2. Click on FD0 button.

C:\disk.fd0 does not have to exist. Only difference between ROM directory select and other select is default file name. I want to check having a default file name makes a difference.

Thanks!

prietveld commented 1 month ago

After entering C:\disk.fd0 first there is no crash when I click the button, and file explorer opens normally on Local Disk C:. If I empty the text box again and click the button the crash returns.