-
Notifications
You must be signed in to change notification settings - Fork 10
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
Flatpak Octave 5.2.0 crashes when plotting on Linux Mint 18.3 #108
Comments
There certainly seems like a problem with OpenGL and Flatpak and your system configuration. The "session management error" also indicates some problem with permissions and your desktop environment. You'll most likely have to investigate further on your system, since Octave graphics work normally on vanilla systems. |
I would have described my system as "vanilla": a clean installation of Linux Mint 18.1, subsequently upgraded without issues to LM18.2 then LM18.3, which has been behaving completely stably since 2018. The Intel HD Graphics 530 are integrated on the motherboard, not part of some exotic graphics card. I had no problems with the "native" Octave version 4.2.2.
I did wonder whether issue #106 is relevant, since I know Linux Mint 18.3 does not natively support Wayland, but I don't have the skills or time to investigate this further. |
All good info and questions. Gimp and Inkscape are likely not affected because they don't use OpenGL graphics. You could try another OpenGL Flatpak, for example Blender or Godot Engine. I don't use either of these, just suggestions to try. I doubt #106 is relevant, because I can reproduce that one, but not this one. I agree, the "as superuser" in the title is strange, and I can't reproduce that either. My best guess is that you are running flatpak as root or with sudo, or that flatpak is somehow configured to run as root automatically on your system. That doesn't seem normal, and if true may help explain the graphics problem. |
After a little light research, the "as superuser" title tag may be a misdirection and not relevant. This may just be a MATE desktop quirk, where your DE is trying to determine if your session owns the program, and since it's in a container, it defaults to thinking it's running as root. See flatpak/flatpak#1557. |
Here is the upstream MATE issue for the "as superuser" label mate-desktop/marco#301. |
I'm relieved that the "(as superuser)" suffix is misleading/spurious, although it's still a bit puzzling (to me) why the suffix only appears on the title of graphics windows opened by Octave, and not on the main GUI window for Octave itself. The only other relevant information I can think of at the moment is that the Start menu launcher for Octave invokes the command
I do recall that when the Octave Flatpak was installed using the Mint Software Manager, it did not explicitly ask me for password authentication before beginning the installation. This now strikes me as a bit odd, since installation or update of "native" programs with the Synaptic Package Manager invariably requires password authentication. Nevertheless, the main Flatpak Octave files were installed into sub-folders of |
If relevant, I experienced an immediate crash in Flatpak Octave 5.2.0 on Ubuntu 18.04 when executing "figure". This came after upgrading nvidia drivers from 435 -> 440 (through dpkg). After running "flatpak update", which seemed to also update a flatpak version of nvidia drivers, the crash was resolved. |
@mmurrian solution helped me on Ubuntu 18.04 with Octave 6.1. Thanks! |
I use LM18.3 (MATE) and until recently used Octave 4.2.2 without problems. That version was installed from ppa:octave/stable, but as there is no PPA version for Octave 5.2.0, I installed the Flatpak version from Flathub using Mint's Software manager. I can create/edit and run Octave programs, but there are problems whenever I try to issue a plot (or other graphics display) command.
A subsequent "plot" command will produce the required plot in the graphics window, but strangely, the Plot window title also includes the suffix "(as Superuser)".
If I then set the Octave graphics toolkit to 'fltk', a "figure" command will open a graphics window, but with the error message:
Octave itself does not crash in this case.
Is there an openGL, or other graphics, dependency that is not satisfied when Flatpak Octave 5.2.0 is installed, or is there some setting that should be adjusted to allow error-free production of graphics?
Some relevant system information is as follows:
The text was updated successfully, but these errors were encountered: