Closed pwarren closed 9 years ago
Interesting, it looks like it's initializing the GL context before it's ready? Are you using wxWidgets 3.0.2?
Try the latest master, I've meged the linux branch fixes which included some issues with textures initializing before the canvas was visible.
Yeah, the installed wx widgets are 3.0.2,
Using the latest master with #32 I do get a bit further, it creates an audio output thread and it displays better, without missing textures, but I still get the error, which comes up in a dialogue box.
I'll try re-ordering the initialization and make sure everything is in view, I'll update this ticket with the branch information when ready
Please check out the issue33-linux-setcurrent branch cjcliffe/CubicSDR@4dad30e9bd0043b2d28404b263f80d954f5f24e1 and let me know if that fixes your issue. There were definitely several instances where SetCurrent() was being called prior to the actual draw calls. Edit: Mind the branch issue number -- it is for this issue; just a typo.
Yep, all fixed, thanks :)
I have a BladeRF, and I'll look at hacking in support for that over the next few weeks.
I'm running Debian 8 with liquidSDR and rtl-sdr built from source, others from system packages. It builds fine, but at runtime I get an error :(
I don't have my rtl-sdr dongle with me, so that might be an issue, but will test when I get home!
Backtrace follows below, as well as build info.
ASSERT INFO: ../src/unix/glx11.cpp(86): assert "xid" failed in SetCurrent(): window must be shown
BACKTRACE: [1] wxGLContext::SetCurrent(wxGLCanvas const&) const [2] PrimaryGLContext::PrimaryGLContext(wxGLCanvas, wxGLContext) /home/pwarren/Projects/CubicSDR/src/visual/PrimaryGLContext.cpp:58 [3] CubicSDR::GetContext(wxGLCanvas) /home/pwarren/Projects/CubicSDR/src/CubicSDR.cpp:121 [4] ModeSelectorCanvas::ModeSelectorCanvas(wxWindow, int_) /home/pwarren/Projects/CubicSDR/src/visual/ModeSelectorCanvas.cpp:30 [5] AppFrame::AppFrame() /home/pwarren/Projects/CubicSDR/src/AppFrame.cpp:45 [6] CubicSDR::OnInit() /home/pwarren/Projects/CubicSDR/src/CubicSDR.cpp:71 [7] wxAppConsoleBase::CallOnInit() /usr/include/wx-3.0/wx/app.h:93 [8] wxEntry(int&, wchart*) [9] main /home/pwarren/Projects/CubicSDR/src/CubicSDR.cpp:16 [10] __libc_start_main [11] _start