Opened 4 years ago

Last modified 4 years ago

#60900 assigned defect

gr-fosphor @20200130-defdd4ac_0+python37: Illegal instruction: 4

Reported by: jbaggs Owned by: michaelld (Michael Dickens)
Priority: Normal Milestone:
Component: ports Version: 2.6.3
Keywords: Cc: chrstphrchvz (Christopher Chavez), ra1nb0w
Port: gr-fosphor

Description (last modified by jbaggs)

gnuradio @3.8.1.0_0+docs+grc+python37+qtgui+sdl+swig+uhd+wavelet+zeromq

MAC OS Catalina

All flowgraphs with gr-fosphor block crash with the illegal instruction error after upgrading.

Exception Type:        EXC_BAD_INSTRUCTION (SIGILL)
Exception Codes:       0x0000000000000001, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Termination Signal:    Illegal instruction: 4
Termination Reason:    Namespace SIGNAL, Code 0x4
Terminating Process:   exc handler [31876]

Application Specific Information:
-[NSOpenGLContext setView:] must be called from the main thread.

#--------------->8(SNIP)8<----------------
Thread 11 Crashed:
0   com.apple.AppKit                0x00007fff3587c65c -[NSOpenGLContext setView:] + 229
1   libqcocoa.dylib                 0x0000000127f17cd5 0x127ed5000 + 273621
2   libqcocoa.dylib                 0x0000000127f17975 0x127ed5000 + 272757
3   org.qt-project.QtGui            0x0000000110f0966a QOpenGLContext::makeCurrent(QSurface*) + 148
4   org.qt-project.QtOpenGL         0x00000001133dda38 QGLContext::makeCurrent() + 100
5   org.qt-project.QtOpenGL         0x00000001133ddf42 QGLWidgetPrivate::makeCurrent() + 22
6   libgnuradio-fosphor.3.8.0git.dylib  0x00000001142a9f6a gr::fosphor::QGLSurface::grabContext() + 416
7   libgnuradio-fosphor.3.8.0git.dylib  0x00000001142aa73b non-virtual thunk to gr::fosphor::qt_sink_c_impl::glctx_init() + 21
8   libgnuradio-fosphor.3.8.0git.dylib  0x00000001142a6545 gr::fosphor::base_sink_c_impl::worker() + 25
9   libboost_thread-mt.dylib        0x00000001142fbc07 boost::(anonymous namespace)::thread_proxy(void*) + 119
10  libsystem_pthread.dylib         0x00007fff723a6109 _pthread_start + 148
11  libsystem_pthread.dylib         0x00007fff723a1b8b thread_start + 15

Attachments (1)

test.grc (2.1 KB) - added by jbaggs 4 years ago.
simple flowpraph with a gr-fosphor block

Download all attachments as: .zip

Change History (9)

comment:1 Changed 4 years ago by jbaggs

Description: modified (diff)

comment:2 Changed 4 years ago by chrstphrchvz (Christopher Chavez)

This ticket did not get assigned/cc'ed to maintainers.

This looks like a possible upstream issue: https://osmocom.org/issues/4677

comment:3 Changed 4 years ago by chrstphrchvz (Christopher Chavez)

Cc: chrstphrchvz added

comment:4 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ra1nb0w added
Owner: set to michaelld
Status: newassigned

comment:5 Changed 4 years ago by ra1nb0w

jbaggs, can you add an example to test the issue? thank you

Changed 4 years ago by jbaggs

Attachment: test.grc added

simple flowpraph with a gr-fosphor block

comment:6 Changed 4 years ago by jbaggs

GRC (or python scripts) crash on any flowgraph with the gr-fosphor block, so something even this simple will do: attachment:test.grc

comment:7 Changed 4 years ago by ra1nb0w

This should be Qt explanation https://bugreports.qt.io/browse/QTBUG-79315

Are you using Qt 5.14? If so, the rendering is not on the main thread and we need to wait the osmocom team. Maybe send the issue on the mailing list.

comment:8 Changed 4 years ago by jbaggs

Yes, and correct. The rendering ls clearly not on the main thread.

Note: See TracTickets for help on using tickets.