Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 400655 - gnome-extra/cinnamon-1.1.13 not starting - "TypeError: root is null"
Summary: gnome-extra/cinnamon-1.1.13 not starting - "TypeError: root is null"
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-25 00:35 UTC by René Marten
Modified: 2012-01-30 11:47 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description René Marten 2012-01-25 00:35:23 UTC
I noticed that cinnamon couldn't be launched from gdm or xdm so I tried to start it via .xinitrc.

That doesn't work too, it thows the following error:



Fensterverwalter-Warnung:Log level 16: Failed to load apps: Failed to look up menu_file for "applications.menu"

    JS ERROR: !!!   WARNING: 'anonymous function does not always return a value'
    JS ERROR: !!!   WARNING: file '/usr/share/cinnamon/js/ui/panelLaunchers.js' line 224 exception 0 number 157
Fensterverwalter-Warnung:Log level 8: gmenu_tree_get_root_directory: assertion `tree->loaded' failed
    JS ERROR: !!!   Exception was: TypeError: root is null
    JS ERROR: !!!     lineNumber = '594'
    JS ERROR: !!!     fileName = '"/usr/share/cinnamon/js/ui/menu.js"'
    JS ERROR: !!!     stack = '"()@/usr/share/cinnamon/js/ui/menu.js:594
()@/usr/share/cinnamon/js/ui/menu.js:791
()@/usr/share/cinnamon/js/ui/menu.js:441
ApplicationsButton()@/usr/share/cinnamon/js/ui/menu.js:391
()@/usr/share/cinnamon/js/ui/panel.js:955
Panel()@/usr/share/cinnamon/js/ui/panel.js:896
start()@/usr/share/cinnamon/js/ui/main.js:219
@<main>:1
"'
    JS ERROR: !!!     message = '"root is null"'
Fensterverwalter-Warnung:Log level 32: Execution of main.js threw exception: TypeError: root is null



Steps to reproduce:

1. emerge cinnamon
2. start it via loginmanager or .xinitrc


Output of emerge --info

Portage 2.1.10.44 (default/linux/amd64/10.0, gcc-4.5.3, glibc-2.14.1-r2, 3.2.1-gentoo x86_64)
=================================================================
System uname: Linux-3.2.1-gentoo-x86_64-Intel-R-_Core-TM-_i3_CPU_540_@_3.07GHz-with-gentoo-2.1
Timestamp of tree: Tue, 24 Jan 2012 23:45:01 +0000
app-shells/bash:          4.2_p20
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.5.4-r4, 2.6.7-r2, 2.7.2-r3, 3.1.4-r3, 3.2.2
dev-util/cmake:           2.8.7-r1
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.8.1
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r3, 1.10.3, 1.11.2-r1
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.3.4, 4.4.6-r1, 4.5.3-r2
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.2 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r2
Repositories: gentoo x-portage x11 kde-sunset poly-c multimedia lxde kde
ACCEPT_KEYWORDS="amd64 ~x86"
ACCEPT_LICENSE="* -@EULA PUEL dlj-1.1 sun-bcla-java-vm skype-eula Nero-EULA-US AdobeFlash-10 AdobeFlash-10.1 googleearth Oracle-BCLA-JavaSE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-Os -march=core2 -mtune=core2 -fomit-frame-pointer -fexpensive-optimizations -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib64/fax /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb /var/spool/fax/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-Os -march=core2 -mtune=core2 -fomit-frame-pointer -fexpensive-optimizations -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n"
FEATURES="assume-digests binpkg-logs buildpkg ccache distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="ftp://de-mirror.org/gentoo/"
LANG="de_DE.UTF-8"
LC_ALL="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/data/portage"
PORTDIR_OVERLAY="/usr/local/portage /var/lib/layman/x11 /var/lib/layman/kde-sunset /var/lib/layman/poly-c /var/lib/layman/multimedia /var/lib/layman/lxde /var/lib/layman/kde"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="16bit 64bit 7zip X X509 Xaw3d a52 aac abiword accessibility ace acl acpi adns adplug aim aio alisp alsa amazon amd64 amr amrnb amrr amrwb animgif ao aotuv apm applet asf async audacious audiofile autoipd automount avahi awe32 bash-completion binfilter bittorrent bl bluetooth bzip2 cairo calendar capi cdaudio cdda cddax cddb cdinstall cdio cdparanoia cdr cdrkit cdrom chardet chipcard chipcard2 chm cifsupcall cjk clamav clamd cleartype cli consolekit cracklib crypt css csv ctype cue cups curl curlwrappers cursors custom-cflags custom-cpuopts custom-optimization cvs cvsgraph cxx dbus device-mapper dga dhcpcd dia dirac directfb disk-partition divx dlna dmx dnotify dpms dri drm-next dts dvb dvbplayer dvd dvdnav dvdr dvdread dvi eap-sim emoticon emovix encode erandom espeak evo exif expat extrafilters faac faad fame fat fax fbcon fbcondecor fbdev fbsplash festival ffmpeg fftw firefox3 flac flash fltk fluidsynth fmod fontconfig foomaticdb fpx freesound ftp fuse gallium gcrypt gdbm gdu geoip gif gimp glew glib glitz glsl glut gmedia gmp gnutls gocr gpac gpg gpgme gphoto2 gpm graphics graphviz grub gs gsf gsm gstreamer gtk gtk2-perl gutenprint gzip h323 hbci hddtemp howl-compat hpijs html htmltidy http hwdb hwmixer ices icon icons iconv icq icu id3 id3tag id64 image imagemagick imap imlib inkjar introspection iproute2 ipv6 isdn jabber java java6 javascript jpeg jpeg2k jpgraph kaspersky kde kernel-helper kontact ladspa lame laptop largefile lastfm lcms ldap ldap-sasl ldapi libburn libcaca libgda libnotify libpcap libsamplerate libsexy libssh2 libsysfs libv4l libv4l2 libvisual live llvm lm_sensors logrotate lzma lzo mac mad madwifi matroska mbrola md5sum mdb mdnsresponder-compat mediaplayer mem-scramble midi mikmod mime mixer mjpeg mmap mmx mmxext mng modplug modules mouse mozdom mozilla mp2 mp3 mp4 mp4live mpd mpeg mpeg2 mpi mpi_njtree mplayer mpm-prefork msn mudflap multilib multimedia multiprocess musepack music musicbrainz mysql ncurses net netpbm network networking networkmanager new-hpcups nextaw nls nptl nptlonly nsplugin nspr ntfs numa nvtv oav objc ogg ogg123 ogm openal openexr opengl openmp openssl opensslcrypt openvg optimisememory oscar oss pam pango pcap pcre pda pdf perl phonon physfs pidgin pipe pipechan plasma player plotutils plugins pmount pmu png policykit posix postscript povray ppds pppd print ps purple pythia6 q32 qt-dbus qt-webkit qt3support qt4 quicktime radio rar raw readline realmedia realtime rhythmbox romio rtc rtf rtsp samba sasl scanner schroedinger scrobbler sdk sdl sdl-image sdl-sound sdlaudio sdlcd semantic-desktop session sha512 shaders shadow shout sid silc sip skins skype slang slp smbclient smbsharemodes smime smp sms sndfile sockets sound sounds sox spamassassin speex spell sql sqlite srt srtp sse sse-filters sse2 sse3 sse4 sse4_1 ssl ssse3 startup-notification stream subtitles subversion svg svgz sysfs syslog t1lib taglib tagwriting tcpd templates tga themes theora threads tidy tiff timidity tk tls tomsfastmath toolbar tools transcode truetype tse3 tta twolame type1 udev unicode unicode3 unzip upnp urandom usb utils v4l v4l2 vaapi vala vcd vcdinfo vcdx video videos virtualbox visualization vnc vocoder voice vorbis vorbis-psy vpx wav wavpack webdav webkit wifi winetools winpopup wireshark wma wma-fixed wmf wmp wps wxwidgets wxwindows x11vnc x264 xanim xcb xcf xcomposite xext xfce xforms xfs xft xim xine xinerama xiph xml xmlreader xmlwriter xmp xorg xosd xpdf-headers xpm xprint xrandr xrender xsl xslt xterm xterm-color xulrunner xv xvid xvmc yahoo yv12 zip zlib zvbi" ALSA_CARDS="hda-intel usb-audio" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" 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 ubx" INPUT_DEVICES="evev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" SANE_BACKENDS="net v4l hp mustek_usb mustek_usb2 hp4200 canon canon630u plustek" USERLAND="GNU" VIDEO_CARDS="intel d3d v4l" 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:  CPPFLAGS, CTARGET, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Alexandre Rostovtsev (RETIRED) gentoo-dev 2012-01-25 01:22:23 UTC
(In reply to comment #0)

Cinnamon should be launchable from gdm-3.2 or any other modern *dm (but probably not xdm, which does not work well with modern desktop environments). Simply select the "Cinnamon" session instead of "Gnome".

If you want to use an .xinitrc, you cannot just run the cinnamon executable from it; several environment variables must be set and several daemons must be launched first. (This is why using a *dm is recommended: it will normally take care of all that automatically.) Perhaps the following .xinitrc might work:

DESKTOP_SESSION="cinnamon"
for f in /etc/X11/xinit/xinitrc.d/* ; do
        [ -x "$f" ] && . "$f"
done
exec ck-launch-session gnome-session --session=cinnamon
Comment 2 René Marten 2012-01-25 01:36:18 UTC
oh ok this could be the reason, I used lxdm and that doesn't work.

Then I tried the --replace option from a running gnome3 session .. 
no good idea?

I'll try to start cinnemon from gdm and though .xinitrc with the modified content.
Comment 3 René Marten 2012-01-25 01:46:44 UTC
starting cinnemon from gdm is also not possible, I always return to the login prompt (same with lxdm).
from the modified .xinitrc it works but after e fiew second I get a message that an arror has occured and I'm getting logged out.

Then I see that there are lots of failed string conversions like this one:


    JS ERROR: !!!     message = '"Failed to convert UTF-8 string to JS string: Invalid byte sequence in conversion input"'
Fensterverwalter-Warnung:Log level 32: Execution of main.js threw exception: Error: Failed to convert UTF-8 string to JS string: Invalid byte sequence in conversion input

(nm-applet:30885): libnotify-WARNING **: Failed to connect to proxy

** (nm-applet:30885): WARNING **: get_all_cb: couldn't retrieve system settings properties: (25) Launch helper exited with unknown return code 1.

** (nm-applet:30885): WARNING **: fetch_connections_done: error fetching connections: (25) Launch helper exited with unknown return code 1.

** (nm-applet:30885): WARNING **: Failed to register as an agent: (25) Launch helper exited with unknown return code 1
    JS ERROR: !!!   WARNING: 'anonymous function does not always return a value'
    JS ERROR: !!!   WARNING: file '/usr/share/cinnamon/js/ui/panelLaunchers.js' line 224 exception 0 number 157

(cinnamon:30915): Clutter-WARNING **: Attempting to add actor of type 'CinnamonGenericContainer' to a container of type 'StBoxLayout', but the actor has already a parent of type 'StBoxLayout'.

(cinnamon:30915): Clutter-WARNING **: Attempting to add actor of type 'StScrollView' to a container of type 'StBoxLayout', but the actor has already a parent of type 'StBoxLayout'.

(cinnamon:30915): Clutter-WARNING **: Attempting to add actor of type 'CinnamonGenericContainer' to a container of type 'StBoxLayout', but the actor has already a parent of type 'StBoxLayout'.

(cinnamon:30915): Clutter-WARNING **: Attempting to add actor of type 'StScrollView' to a container of type 'StBoxLayout', but the actor has already a parent of type 'StBoxLayout'.

(cinnamon:30915): Clutter-WARNING **: Attempting to add actor of type 'CinnamonGenericContainer' to a container of type 'StBoxLayout', but the actor has already a parent of type 'StBoxLayout'.

(cinnamon:30915): Clutter-WARNING **: Attempting to add actor of type 'StScrollView' to a container of type 'StBoxLayout', but the actor has already a parent of type 'StBoxLayout'.

(cinnamon:30915): Clutter-WARNING **: Attempting to add actor of type 'CinnamonGenericContainer' to a container of type 'StBoxLayout', but the actor has already a parent of type 'StBoxLayout'.

(cinnamon:30915): Clutter-WARNING **: Attempting to add actor of type 'StScrollView' to a container of type 'StBoxLayout', but the actor has already a parent of type 'StBoxLayout'.

(cinnamon:30915): Clutter-WARNING **: Attempting to add actor of type 'CinnamonGenericContainer' to a container of type 'StBoxLayout', but the actor has already a parent of type 'StBoxLayout'.

(cinnamon:30915): Clutter-WARNING **: Attempting to add actor of type 'StScrollView' to a container of type 'StBoxLayout', but the actor has already a parent of type 'StBoxLayout'.
    JS ERROR: !!!   Exception was: Error: Failed to convert UTF-8 string to JS string: Invalid byte sequence in conversion input
    JS ERROR: !!!     lineNumber = '0'
    JS ERROR: !!!     fileName = '"gjs_throw"'
    JS ERROR: !!!     stack = '"("Failed to convert UTF-8 string to JS string: Invalid byte sequence in conversion input")@gjs_throw:0
()@/usr/share/cinnamon/js/ui/status/volume.js:779
()@/usr/share/cinnamon/js/ui/status/volume.js:690
Indicator()@/usr/share/cinnamon/js/ui/status/volume.js:648
()@/usr/share/cinnamon/js/ui/panel.js:1097
start()@/usr/share/cinnamon/js/ui/main.js:231
@<main>:1
"'
    JS ERROR: !!!     message = '"Failed to convert UTF-8 string to JS string: Invalid byte sequence in conversion input"'
Fensterverwalter-Warnung:Log level 32: Execution of main.js threw exception: Error: Failed to convert UTF-8 string to JS string: Invalid byte sequence in conversion input
gnome-session[30844]: WARNING: App 'cinnamon.desktop' respawning too quickly
** (process:30872): DEBUG: Exiting gsd-printer

(process:30872): GLib-CRITICAL **: g_main_context_pop_thread_default: assertion `stack != NULL' failed

