BambooTracker / BambooTracker

YM2608 music tracker 🎍🎋
https://bambooTracker.github.io/BambooTracker/
GNU General Public License v2.0
480 stars 29 forks source link

[Windows|macOS|Linux|BSD] - Crash to desktop during drag and dropping files onto instrument list #419

Open freq-mod opened 2 years ago

freq-mod commented 2 years ago

Checklist

  • [X] I am reporting exactly 1 bug with this issue.
  • [X] This bug hasn't already been reported.
  • [X] This bug hasn't already been fixed in the latest development build.

Bug Description

This one is kinda funny. Via drag and drop, you can "import" any kind of file as an instrument. When clicking on imported "instrument", the program will silently crash to desktop (segfault).

How to reproduce

  1. Drag and drop any kind of file (Famitracker module, VGM file, PNG image, anything can go ig) onto instrument list
  2. Click on imported instrument
freq-mod commented 2 years ago

EDIT: The same thing happens with the normal .BTI instruments :eyes: So, it's not a problem with file type checking...

freq-mod commented 2 years ago

GDB backtrace, in case anyone can help with identifying the cause of this bug: Thread 1 "BambooTracker" received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7ffff387ac80 (LWP 10093)] 0x00005555556215f8 in AbstractInstrument::getType (this=0x0) at instrument/instrument.hpp:51 51 inline InstrumentType getType() const noexcept { return instType_; } and the rest: message.txt

rerrahkr commented 2 years ago

I'm sorry I haven't responded to your request either. I can't reproduce this either, so I would appreciate information on whether it still reproduces in your environment.