Bug 15468 - 5RC: Gnome Live install "Oops something has gone wrong" ("Gjs-WARNING **: JS ERROR: Error: Argument 'string' (type utf8) may not be null")
Summary: 5RC: Gnome Live install "Oops something has gone wrong" ("Gjs-WARNING **: JS ...
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: Release (media or process) (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: release_blocker critical
Target Milestone: ---
Assignee: Thomas Backlund
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 14069
  Show dependency treegraph
 
Reported: 2015-03-10 17:40 CET by claire robinson
Modified: 2015-04-07 10:21 CEST (History)
7 users (show)

See Also:
Source RPM: systemd
CVE:
Status comment:


Attachments
journal.txt (292.69 KB, text/plain)
2015-03-10 17:45 CET, claire robinson
Details
journal-gnome-install.txt (577.45 KB, text/plain)
2015-03-30 14:45 CEST, claire robinson
Details

Description claire robinson 2015-03-10 17:40:07 CET
Installed from 5RC gnome livecd first round 

OK in live mode.

After finish-install it drops to the "Oops something has gone wrong" fail whale.

No mouse cursor and pressign enter drops to a blank screen. ctrl-alt-backspace to restart X doesn't help and neither does restarting prefdm service.



Reproducible: 

Steps to Reproduce:
Comment 1 claire robinson 2015-03-10 17:45:50 CET
Created attachment 6032 [details]
journal.txt
Comment 2 claire robinson 2015-03-10 17:46:51 CET
Lots of errors in the journal.

eg.

gnome-session ** Message: Execution of main.js threw exception JS_EvaluateScript() failed

Unrecoverable failure in required component gnome-shell.desktop
claire robinson 2015-03-10 18:29:29 CET

Priority: Normal => release_blocker

claire robinson 2015-03-10 18:29:54 CET

Blocks: (none) => 14069

Comment 3 claire robinson 2015-03-10 18:35:55 CET
LiveDVD 32 fails in the same way. Testing LiveDVD 64 next.
Comment 4 claire robinson 2015-03-10 19:01:45 CET
LiveDVD 64 is the same.
Thierry Vignaud 2015-03-16 12:15:28 CET

CC: (none) => olav, thierry.vignaud
Summary: 5RC: Gnome Live install "Oops something has gone wrong" => 5RC: Gnome Live install "Oops something has gone wrong" ("Gjs-WARNING **: JS ERROR: Error: Argument 'string' (type utf8) may not be null")
Source RPM: (none) => gnome-shell?

Thierry Vignaud 2015-03-16 12:15:38 CET

Hardware: i586 => All

Comment 5 claire robinson 2015-03-16 16:50:05 CET
Valid for 2nd build also (DATE: Mon Mar 16 00:30:00 CET 2015)
Comment 6 William Kenney 2015-03-17 16:11:51 CET
Confirm same here in Vbox:
Mageia-5-RC-LiveCD-GNOME-en-i586-CD.iso
Mon Mar 16 00:30:00 CET 2015
md5sum: b4499ef32717b45d7f1a8ffba3157ded

CC: (none) => wilcal.int

Comment 7 Olav Vitters 2015-03-18 16:14:54 CET
From the log:
Mar 10 16:31:29 localhost gnome-session[3079]: gnome-session[3079]: WARNING: Could not get session id for session. Check that logind is properly installed and pam_systemd is getting used at login.
Mar 10 16:31:29 localhost gnome-session[3079]: WARNING: Could not get session id for session. Check that logind is properly installed and pam_systemd is getting used at login.

Could someone from QA please check what the following environment variable shows:
  XDG_SESSION_ID

I'm guessing it is either not set or empty, as the crash occurs near the following from misc/loginManager.js:
> GLib.getenv('XDG_SESSION_ID')

if that's empty, it probably turns to null, leading to the eventual crash and error message.

Colin: Any idea how this could be empty? No recent GDM changes AFAIK.

CC: (none) => mageia
Source RPM: gnome-shell? => systemd

Comment 8 claire robinson 2015-03-18 19:50:49 CET
Not sure how to do that for the active session after it crashes Olav. 

I suspect a tty might not give relevant information?
Comment 9 Olav Vitters 2015-03-19 13:32:57 CET
Oh right, I forgot the session is gone! It's still possible, but bit difficult.

Please follow below steps:
- Make it crash
- Leave the crash dialog!! (IIRC this ensures gnome-shell is still running)
- Get the PID numbers for gnome-session, gnome-settings-daemon, gnome-shell (see #1)
- Determine per PID number what XDG_SESSION_ID is set to (see #2)
- Write down per process what XDG_SESSION_ID is set to (also in case you get nothing)

All the processes should have XDG_SESSION_ID set.



1. Getting the PID numbers

Please run:
  ps x | grep gnome-shell

and use this to determine the PIDs for gnome-session, gnome-settings-daemon, gnome-shell. The PID is the first number on that line. Ignore any line with grep it in.

2. Determining the environment of those PIDs

Now for each of the PIDs (numbers) found above, run:
  tr '\0' '\n' < /proc/2104/environ | grep ^XDG_SESSION_ID

replace 2104 with the numbers in step #1
Comment 10 Olav Vitters 2015-03-19 13:33:45 CET
PS: With "leave the crash dialog" I mean leave it visible. Do not click ok or anything. Just go to a tty.
Comment 11 claire robinson 2015-03-19 16:48:07 CET
Thanks Olav, that's a useful tip.

gnome-shell is not running, having already crashed I guess.

gnome-session and gnome-settings-daemon do not have that env set.

Using grep ^XDG instead gets..

gnome-session:

XDG_CONFIG_DIRS=/etc/xdg:/etc/xdg/gnome
XDG_SEAT=seat0
XDG_SESSION_DESKTOP=02GNOME

gnome-settings-daemon and gnome-session-failed both:

XDG_MENU_PREFIX=gnome-
XDG_CONFIG_DIRS=/etc/xdg:/etc/xdg/gnome
XDG_SEAT=seat0
XDGSESSION_DESKTOP=02GNOME
XDG_CURRENT_DESKTOP=GNOME
Comment 12 claire robinson 2015-03-19 16:49:12 CET
Oops typo there, it should say

XDG_SESSION_DESKTOP=02GNOME
Comment 13 claire robinson 2015-03-19 17:20:36 CET
After rebooting again Gnome starts OK, so this is probably a duplicate.
Comment 14 claire robinson 2015-03-19 17:26:57 CET
Other bug is 13687, I'll let others decide whether/which to close.
Comment 15 Rémi Verschelde 2015-03-20 00:51:23 CET
Please see bug 13687 comment 30 and later for additional information about this issue.

CC: (none) => remi

Comment 16 claire robinson 2015-03-30 14:38:21 CEST
Valid round 4 live isos

ISO:  Mageia-5-RC-LiveCD-GNOME-en-i586-CD.iso
DATE: Thu Mar 26 09:30:00 CET 2015
MD5:  OK     SHA1: OK


I'll attach an up to date journal taken from the installed system.
Comment 17 claire robinson 2015-03-30 14:45:12 CEST
Created attachment 6160 [details]
journal-gnome-install.txt

Could this issue be related to the previous l10n fix.

One thing I noticed in the journal when logging out using the button on the "Oops" screen and switching TTY's to grab a log..

[gdm-autologin][2096]: pam_systemd(gdm-autologin:session): Failed to create session: VT number out of range

There is also an X failure message displayed briefly when shutting down.

Not sure if it help diagnose but thought it worth mentioning.
Comment 18 Anne Nicolas 2015-04-05 23:08:13 CEST
Should be fixed in last set of isos. Can you please confirm and close this bug?

CC: (none) => ennael1

Comment 19 Anne Nicolas 2015-04-06 22:54:50 CEST
tmb "big hammer" fix has done it

Status: NEW => RESOLVED
Resolution: (none) => FIXED

Comment 20 claire robinson 2015-04-07 10:21:31 CEST
Yes confirmed fixed with the nuclear option in reply to tmb on qa-d.

Note You need to log in before you can comment on or make changes to this bug.