hmatuschek / qdmr

A GUI application for configuring and programming cheap DMR radios under Linux and MacOS X.
https://dm3mat.darc.de/qdmr/
GNU General Public License v3.0
223 stars 46 forks source link

Crash when reading codeplug from OpenGD77 Radio #393

Closed detournemint closed 1 year ago

detournemint commented 1 year ago

I recently flashed a TYT MD380UV with OpenGD77 and when using QDMR, reading the codeplug crashes with the following:

gigawatt@mesquite:~$ qdmr
qt5ct: using qt5ct plugin
Debug in src/application.cc@863: Set icon theme to 'light'.
Debug in src/application.cc@77: Search for translation in '/usr/share/locale/en_US/LC_MESSAGES'.
Debug in src/application.cc@77: Search for translation in '/usr/share/locale/en/LC_MESSAGES'.
Debug in src/repeaterbookcompleter.cc@326: Loaded repeater cache of 0 entries.
Debug in lib/userdatabase.cc@124: Loaded user database with 246029 entries from /home/gigawatt/.local/share/DM3MAT/qdmr/user.json.
Debug in lib/talkgroupdatabase.cc@140: Loaded talk group database with 1667 entries from /home/gigawatt/.local/share/DM3MAT/qdmr/talkgroups.json.
Debug in src/application.cc@133: Last known position: 
Debug in src/application.cc@185: Create main window using icon theme 'light'.
qt5ct: D-Bus global menu: no
Debug in src/application.cc@446: Last device is invalid, search for new one.
Debug in lib/usbserial.cc@162: Search for serial port with matching VID:PID 28e9:18a.
Debug in lib/usbserial.cc@162: Search for serial port with matching VID:PID 1fc9:94.
Debug in lib/usbserial.cc@169: Found ttyACM0 (USB 1fc9:94).
Debug in lib/hid_libusb.cc@128: Search for HID interfaces matching VID:PID 15a2:73.
Debug in lib/dfu_libusb.cc@156: Search for DFU devices matching VID:PID 483:df11.
Debug in lib/usbdevice.cc@247: Check if serial port ttyACM0 still exisist and has VID:PID 1fc9:94.
Debug in lib/radio.cc@56: Try to detect radio at Serial interface 'ttyACM0'.
Debug in lib/usbserial.cc@90: Try to open Serial interface 'ttyACM0'.
Debug in lib/usbserial.cc@124: Opened serial port ttyACM0 with 115200baud.
Debug in lib/opengd77.cc@19: Closing device.
Debug in lib/usbserial.cc@155: Serial port will close now.
Debug in lib/opengd77.cc@24: Deleting device.
Debug in lib/usbdevice.cc@247: Check if serial port ttyACM0 still exisist and has VID:PID 1fc9:94.
Debug in lib/usbdevice.cc@247: Check if serial port ttyACM0 still exisist and has VID:PID 1fc9:94.
Debug in lib/radio.cc@56: Try to detect radio at Serial interface 'ttyACM0'.
Debug in lib/usbserial.cc@90: Try to open Serial interface 'ttyACM0'.
Debug in lib/usbserial.cc@124: Opened serial port ttyACM0 with 115200baud.
Debug in lib/usbserial.cc@155: Serial port will close now.
Warning in lib/channel.cc@706: Color-code 16 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 62 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 34 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 63 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 33 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 36 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 32 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 69 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 16 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 16 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 79 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 255 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 66 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 31 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 16 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 84 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 33 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 17 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 32 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 41 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 143 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 19 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 33 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 130 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 16 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 18 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 32 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 17 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 63 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 89 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 150 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 17 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 17 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 124 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 194 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 35 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 32 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 84 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 31 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 18 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 17 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 72 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 16 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 63 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 40 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 69 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 47 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 63 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 49 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 18 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 16 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 50 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 32 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 16 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 52 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 20 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 18 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 17 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 17 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 36 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 16 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 18 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 33 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 34 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 32 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 53 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 32 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 26 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 35 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 48 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 20 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 25 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 64 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 64 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 83 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 255 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 36 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 255 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 253 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 65 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 18 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 253 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 33 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 64 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 34 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 16 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 251 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 16 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 65 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 35 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 251 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 35 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 36 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 37 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 39 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 63 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 17 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 49 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 63 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 28 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 159 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 16 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 63 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 144 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 31 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 49 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 255 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 18 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 31 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 34 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 34 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 68 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 255 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 68 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 40 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 255 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 255 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 19 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 255 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 73 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 87 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 62 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 255 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 31 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 165 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 68 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 18 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 16 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 17 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 226 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 18 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 32 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 36 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 19 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 32 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 72 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 75 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 155 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 149 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 72 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 170 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 32 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 84 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 16 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 85 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 85 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 85 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 168 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 168 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 33 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 171 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 169 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 34 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 58 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 17 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 147 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 68 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 68 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 146 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 17 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 72 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 144 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 159 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 34 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 63 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 72 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 32 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 35 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 17 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 17 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 84 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 16 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 19 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 16 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 17 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 39 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 23 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 23 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 19 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 35 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 33 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 32 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 39 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 32 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 39 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 130 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 34 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 46 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 32 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 66 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 135 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 35 is not in range [0,15], set to 15.
Warning in lib/channel.cc@706: Color-code 36 is not in range [0,15], set to 15.
Segmentation fault (core dumped)
allesand commented 1 year ago

Hello @detournemint , thanks for reporting, that confirms #300 What is the qdmr version you are getting this result with? Current qdmr works with an RD-5R with recent OpenGD77, but as stated in #300, there seem to be some differences in the OpenGD77 implementation between the different supported radios.

hmatuschek commented 1 year ago

Created a singe issue #394 for all OpenGD77 related stuff. I have to rewrite it in large parts anyway. So closing this one here as a duplicate.