(gnome-settings-daemon:30856): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed
Comment 4 Alexandre Rostovtsev (RETIRED) gentoo-dev 2012-01-25 02:14:59 UTC
(In reply to comment #3)
> starting cinnemon from gdm is also not possible, I always return to the login
> prompt (same with lxdm).

Please attach the .xsession-errors file that results after such a failed login attempt. Note: if you log into another session from gdm after failing to log into cinnamon, you will need to attach ~/.xsession-errors.old instead.

> from the modified .xinitrc it works but after e fiew second I get a message
> that an arror has occured and I'm getting logged out.
> 
> Then I see that there are lots of failed string conversions like this one:
> 
> 
>     JS ERROR: !!!     message = '"Failed to convert UTF-8 string to JS string:
> Invalid byte sequence in conversion input"'
> Fensterverwalter-Warnung:Log level 32: Execution of main.js threw exception:
> Error: Failed to convert UTF-8 string to JS string: Invalid byte sequence in
> conversion input

Interesting. Perhaps .xinitrc is for some reason not using a unicode locale?

Try adding "export LANG=de_DE.UTF-8" (or en_US.UTF-8) to the beginning of your .xinitrc; alternatively, try to set a unicode locale systemwide using eselect locale.
Comment 5 René Marten 2012-01-25 02:36:33 UTC
that doesn't help.
It seems that some importand things couldn't be started.
Starting a second x session completly freezed my system so it's difficult to find out what things or services.

No problems with gnome3
Comment 6 René Marten 2012-01-25 02:49:10 UTC
 
another try 

....
  JS ERROR: !!!   Exception was: Error: Failed to convert UTF-8 string to JS string: Invalid byte sequence in conversion input
    JS ERROR: !!!     lineNumber = '0'
    JS ERROR: !!!     fileName = '"gjs_throw"'
    JS ERROR: !!!     stack = '"("Failed to convert UTF-8 string to JS string: Invalid byte sequence in conversion input")@gjs_throw:0
()@/usr/share/cinnamon/js/ui/status/volume.js:779
()@/usr/share/cinnamon/js/ui/status/volume.js:690
Indicator()@/usr/share/cinnamon/js/ui/status/volume.js:648
()@/usr/share/cinnamon/js/ui/panel.js:1097
start()@/usr/share/cinnamon/js/ui/main.js:231
@<main>:1
"'
    JS ERROR: !!!     message = '"Failed to convert UTF-8 string to JS string: Invalid byte sequence in conversion input"'
Fensterverwalter-Warnung:Log level 32: Execution of main.js threw exception: Error: Failed to convert UTF-8 string to JS string: Invalid byte sequence in conversion input

(nm-applet:9534): libnotify-WARNING **: Failed to connect to proxy

** (nm-applet:9534): WARNING **: get_all_cb: couldn't retrieve system settings properties: (25) Launch helper exited with unknown return code 1.

** (nm-applet:9534): WARNING **: fetch_connections_done: error fetching connections: (25) Launch helper exited with unknown return code 1.

** (nm-applet:9534): WARNING **: Failed to register as an agent: (25) Launch helper exited with unknown return code 1
    JS ERROR: !!!   WARNING: 'anonymous function does not always return a value'
    JS ERROR: !!!   WARNING: file '/usr/share/cinnamon/js/ui/panelLaunchers.js' line 224 exception 0 number 157

(cinnamon:9563): Clutter-WARNING **: Attempting to add actor of type 'CinnamonGenericContainer' to a container of type 'StBoxLayout', but the actor has already a parent of type 'StBoxLayout'.

(cinnamon:9563): Clutter-WARNING **: Attempting to add actor of type 'StScrollView' to a container of type 'StBoxLayout', but the actor has already a parent of type 'StBoxLayout'.

(cinnamon:9563): Clutter-WARNING **: Attempting to add actor of type 'CinnamonGenericContainer' to a container of type 'StBoxLayout', but the actor has already a parent of type 'StBoxLayout'.

(cinnamon:9563): Clutter-WARNING **: Attempting to add actor of type 'StScrollView' to a container of type 'StBoxLayout', but the actor has already a parent of type 'StBoxLayout'.

(cinnamon:9563): Clutter-WARNING **: Attempting to add actor of type 'CinnamonGenericContainer' to a container of type 'StBoxLayout', but the actor has already a parent of type 'StBoxLayout'.

(cinnamon:9563): Clutter-WARNING **: Attempting to add actor of type 'StScrollView' to a container of type 'StBoxLayout', but the actor has already a parent of type 'StBoxLayout'.
...

The only thing I see before the log out button appears is a blank desktop.
Comment 7 René Marten 2012-01-25 03:14:48 UTC
I clared up my gnome session but this doesn't help.

starting another x session with a different user solves the problem.
But I don't know atm which file let's cinnamon die.
Comment 8 Alexandre Rostovtsev (RETIRED) gentoo-dev 2012-01-25 08:52:45 UTC
(In reply to comment #7)
> starting another x session with a different user solves the problem.
> But I don't know atm which file let's cinnamon die.

In that case, the problem is probably that there is non-UTF-8 encoding used in one of the files in your ~/.local/share/applications or ~/.config/menus directories.
Comment 9 Alexandre Rostovtsev (RETIRED) gentoo-dev 2012-01-25 08:53:52 UTC
Also, you may want to try cinnamon-1.2 (added to portage a few minutes ago).
Comment 10 Pacho Ramos gentoo-dev 2012-01-30 11:47:18 UTC
(In reply to comment #9)
> Also, you may want to try cinnamon-1.2 (added to portage a few minutes ago).