Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect OpenGL warning when starting PrusaSlicer GCode Viewer with a file argument #5013

Closed
VorpalBlade opened this issue Oct 28, 2020 · 3 comments

Comments

@VorpalBlade
Copy link

Version

PrusaSlicer 2.3.0-alpha2+linux+x64 (GTK2). I'm using the AppImage. This issue does not happen with GTK3 build (but that one has broken UI, see issue #4911).

Operating system type + version

What OS are you using, and state any version #s
Ubuntu Linux 18.04 x86-64
In case of 3D rendering issues, please attach the content of menu Help -> System Info dialog

Here is the system info: system_info.txt

3D printer brand / version + firmware version (if known)

What 3D printer brand / version are you printing on, is it a stock model or did you modify the printer, what firmware is running on your printer, version of the firmware #s
Not applicable, but I have a stock Prusa i3 MK3s.

Behavior

  • Describe the problem

A popup with the following message is shown when starting prusa-gcodeviewer with a gcode file argument (but not when starting the normal slicer mode with a stl or 3mf as a file name argument or when starting the gcode viewer without arguments):
image

After this the program usually hangs. Sometimes it launches to an empty window instead though. About 1 times out of 10 it works as expected. This indicates to me that it is probably some sort of race condition or timing issue.

In all cases (even when it works, so probably unrelated), there are a lot of copies of the following two warning messages in the terminal:

(prusa-gcodeviewer:780): GLib-GObject-WARNING **: 18:06:21.372: invalid (NULL) pointer instance

(prusa-gcodeviewer:780): GLib-GObject-CRITICAL **: 18:06:21.372: g_signal_handlers_block_matched: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

Launching the program without a file argument and then opening the file always works.

  • Steps needed to reproduce the problem
    • Launch prusa-gcodeviewer symlinked to PrusaSlicer-2.3.0-alpha2+linux-x64-202010241644.AppImage with a file name argument, e.g. (using some of the example gcode that came on the SD card of my MK3s): ./prusa-gcodeviewer Whistle_0.2mm_PLA_MK3S_34m.gcode
  • Expected Results: The gcode viewer opens and displays the file.
  • Actual Results
    • The error message described above usually shows up, sometimes the program then hangs (and it is impossible to click OK), sometimes it continues opening and either shows a blank screen, blank build plate or just plain works.

Is this a new feature request?
No, it is a bug.

Project File (.3MF) where problem occurs

Happens with all gcode files I have tried. But here is one as an example: Whistle_0.2mm_PLA_MK3S_34m.gcode.zip

@lukasmatena
Copy link
Collaborator

Thanks, we already noticed this. It happens when gcode viewer attemps to load a gcode file before opengl is initialized (through GUI_App::post_init). Otherwise the OpenGl is initialized during first render loop. Probably something for @enricoturri1966 to look at.

@Area5142
Copy link

I reported a similar problem with symlink prusa-gcodeviewer on Linux Mint 19.3 in #4880, using AppImage.

@lukasmatena
Copy link
Collaborator

@Area5142 Yes, thanks for the reference. These issues really seem connected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants