OpenHantek / OpenHantek6022

OpenHantek6022 is a DSO software for Hantek USB digital signal oscilloscopes 6022BE / BL. Development OS is Debian Linux, but the program also works on FreeBSD, MacOS, RaspberryPi and Windows. No support for non-Linux related issues unless a volunteer steps in!
GNU General Public License v3.0
868 stars 153 forks source link

Failed to open main window with error. QOpenGLFunctions created with non-current context #367

Closed TheHolm closed 1 year ago

TheHolm commented 1 year ago

Compiled from source on tag 3.3.2.2 under debian bookworm (AKA testing). Used to work on same machine, and it hard to say what update broke it. It fails after it show first dialog window where you can select the device.

theholm@host ~/D/c/O/build ((3.3.2.2))> openhantek/OpenHantek -v
OpenHantek6022 3.3.2.2
theholm@host ~/D/c/O/build ((3.3.2.2)) [SIGSEGV]> openhantek/OpenHantek --verbose 10
Version: 3.3.2.2 - build: May  7 2023 16:41:02
0 ms: create openHantekApplication
Gtk-Message: 16:45:10.528: Failed to load module "colorreload-gtk-module"
Gtk-Message: 16:45:10.528: Failed to load module "window-decorations-gtk-module"
60 ms: set RT FIFO scheduler
60 ms: load translations for locale "en_AU"
60 ms: init libusb
70 ms: show splash screen
 FindDevices::FindDevices()
  FindDevices::updateDeviceList()
  +++ "0x1130000004b50210" "DSO-6022BL"
  DevicesListModel::updateDeviceList() "DSO-6022BL" can connect
  FindDevices::updateDeviceList()
1064 ms: use device "DSO-6022BL" serial number "CF417A644520"
1064 ms: create DSO control thread
 HantekDsoControl::HantekDsoControl()
  Calibration data: "DSO-6022BL_CF417A644520_calibration.ini"
  HDC::getCalibrationFromEEPROM()
      ScopeDevice::controlTransfer() Vendor In EEPROM 8 0 { 
      8a 8d 8a 8d 8a 8d 86 8a 82 87 7f 85 7f 85 7f 85 
      8a 8d 8a 8d 8a 8d 86 8a 82 87 7f 85 7f 85 7f 85 
      ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
      ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 
      ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff } = 80
   HDC::calibrationValues 80
   .off.ls:  8a 8d 8a 8d 8a 8d 86 8a 82 87 7f 85 7f 85 7f 85
   .off.hs:  8a 8d 8a 8d 8a 8d 86 8a 82 87 7f 85 7f 85 7f 85
   .gain:    ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
   .fine.ls: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
   .fine.hs: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
1074 ms: create settings object
 DsoSettings::DsoSettings() "DSO-6022BL" "CF417A644520" false
 DsoSettings::load() "/home/theholm/.config/OpenHantek/DSO-6022BL_CF417A644520.conf"
1074 ms: create exporters
1074 ms: create post processing objects
 SpectrumGenerator::SpectrumGenerator()
 GraphGenerator::GraphGenerator()
1074 ms: setup OpenGL
QOpenGLFunctions created with non-current context
fish: Job 1, 'openhantek/OpenHantek --verbose…' terminated by signal SIGSEGV (Address boundary error)
TheHolm commented 1 year ago

Feed it to debugger. It fails on line 40 in glscope.cpp
OpenGLversion = reinterpret_cast< const char * >( context.functions()->glGetString( GL_VERSION ) );

github-actions[bot] commented 1 year ago

There hasn't been any activity on this issue recently, and in order to prioritize active issues, it will be marked as stale. Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by leaving a comment. Because this issue is marked as stale, it will be closed and locked in 7 days if no further activity occurs. Thank you for your contributions!