Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
(Solved) Stellarium 0.14.0 wants root to run
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
ShadowHawkBV
Guru
Guru


Joined: 27 Mar 2004
Posts: 355

PostPosted: Mon Jan 11, 2016 4:03 pm    Post subject: (Solved) Stellarium 0.14.0 wants root to run Reply with quote

I've run into a weird issue. Stellarium seg faults unless I run it as root. Even sudo does not work.
Running it as a normal user
Quote:
$ stellarium
-------------------------------------------------------
[ This is Stellarium 0.14.0 - http://www.stellarium.org ]
[ Copyright (C) 2000-2015 Fabien Chereau et al. ]
-------------------------------------------------------
Writing log file to: "/home/user/.stellarium/log.txt"
File search paths:
0 . "/home/user/.stellarium"
1 . "/usr/share/stellarium"
Config file is: "/home/user/.stellarium/config.ini"
Segmentation fault

Running it with sudo (User is a member of wheel)
Quote:
$ sudo stellarium
Password:
No protocol specified
QXcbConnection: Could not connect to display :0
Aborted


Using gdb
Quote:
gdb stellarium
GNU gdb (Gentoo 7.10.1 vanilla) 7.10.1
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://bugs.gentoo.org/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from stellarium...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/bin/stellarium
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
[New Thread 0x7fffec016700 (LWP 3223)]
[New Thread 0x7fffea89e700 (LWP 3224)]
-------------------------------------------------------
[ This is Stellarium 0.14.0 - http://www.stellarium.org ]
[ Copyright (C) 2000-2015 Fabien Chereau et al. ]
-------------------------------------------------------
Writing log file to: "/home/user/.stellarium/log.txt"
File search paths:
0 . "/home/user/.stellarium"
1 . "/usr/share/stellarium"
Config file is: "/home/user/.stellarium/config.ini"

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7e2ae69 in QGLFormat::openGLVersionFlags() () from /usr/lib64/libQt5OpenGL.so.5


And now running it as root.
Quote:
$ su -
Password:
Computer ~ # stellarium
QProcess: Destroyed while process ("lspci") is still running.
-------------------------------------------------------
[ This is Stellarium 0.14.0 - http://www.stellarium.org ]
[ Copyright (C) 2000-2015 Fabien Chereau et al. ]
-------------------------------------------------------
Writing log file to: "/root/.stellarium/log.txt"
File search paths:
0 . "/root/.stellarium"
1 . "/usr/share/stellarium"
Config file is: "/root/.stellarium/config.ini"
Detected: OpenGL "3.3"
Driver version string: "3.3.0 NVIDIA 340.96"
GL vendor is "NVIDIA Corporation"
GL renderer is "GeForce GTX 275/PCIe/SSE2"
GL Shading Language version is "3.30 NVIDIA via Cg compiler"
GLSL Version Number detected: 3.3
GLSL version is fine, we should not see a graphics problem.
Cache directory is: "/root/.cache/stellarium/stellarium"
Sky language is "en_CA"
Application language is "en_CA"
Loading Solar System data ...
Loading star data ...
"Loading "/usr/share/stellarium/stars/default/stars_0_0v0_5.cat": 0_0v0_2; 4963"
"Loading "/usr/share/stellarium/stars/default/stars_1_0v0_5.cat": 1_0v0_2; 21598"
"Loading "/usr/share/stellarium/stars/default/stars_2_0v0_5.cat": 2_0v0_2; 150090"
"Loading "/usr/share/stellarium/stars/default/stars_3_1v0_3.cat": 3_1v0_3; 428466"
Finished loading star catalogue data, max_geodesic_level: 3
navigation/preset_sky_time is a double - treating as jday: "2451514.25001"
Reloading DSO data...
Loaded 10756 DSO records
Loading DSO name data ...
Loaded 217 / 275 DSO name records successfully
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
Loading star names from "/usr/share/stellarium/skycultures/western/star_names.fab"
Loaded 340 / 340 common star names
Loading star names from "/usr/share/stellarium/stars/default/name.fab"
Loaded 4502 / 4502 scientific star names
Loading variable stars from "/usr/share/stellarium/stars/default/gcvs_hip_part.dat"
Loaded 6916 / 6916 variable stars
Loading cross-index data from "/usr/share/stellarium/stars/default/cross-index.dat"
Loaded 108279 / 108279 cross-index data records
Loaded 88 / 88 constellation records successfully for culture "western"
Loaded 85 / 85 constellation art records successfully for culture "western"
Loaded 88 / 88 constellation names
Loading constellation boundary data ...
Loaded 782 constellation boundary segments
Initializing basic GL shaders...
Creating GUI ...
libpng warning: iCCP: known incorrect sRGB profile
Loaded plugin "Exoplanets"
Exoplanets: version of the format of the catalog: 1
Exoplanets: loading catalog file: "/root/.stellarium/modules/Exoplanets/exoplanets.json"
Loaded plugin "FOV"
Loaded plugin "MeteorShowers"
libpng warning: iCCP: known incorrect sRGB profile
MeteorShowersMgr: Loading catalog file: "/root/.stellarium/modules/MeteorShowers/showers.json"
Loaded plugin "Novae"
Novae: version of the catalog: 1
Novae: loading catalog file: "/root/.stellarium/modules/Novae/novae.json"
Loaded plugin "Oculars"
Ocular plugin - press Command-O to toggle eyepiece view mode. Press ALT-o for configuration.
Oculars::validateIniFile ocular.ini exists at: "/root/.stellarium/modules/Oculars/ocular.ini" . Checking version...
Oculars::validateIniFile found existing ini file version 3
Loaded plugin "Satellites"
Satellites: loading catalog file: "/root/.stellarium/modules/Satellites/satellites.json"
Loaded plugin "SolarSystemEditor"
Using the ssystem.ini file that already exists in the user directory...
Unable to find module called "TimeZoneConfiguration"
Loaded plugin "TimeZoneConfiguration"
Intializing planets GL shaders...
IP answer: "Location information correct here
"
Unloaded plugin "TimeZoneConfiguration"
Unloaded plugin "SolarSystemEditor"
Unloaded plugin "Satellites"
Unloaded plugin "Oculars"
Unloaded plugin "Novae"
Unloaded plugin "MeteorShowers"
Unloaded plugin "FOV"
Unloaded plugin "Exoplanets"
Downloaded 1 files (0 kbytes) in a session of 9.605 sec (average of 0 kB/s + 0 files from cache (0 kB)).


I installed it using the portage ebuild.
Quote:

ix stellarium
[I] sci-astronomy/stellarium
Available versions: 0.12.4^t 0.13.3^t 0.14.0^t ~0.14.2^t {debug nls sound stars LINGUAS="af ak am ar as ast az be bg bn bo br bs ca cs cy da de el en en_CA en_GB en_US eo es et eu fa fi fil fr ga gd gl gu he hi hr hu hy ia id is it ja ka kk kn ko ky la lb lo lt lv mk ml mn mr ms mt nan nb nl nn oc pa pl pt pt_BR ro ru se si sk sl sq sr sv sw ta te tg th tl tr tt uk uz vi zh zh_CN zh_HK zh_TW zu"}
Installed versions: 0.14.0^t(11:16:52 PM 07/01/16)(nls -debug -sound -stars LINGUAS="-af -ak -am -ar -as -ast -az -be -bg -bn -bo -br -bs -ca -cs -cy -da -de -el -en -en_CA -en_GB -en_US -eo -es -et -eu -fa -fi -fil -fr -ga -gd -gl -gu -he -hi -hr -hu -hy -ia -id -is -it -ja -ka -kk -kn -ko -ky -la -lb -lo -lt -lv -mk -ml -mn -mr -ms -mt -nan -nb -nl -nn -oc -pa -pl -pt -pt_BR -ro -ru -se -si -sk -sl -sq -sr -sv -sw -ta -te -tg -th -tl -tr -tt -uk -uz -vi -zh_CN -zh_HK -zh_TW -zu")
Homepage: http://www.stellarium.org/
Description: 3D photo-realistic skies in real time

As near as I can tell, the permissions are set correctly.
Quote:
/usr/bin $ ls -las stellarium
10840 -rwxr-xr-x 1 root root 11092312 Jan 7 23:17 stellarium


And the config folder in the user directory appears correct
Quote:

ls -las .stellarium/
total 32
0 drwxr-xr-x 2 user user 32 Jan 10 18:32 .
16 drwxr-xr-x 40 user user 8192 Jan 11 11:00 ..
12 -rw-r--r-- 1 user user 11408 Jan 10 18:32 config.ini
4 -rw-r--r-- 1 user user 1083 Jan 11 10:51 log.txt
0 -rw-r--r-- 1 user user 0 Jan 11 10:51 output.txt


Anyone have a bright or even not so bright idea what I've got misconfigured? I've recently done a complete stellarium, system, and world rebuild with no effect. (emerge -euD stellarium/system/world)

Sorry. Here is the emerge --info
Quote:
sudo emerge --info
Password:
Portage 2.2.26 (python 3.4.3-final-0, default/linux/amd64/13.0/desktop/kde, gcc-4.9.3, glibc-2.21-r1, 3.14.56-gentoo x86_64)
=================================================================
System uname: Linux-3.14.56-gentoo-x86_64-AMD_Phenom-tm-_II_X4_955_Processor-with-gentoo-2.2
KiB Mem: 16431640 total, 3274556 free
KiB Swap: 3906244 total, 3770092 free
Timestamp of repository gentoo: Mon, 11 Jan 2016 11:30:01 +0000
sh bash 4.3_p42-r1
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash: 4.3_p42-r1::gentoo
dev-java/java-config: 2.2.0::gentoo
dev-lang/perl: 5.20.2::gentoo
dev-lang/python: 2.7.10-r1::gentoo, 3.4.3-r1::gentoo
dev-util/cmake: 3.3.1-r1::gentoo
dev-util/pkgconfig: 0.28-r2::gentoo
sys-apps/baselayout: 2.2::gentoo
sys-apps/openrc: 0.18.4::gentoo
sys-apps/sandbox: 2.6-r1::gentoo
sys-devel/autoconf: 2.13::gentoo, 2.69::gentoo
sys-devel/automake: 1.11.6-r1::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils: 2.25.1-r1::gentoo
sys-devel/gcc: 4.9.3::gentoo
sys-devel/gcc-config: 1.7.3::gentoo
sys-devel/libtool: 2.4.6::gentoo
sys-devel/make: 4.1-r1::gentoo
sys-kernel/linux-headers: 3.18::gentoo (virtual/os-headers)
sys-libs/glibc: 2.21-r1::gentoo
Repositories:

gentoo
location: /usr/portage
sync-type: rsync
sync-uri: rsync://rsync.gentoo.org/gentoo-portage
priority: -1000

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=native"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.arcticnetwork.ca/ http://gentoo.gossamerhost.com http://mirror.the-best-hosting.net http://gentoo.mirrors.tera-byte.com/ http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/"
LANG="en_CA.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi alsa amd64 apm avahi berkdb bluetooth branding bzip2 cairo cdda cdinstall cdr cli consolekit cracklib crypt cups cxx dbus declarative dri dts dvd dvdr emboss encode exif fam firefox flac fortran ftp fuse gdbm gif gimp glamor gphoto2 gpm gtk gtk3 iconv ipv6 java7 jpeg jpeg2k kde kerberos kipi lcms ldap libnotify lm_sensor mad mime mmx mmxext mng modules mp3 mp4 mpeg mplayer multilib ncurses networkmanager nls nocd nptl offensive ogg opengl openmp openssl pam pango pcre pdf phonon plasma png policykit ppds pulseaudio python qt3support qt4 readline rootfs samba sdl seccomp semantic-desktop session smp spell sse sse2 ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vnc vorbis win32codecs wxwidgets x264 xattr xcb xcomposite xinerama xml xscreensaver xv xvid zlib" ABI_X86="64 32" ALSA_CARDS="AC97" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="3dnow 3dnowext mmx mmxext popcnt sse sse2 sse3 sse4a" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="mouse keyboard evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset: CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

_________________
This space for rent... Well maybe to give away.. Heck.. i'll pay you to take it.

Lost Linux Neophyte


Last edited by ShadowHawkBV on Thu Jan 14, 2016 6:46 pm; edited 1 time in total
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Mon Jan 11, 2016 5:01 pm    Post subject: Reply with quote

The log will likely be large, but you could try 'strace -e file'.
Also, what useflags are on qtopengl ?
Back to top
View user's profile Send private message
ShadowHawkBV
Guru
Guru


Joined: 27 Mar 2004
Posts: 355

PostPosted: Mon Jan 11, 2016 6:07 pm    Post subject: Reply with quote

I don't have any special flags on qtopengl so here is what eix reports.

Quote:
[I] dev-qt/qtopengl
Available versions:
(4) 4.8.6-r1 ~4.8.7
(5) 5.4.2^t ~5.5.1^t
{aqua debug egl +exceptions gles2 pch qt3support test ABI_MIPS="n32 n64 o32" ABI_PPC="32 64" ABI_S390="32 64" ABI_X86="32 64 x32"}
Installed versions: 4.8.6-r1(4)(07:33:28 PM 07/01/16)(exceptions qt3support -aqua -debug -egl -pch ABI_MIPS="-n32 -n64 -o32" ABI_PPC="-32 -64" ABI_S390="-32 -64" ABI_X86="32 64 -x32") 5.4.2(5)^t(11:05:44 PM 07/01/16)(-debug -gles2 -test)
Homepage: https://www.qt.io/
Description: OpenGL support library for the Qt5 framework (deprecated)


Trying to run strace -e file inside gdb responds with
Quote:
Reading symbols from stellarium...(no debugging symbols found)...done.
(gdb) strace -e file
Function "-e file" not defined.
Make static tracepoint pending on future shared library load? (y or [n]) y
Static tracepoint 1 (-e file) pending.


I may have run it incorrectly as I very rarely use gdb.
_________________
This space for rent... Well maybe to give away.. Heck.. i'll pay you to take it.

Lost Linux Neophyte
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Mon Jan 11, 2016 10:32 pm    Post subject: Reply with quote

No, strace is a different program (dev-util/strace), unrelated to gdb.
Back to top
View user's profile Send private message
ShadowHawkBV
Guru
Guru


Joined: 27 Mar 2004
Posts: 355

PostPosted: Mon Jan 11, 2016 11:31 pm    Post subject: Reply with quote

Here is a link to the strace. Not as large as I would have guessed.

http://pastebin.com/yVHq28kq
_________________
This space for rent... Well maybe to give away.. Heck.. i'll pay you to take it.

Lost Linux Neophyte
Back to top
View user's profile Send private message
Syl20
l33t
l33t


Joined: 04 Aug 2005
Posts: 621
Location: France

PostPosted: Tue Jan 12, 2016 9:54 am    Post subject: Reply with quote

Code:
open("/dev/nvidiactl", O_RDWR)          = -1 EACCES (Permission denied)
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0} ---
+++ killed by SIGSEGV +++
Segmentation fault

Is your user in the video group ?
Back to top
View user's profile Send private message
ShadowHawkBV
Guru
Guru


Joined: 27 Mar 2004
Posts: 355

PostPosted: Thu Jan 14, 2016 12:49 pm    Post subject: Reply with quote

The user was not. I have added the user to the video group in group and group- (Not sure how or why I have 2 group files), but I get the same error. when I try to run as the user and using sudo.

Quote:
ls -las group*
4 -rw-r--r-- 1 root root 832 Jan 14 07:44 group
4 -rw------- 1 root root 802 Dec 20 2014 group-
4 -rw------- 1 root root 819 Dec 29 2014 group.bak

_________________
This space for rent... Well maybe to give away.. Heck.. i'll pay you to take it.

Lost Linux Neophyte
Back to top
View user's profile Send private message
Syl20
l33t
l33t


Joined: 04 Aug 2005
Posts: 621
Location: France

PostPosted: Thu Jan 14, 2016 2:12 pm    Post subject: Reply with quote

ShadowHawkBV wrote:
The user was not. I have added the user to the video group in group and group- (Not sure how or why I have 2 group files)

/etc/group- could be ignored, it's a backup copy of your /etc/group file, done by the user*/group* commands. You should use the "usermod -aG <group> <user>" command (don't forget the -a switch, and, of course, read the manpage before use :wink: ) to add your user to additional groups, by the way.

Quote:
but I get the same error.

Did you log out and log in after adding your user to the video group ?

What does this say (as root) ?
Code:
# ls -l /dev/nvidia*
Back to top
View user's profile Send private message
ShadowHawkBV
Guru
Guru


Joined: 27 Mar 2004
Posts: 355

PostPosted: Thu Jan 14, 2016 6:46 pm    Post subject: Reply with quote

:oops: It seems that I am indeed an idiot. Once I added my user to the video group, logged out and back in (Helps to activate the change :oops:), I now can run stellarium with no issues.

Thank you for the help.

Though I am kind of curious when stellarium changed to need the user in the video group since this is the same set-up that I've been using for at least 4 or maybe 5 stellarium versions.
_________________
This space for rent... Well maybe to give away.. Heck.. i'll pay you to take it.

Lost Linux Neophyte
Back to top
View user's profile Send private message
Syl20
l33t
l33t


Joined: 04 Aug 2005
Posts: 621
Location: France

PostPosted: Fri Jan 15, 2016 11:32 am    Post subject: Reply with quote

You're welcome.

ShadowHawkBV wrote:
:oops: It seems that I am indeed an idiot. Once I added my user to the video group, logged out and back in (Helps to activate the change :oops:), I now can run stellarium with no issues.

Everybody does this kind of oversight one day or another. No matter.

Quote:
Though I am kind of curious when stellarium changed to need the user in the video group since this is the same set-up that I've been using for at least 4 or maybe 5 stellarium versions.

The changelog may help you. Probably a new feature using hardware acceleration, or something like that.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum