i'm trying to install Stellarium on my Raspberry Pi 4 (4 GB ram). I'm following the instructions here. After installation, i tried to run the program using snap run stellarium-plars, but it doesn't work (only a small empty window opens). On the terminal i read a long output, i think the problem is here:
QXcbIntegration: Cannot create platform OpenGL context, neither GLX nor EGL are enabled
But i enabled OpenGL in raspi-config. How can i debug the problem? This is the full output on terminal after running the program:
-----------------------------------------------------
[ This is Stellarium 0.20.1 - https://stellarium.org/ ]
[ Copyright (C) 2000-2020 Fabien Chereau et al. ]
-----------------------------------------------------
Writing log file to: "/home/pi/snap/stellarium-plars/75/.stellarium/log.txt"
File search paths:
0 . "/home/pi/snap/stellarium-plars/75/.stellarium"
1 . "/snap/stellarium-plars/75/bin/../share/stellarium"
Config file is: "/home/pi/snap/stellarium-plars/75/.stellarium/config.ini"
Default surface format: QSurfaceFormat(version 2.0, options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize -1, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize -1, samples -1, swapBehavior QSurfaceFormat::SwapBehavior(DefaultSwapBehavior), swapInterval 1, profile QSurfaceFormat::OpenGLContextProfile(NoProfile))
Desired surface format: QSurfaceFormat(version 2.0, options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize 24, redBufferSize 8, greenBufferSize 8, blueBufferSize 8, alphaBufferSize 8, stencilBufferSize 8, samples -1, swapBehavior QSurfaceFormat::SwapBehavior(DefaultSwapBehavior), swapInterval 1, profile QSurfaceFormat::OpenGLContextProfile(NoProfile))
StelGLWidget constructor
StelGraphicsScene constructor
QXcbIntegration: Cannot create platform OpenGL context, neither GLX nor EGL are enabled
QXcbIntegration: Cannot create platform OpenGL context, neither GLX nor EGL are enabled
QOpenGLWidget: Failed to create context
QPainter::begin: Paint device returned engine == 0, type: 1
QPainter::setRenderHint: Painter must be active to set rendering hints
QPainter::setRenderHint: Painter must be active to set rendering hints
QPainter::worldTransform: Painter not active
QPainter::save: Painter not active
QPainter::restore: Unbalanced save/restore
QPainter::setWorldTransform: Painter not active
QPainter::end: Painter not active, aborted
composeAndFlush: makeCurrent() failed
composeAndFlush: makeCurrent() failed
composeAndFlush: makeCurrent() failed
composeAndFlush: makeCurrent() failed
composeAndFlush: makeCurrent() failed
Segmentation error
Covid has me working remotely, and I'm pretty stuck here.
I've had no problem using X11 forwarding for UIs and even for 3D OpenSceneGraph visualizations, but a new application I need to run gives the following error on the remote computer:
X Error of failed request: GLXUnsupportedPrivateRequest
Major opcode of failed request: 149 (GLX)
Minor opcode of failed request: 16 (X_GLXVendorPrivate)
Serial number of failed request: 35
Current serial number in output stream: 38
The remote computer is a linux machine running ubuntu 16.04, the local computer is a mac using XQuartz as the X server.
To the best of my research it seems like the local computer does not support a certain GLX request. I'm wondering if this is just a missing GLX feature from XQuartz that can't be solved.
I tried to investigate if GLX was the problem. If I run 'glxdemo' I see the yellow square no problem. Possibly related - when I run glxgears, I see gears that are NOT moving, despite no errors and the console reporting non-zero fps.
Some other interesting information, here is the result of me running 'glxinfo' on the remote computer. Is this related to direct rendering not being on? I read this has something to do with using libGL.so from NVidia which doesn't support remote GLX. Is that the right path to go down? Something else that is weird is that 'OpenGL renderer string' references the intel chip inside, not the nvidia graphics card. Why would that be the case and is it related?
name of display: localhost:10.0
display: localhost:10 screen: 0
direct rendering: No (If you want to find out why, try setting LIBGL_DEBUG=verbose)
server glx vendor string: SGI
server glx version string: 1.4
server glx extensions:
GLX_ARB_multisample, GLX_EXT_import_context, GLX_EXT_visual_info,
GLX_EXT_visual_rating, GLX_OML_swap_method, GLX_SGIS_multisample,
GLX_SGIX_fbconfig
client glx vendor string: NVIDIA Corporation
client glx version string: 1.4
client glx extensions:
GLX_ARB_context_flush_control, GLX_ARB_create_context,
GLX_ARB_create_context_no_error, GLX_ARB_create_context_profile,
GLX_ARB_create_context_robustness, GLX_ARB_fbconfig_float,
GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_buffer_age,
GLX_EXT_create_context_es2_profile, GLX_EXT_create_context_es_profile,
GLX_EXT_fbconfig_packed_float, GLX_EXT_framebuffer_sRGB,
GLX_EXT_import_context, GLX_EXT_stereo_tree, GLX_EXT_swap_control,
GLX_EXT_swap_control_tear, GLX_EXT_texture_from_pixmap,
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_NV_copy_buffer,
GLX_NV_copy_image, GLX_NV_delay_before_swap, GLX_NV_float_buffer,
GLX_NV_multisample_coverage, GLX_NV_present_video,
GLX_NV_robustness_video_memory_purge, GLX_NV_swap_group,
GLX_NV_video_capture, GLX_NV_video_out, GLX_SGIX_fbconfig,
GLX_SGIX_pbuffer, GLX_SGI_swap_control, GLX_SGI_video_sync
GLX version: 1.4
GLX extensions:
GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_import_context,
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_SGIX_fbconfig
OpenGL vendor string: Intel Inc.
OpenGL renderer string: Intel(R) Iris(TM) Plus Graphics 640
OpenGL version string: 1.4 (2.1 INTEL-10.25.24)
OpenGL extensions:
GL_ARB_depth_texture, GL_ARB_draw_buffers, GL_ARB_fragment_program,
GL_ARB_fragment_program_shadow, GL_ARB_multisample, GL_ARB_multitexture,
GL_ARB_occlusion_query, GL_ARB_point_parameters, GL_ARB_point_sprite,
GL_ARB_shadow, GL_ARB_texture_border_clamp, GL_ARB_texture_compression,
GL_ARB_texture_cube_map, GL_ARB_texture_env_add,
GL_ARB_texture_env_combine, GL_ARB_texture_env_crossbar,
GL_ARB_texture_env_dot3, GL_ARB_texture_mirrored_repeat,
GL_ARB_texture_non_power_of_two, GL_ARB_transpose_matrix,
GL_ARB_vertex_program, GL_ARB_window_pos, GL_ATI_texture_mirror_once,
GL_EXT_abgr, GL_EXT_bgra, GL_EXT_blend_color,
GL_EXT_blend_equation_separate, GL_EXT_blend_func_separate,
GL_EXT_blend_minmax, GL_EXT_blend_subtract, GL_EXT_draw_range_elements,
GL_EXT_fog_coord, GL_EXT_framebuffer_object, GL_EXT_multi_draw_arrays,
GL_EXT_rescale_normal, GL_EXT_secondary_color,
GL_EXT_separate_specular_color, GL_EXT_shadow_funcs,
GL_EXT_stencil_two_side, GL_EXT_stencil_wrap,
GL_EXT_texture_compression_dxt1, GL_EXT_texture_compression_s3tc,
GL_EXT_texture_env_add, GL_EXT_texture_filter_anisotropic,
GL_EXT_texture_lod_bias, GL_NV_blend_square, GL_NV_depth_clamp,
GL_NV_fog_distance, GL_NV_light_max_exponent, GL_NV_texgen_reflection,
GL_SGIS_generate_mipmap, GL_SGIS_texture_lod
Any help would be super appreciated. Working remotely is kind of tough but I'm forced to do it.
I ran into the same issue with a different program, after installing an Nvidia GPU in my server in order to run CUDA applications. It seems that after doing so, some GL applications (but not glxinfo or glxgears) load Nvidia's libGLX.so instead of the Mesa indirect one that should be used for GLX forwarding over ssh.
This was solved by entering the following on the remote machine:
sudo update-glx --config glx
And then selecting the Mesa driver.
I do think this disables the Nvidia GLX driver system-wide, which may not be desirable if the graphics card is used for local video output.
I can VNC into my RHEL server, however all I get is a blank desktop with some kind of wallpaper applied, a mouse pointer which doesn't respond to either a left or a right mouse click.
my xstartup file in .vnc looks as below:
#!/bin/sh
[ -r /etc/sysconfig/i18n ] && . /etc/sysconfig/i18n
export LANG
export SYSFONT
vncconfig -iconic &
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
OS=`uname -s`
if [ $OS = 'Linux' ]; then
case "$WINDOWMANAGER" in
*gnome*)
if [ -e /etc/SuSE-release ]; then
PATH=$PATH:/opt/gnome/bin
export PATH
fi
;;
esac
fi
if [ -x /etc/X11/xinit/xinitrc ]; then
exec /etc/X11/xinit/xinitrc
fi
if [ -f /etc/X11/xinit/xinitrc ]; then
exec sh /etc/X11/xinit/xinitrc
fi
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
gnome-session &
I don't even have an xinitrc executable in /etc/X11/xinit, I only have a directory xinitrc.d, which just has one file in it: 00-start-message-bus.sh
-----UPDATE ----------------
I installed GDM, and now at least I have an xinitrc file and startx is doing "something". I am using a virtualised server platform, no physical monitor attached. startx was giving me "command not found" before I installed GDM.
Now when I restart the vncserver service, I get this in my log files.
Xvnc TigerVNC 1.1.0 - built Jul 22 2014 06:00:32
Copyright (C) 1999-2011 TigerVNC Team and many others (see README.txt)
See http://www.tigervnc.org for information on TigerVNC.
Underlying X server release 11500000, The X.Org Foundation
Initializing built-in extension Generic Event Extension
Initializing built-in extension SHAPE
Initializing built-in extension MIT-SHM
Initializing built-in extension XInputExtension
Initializing built-in extension XTEST
Initializing built-in extension BIG-REQUESTS
Initializing built-in extension SYNC
Initializing built-in extension XKEYBOARD
Initializing built-in extension XC-MISC
Initializing built-in extension XFIXES
Initializing built-in extension RENDER
Initializing built-in extension RANDR
Initializing built-in extension DAMAGE
Initializing built-in extension MIT-SCREEN-SAVER
Initializing built-in extension DOUBLE-BUFFER
Initializing built-in extension RECORD
Initializing built-in extension DPMS
Initializing built-in extension X-Resource
Initializing built-in extension XVideo
Initializing built-in extension XVideo-MotionCompensation
Initializing built-in extension VNC-EXTENSION
Initializing built-in extension GLX
Mon Nov 2 22:07:07 2015
vncext: VNC extension running!
vncext: Listening for VNC connections on all interface(s), port 5902
vncext: created VNC server for screen 0
gnome-session[4254]: WARNING: Unable to find provider 'gnome-panel' of required component 'panel'
gnome-session[4254]: WARNING: Unable to find provider 'nautilus' of required component 'filemanager'
GNOME_KEYRING_SOCKET=/tmp/keyring-u6bws2/socket
SSH_AUTH_SOCK=/tmp/keyring-u6bws2/socket.ssh
GNOME_KEYRING_PID=4268
** (gnome-settings-daemon:4267): WARNING **: Connection failed, reconnecting...
vmware-user: could not open /proc/fs/vmblock/dev
Failed to play sound: Not available
(polkit-gnome-authentication-agent-1:4285): GLib-GObject-WARNING **: cannot register existing type `_PolkitError'
(polkit-gnome-authentication-agent-1:4285): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed
Xlib: extension "VMWARE_CTRL" missing on display ":2".
** (gnome-settings-daemon:4267): WARNING **: Connection failed, reconnecting...
** (gnome-settings-daemon:4267): WARNING **: Connection failed, reconnecting...
me#server:~/.vnc$
------------UPDATE 2 ------------------
Setting the run level from 3 to 5 in /etc/inittab seems to have worked!!
------------UPDATE 3 ------------------
Although things are better, I am having to install Gnome piecemeal. For example I had to 'yum install nautilus' before I could browse files, and then I had to 'yum install gnome-apps' so I could get my trash can and desktop icons.
I then had to 'yum install gnome-terminal' before I could access a terminal through gnome.
I am unable to install "Gnome Desktop Environment" as I think we are locked down on the virtualised corporate platform, but I have managed to install gdm, gnome-session, gnome-terminal, nautilus and gnome-apps.
Which port are you connecting to? By default vnc connects to port 5900+N where N is the number of the xorg display.
If you don't explicitly set the port then most likely your client connects to the next available unoccupied xorg display, i.e. 5001.
If you want to connect to an already running display either connect explicitly to port 5100, or use x11vnc.
I am running redhawk 1.9 and am trying to lauch a waveform. I get the following error: An internal error occurred during: "Launching FM_Radio_Example".
org.jacorb.orb.ORB cannot be cast to com.sun.corba.se.spi.orb.ORB
The error panel shows the following:
java.lang.ClassCastException: org.jacorb.orb.ORB cannot be cast to com.sun.corba.se.spi.orb.ORB
at com.sun.corba.se.impl.corba.TypeCodeImpl.copy(TypeCodeImpl.java:2017)
at com.sun.corba.se.impl.corba.TypeCodeImpl.copy(TypeCodeImpl.java:2054)
at com.sun.corba.se.impl.corba.TypeCodeImpl.copy(TypeCodeImpl.java:2222)
at com.sun.corba.se.impl.corba.TypeCodeImpl.copy(TypeCodeImpl.java:2234)
at com.sun.corba.se.impl.corba.AnyImpl.write_value(AnyImpl.java:608)
at org.jacorb.orb.CDROutputStream.write_any(CDROutputStream.java:743)
at CF.DataTypeHelper.write(DataTypeHelper.java:79)
at CF.PropertiesHelper.write(PropertiesHelper.java:61)
at CF._ResourceStub.configure(_ResourceStub.java:189)
at gov.redhawk.model.sca.impl.ScaAbstractComponentImpl.configure(ScaAbstractComponentImpl.java:680)
at gov.redhawk.ide.debug.internal.LocalApplicationFactory.configureComponent(LocalApplicationFactory.java:297)
at gov.redhawk.ide.debug.internal.LocalApplicationFactory.configureComponents(LocalApplicationFactory.java:199)
at gov.redhawk.ide.debug.internal.LocalApplicationFactory.create(LocalApplicationFactory.java:158)
at gov.redhawk.ide.debug.internal.ui.LocalWaveformLaunchDelegate.launch(LocalWaveformLaunchDelegate.java:98)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:855)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:704)
at gov.redhawk.ide.debug.ui.LaunchUtil$1.run(LaunchUtil.java:213)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
I have a device mananger node that when launched I get the following error. It may be related but I am not sure. The library in question is at /root/src/redhawk-src-1.9.0/redhawk/src/base/framework/.libs. I set the environment variable PKG_CONFIG_PATH to this path but that did not help.
INFO:DeviceManager - Starting Device Manager with /nodes/SI9138_Node/DeviceManager.dcd.xml
INFO:DeviceManager_impl - Connecting to Domain Manager REDHAWK_root/REDHAWK_root
INFO:DeviceManager_impl - Child process SI9138_1 (pid 24915) has exited with status 127
/var/redhawk/sdr/dev/devices/SI9138/cpp/SI9138: error while loading shared libraries: libossieidl.so.3: cannot open shared object file: No such file or directory
WARN:DeviceManager_impl - skipping exec param with null value
INFO:DeviceManager - Starting ORB!
INFO:SI9138_Node:GPP_1:Registering Device
INFO:DeviceManager_impl - Registering device GPP_1 on Device Manager SI9138_Node
INFO:DeviceManager_impl - Initializing device GPP_1 on Device Manager SI9138_Node
INFO:DeviceManager_impl - Registering device GPP_1 on Domain Manager
Here is the eclipse/java information:
eclipse.buildId=1.9.0.R201309261648
java.version=1.6.0_30
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Command-line arguments: -os linux -ws gtk -arch x86_64
The latest version of openjdk has caused some problems with jacorb. Below are two ways to get around the problem:
Downgrade openjdk and openjdk-devel
$ sudo yum downgrade java-1.6.0-openjdk-devel java-1.6.0-openjdk
Install REDHAWK 1.8.7+ or REDHAWK 1.10+ and launch the IDE at /usr/local/redhawk/ide/1.10/eclipse.
I try to start X11 on cygwin - "Failed to activate core devices"
XWin.0.log
Welcome to the XWin X Server
Vendor: The Cygwin/X Project
Release: 1.15.0.0
OS: CYGWIN_NT-6.1-WOW64 erngab-PC 1.7.27(0.271/5/3) 2013-12-09 11:57 i686
OS: Windows 7 Service Pack 1 [Windows NT 6.1 build 7601] (WoW64)
Package: version 1.15.0-2 built 2014-01-11
XWin was started with the following command line:
xwin -nodecoration -rootless
ddxProcessArgument - Initializing default screens
winInitializeScreenDefaults - primary monitor w 1920 h 1080
winInitializeScreenDefaults - native DPI x 96 y 96
[ 6236.888] Initializing built-in extension Generic Event Extension
[ 6236.888] Initializing built-in extension SHAPE
[ 6236.888] Initializing built-in extension MIT-SHM
[ 6236.888] Initializing built-in extension XInputExtension
[ 6236.888] Initializing built-in extension XTEST
[ 6236.888] Initializing built-in extension BIG-REQUESTS
[ 6236.888] Initializing built-in extension SYNC
[ 6236.888] Initializing built-in extension XKEYBOARD
[ 6236.888] Initializing built-in extension XC-MISC
[ 6236.888] Initializing built-in extension XINERAMA
[ 6236.888] Initializing built-in extension XFIXES
[ 6236.888] Initializing built-in extension XFree86-Bigfont
[ 6236.888] Initializing built-in extension RENDER
[ 6236.888] Initializing built-in extension RANDR
[ 6236.888] Initializing built-in extension COMPOSITE
[ 6236.888] Initializing built-in extension DAMAGE
[ 6236.888] Initializing built-in extension MIT-SCREEN-SAVER
[ 6236.888] Initializing built-in extension DOUBLE-BUFFER
[ 6236.888] Initializing built-in extension RECORD
[ 6236.888] Initializing built-in extension DPMS
[ 6236.888] Initializing built-in extension Present
[ 6236.888] Initializing built-in extension X-Resource
[ 6236.888] Initializing built-in extension GLX
[ 6236.888] (II) xorg.conf is not supported
[ 6236.888] (II) See http://x.cygwin.com/docs/faq/cygwin-x-faq.html for more information
[ 6236.888] LoadPreferences: Loading /cygdrive/d/home/.XWinrc
[ 6237.075] winDetectSupportedEngines - DirectDraw installed, allowing ShadowDD
[ 6237.075] winDetectSupportedEngines - Windows NT, allowing PrimaryDD
[ 6237.075] winDetectSupportedEngines - DirectDraw4 installed, allowing ShadowDDNL
[ 6237.075] winDetectSupportedEngines - Returning, supported engines 0000001f
[ 6237.075] winSetEngine - Using Shadow DirectDraw NonLocking
[ 6237.075] winScreenInit - Using Windows display depth of 32 bits per pixel
[ 6237.294] winFinishScreenInitFB - Masks: 00ff0000 0000ff00 000000ff
[ 6237.309] MIT-SHM extension disabled due to lack of kernel support
[ 6237.309] XFree86-Bigfont extension local-client optimization disabled due to lack of shared memory support in the kernel
[ 6237.325] (EE) AIGLX: No native OpenGL in modes with a root window
[ 6237.528] (II) AIGLX: enabled GLX_EXT_texture_from_pixmap
[ 6237.528] (II) AIGLX: Loaded and initialized swrast
[ 6237.528] (II) GLX: Initialized DRISWRAST GL provider for screen 0
[ 6238.136] (EE) Couldn't open compiled keymap file /var/lib/xkb/server-0.xkm
[ 6238.136] (EE) XKB: Failed to load keymap. Loading default keymap instead.
[ 6238.261] (EE) Couldn't open compiled keymap file /var/lib/xkb/server-0.xkm
[ 6238.261] XKB: Failed to compile keymap
[ 6238.261] Keyboard initialization failed. This could be a missing or incorrect setup of xkeyboard-config.
[ 6238.261] (EE) Fatal server error: (EE) Failed to activate core devices.(EE)
[ 6238.261] (EE) Server terminated with error (1). Closing log file.
I was looking for a solution over the internet, not found anything - I do not know what the problem is (in fact I do not know for what to search).
any suggestions.
Regards!
For me the suggestions outlined here: http://x.cygwin.com/docs/faq/cygwin-x-faq.html#q-failed-to-compile-keymap didn't work, but after I uninstalled a proxying program called "Hide My Ip" it worked.