Bug 19014 - drakboot crashed ("undefined value for mandatory argument 'text' encountered at ugtk3.pm"
Summary: drakboot crashed ("undefined value for mandatory argument 'text' encountered ...
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: x86_64 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Thierry Vignaud
QA Contact:
URL:
Whiteboard:
Keywords: 6sta2
Depends on:
Blocks: 11778
  Show dependency treegraph
 
Reported: 2016-07-21 20:32 CEST by Bit Twister
Modified: 2017-10-05 16:27 CEST (History)
1 user (show)

See Also:
Source RPM: drakxtools-17.80-1.mga6.src.rpm
CVE:
Status comment:


Attachments

Description Bit Twister 2016-07-21 20:32:35 CEST
The "drakboot" program crashed. Drakbug-17.52 caught it.

Trying to change grub2 GUI to grub2 text menu.


undefined value for mandatory argument 'text' encountered at /usr/lib/libDrakX/ugtk3.pm line 1430.
	...propagated at /usr/libexec/drakboot line 49.
Perl's trace:
drakbug::bug_handler() called from /usr/libexec/drakboot:49

Theme name: Adwaita
Kernel version = 4.7.0-desktop-0.rc7.6.mga6
Distribution=Mageia release 6 (Cauldron) for x86_64
CPU=AMD Athlon(tm) II X4 635 Processor

This is a clean network install+updates with Breeze as the theme. Not Adwaita.
David Walser 2016-07-22 16:15:42 CEST

Assignee: bugsquad => thierry.vignaud

Thierry Vignaud 2016-07-24 15:47:23 CEST

Blocks: (none) => 11778
Summary: 6_s1: drakboot crashed => 6_s1: drakboot crashed ("undefined value for mandatory argument 'text' encountered at ugtk3.pm line 1430"

Comment 1 Thierry Vignaud 2016-08-01 17:24:10 CEST
I don't think this one is possible on new install since http://gitweb.mageia.org/software/drakx/commit/perl-install/bootloader.pm?id=fbc399721879746f2cc69208dba3a42b290b0a7d. 

Feel free to prove me wrong and to reopen if still possible.

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

Comment 2 Bit Twister 2016-08-01 20:38:05 CEST
The "drakboot" program has crashed with the following error:

  undefined value for mandatory argument 'text' encountered at /usr/lib/libDrakX/ugtk3.pm line 1430.
  	...propagated at /usr/libexec/drakboot line 49.
  Perl's trace:
  drakbug::bug_handler() called from /usr/libexec/drakboot:49

Used theme: Adwaita

To submit a bug report, click on the report button.  
This will open a web browser window on Bugzilla where you'll find a form to fill in.  The information displayed above will be transferred to that server
Things useful to attach to your report are the output of the following commands: 'lspcidrake -v', 'blkid'.
You should also attach the following files: /etc/modprobe.conf, /etc/fstab, /boot/grub/menu.lst, /boot/grub/devices.map as well as /etc/lilo.conf.

Test procedure:
mcc->Boot->Set up boot system 
change from grub gui to grub text menu

Status: RESOLVED => REOPENED
Resolution: OLD => (none)
Source RPM: drakxtools-17.52-1.mga6 => drakxtools-17.53-1.mga6.src.rpm

Comment 3 Thierry Vignaud 2016-08-02 05:51:20 CEST
You should not use -configure but use XFdrake and manually pick the amdgpu driver
Comment 4 Bit Twister 2016-08-02 15:02:58 CEST
(In reply to Thierry Vignaud from comment #3)
> You should not use -configure but use XFdrake and manually pick the amdgpu
> driver

I have no clue as to what you are talking about.

Video hardware/driver was already configured for my video card and system has all updates and rebooted.

All I did was attempt to change grub2 from a gui menu to a text menu in mcc.

If it matters.
$ cat /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT=" noiswmd"
GRUB_CMDLINE_LINUX="ipv6.disable=1 audit=0 795"
GRUB_DEFAULT="saved"
GRUB_DISABLE_OS_PROBER=false
GRUB_DISABLE_RECOVERY=false
GRUB_DISABLE_SUBMENU=n
GRUB_DISTRIBUTOR=Mageia
GRUB_ENABLE_CRYPTODISK=y
GRUB_GFXMODE="1280x1024x24"
GRUB_GFXPAYLOAD_LINUX=text
GRUB_SAVEDEFAULT="false"
GRUB_TERMINAL_OUTPUT=gfxterm
GRUB_THEME=/boot/grub2/themes/maggy/theme.txt
Comment 5 Charles Edwards 2016-08-02 15:36:35 CEST
(In reply to Bit Twister from comment #4)
> (In reply to Thierry Vignaud from comment #3)
> > You should not use -configure but use XFdrake and manually pick the amdgpu
> > driver
> 
> I have no clue as to what you are talking about.
> 
> Video hardware/driver was already configured for my video card and system
> has all updates and rebooted.
> 
> All I did was attempt to change grub2 from a gui menu to a text menu in mcc.
> 
> If it matters.
> $ cat /etc/default/grub
> GRUB_CMDLINE_LINUX_DEFAULT=" noiswmd"
> GRUB_CMDLINE_LINUX="ipv6.disable=1 audit=0 795"
> GRUB_DEFAULT="saved"
> GRUB_DISABLE_OS_PROBER=false
> GRUB_DISABLE_RECOVERY=false
> GRUB_DISABLE_SUBMENU=n
> GRUB_DISTRIBUTOR=Mageia
> GRUB_ENABLE_CRYPTODISK=y
> GRUB_GFXMODE="1280x1024x24"
> GRUB_GFXPAYLOAD_LINUX=text
> GRUB_SAVEDEFAULT="false"
> GRUB_TERMINAL_OUTPUT=gfxterm
> GRUB_THEME=/boot/grub2/themes/maggy/theme.txt

For the grub2 menu in text mode you need to use

GRUB_TERMINAL_OUTPUT=console

Warning, this will really make it text mode, black background with only text menu entries.

CC: (none) => cae

Comment 6 Thierry Vignaud 2016-08-02 15:40:22 CEST
That won't help tracking the issue here.
Comment 7 Bit Twister 2017-01-24 12:22:00 CET
  undefined value for mandatory argument 'text' encountered at /usr/lib/libDrakX/ugtk3.pm line 1428.
  	...propagated at /usr/libexec/drakboot line 49.
  Perl's trace:
  drakbug::bug_handler() called from /usr/libexec/drakboot:49

Status comment: (none) => 6_s2
Summary: 6_s1: drakboot crashed ("undefined value for mandatory argument 'text' encountered at ugtk3.pm line 1430" => drakboot crashed ("undefined value for mandatory argument 'text' encountered at ugtk3.pm"
Source RPM: drakxtools-17.53-1.mga6.src.rpm => drakxtools-17.71-1.mga6.x86_64.src.rpm

Comment 8 Thierry Vignaud 2017-01-24 14:06:28 CET
What's version of drakxtools you were using?
Comment 9 Bit Twister 2017-01-24 14:11:52 CET
(In reply to Thierry Vignaud from comment #8)
> What's version of drakxtools you were using?

Same version as in the Source RPM: field.

$ get_src_rpm /usr/lib/libDrakX/ugtk3.pm

      Installed rpm : drakxtools-17.71-1.mga6
      Source rpm    : drakxtools-17.71-1.mga6.src.rpm
      Information   : http://mageia.org/
Comment 10 Barry Jackson 2017-01-24 14:19:32 CET
Slightly /OT
Simply commenting GRUB_THEME=/boot/grub2/themes/maggy/theme.txt in /etc/default/grub followed by update-grub2 would switch menu to text.
Un-installing the grub2-mageia-theme package followed by update-grub2 would also switch to text menu.
Just FYI - does not affect this bug.
Bit Twister 2017-01-30 16:12:12 CET

Source RPM: drakxtools-17.71-1.mga6.x86_64.src.rpm => drakxtools-17.71-2.mga6.src.rpm

Bit Twister 2017-01-31 18:31:40 CET

Keywords: (none) => 6sta2
Status comment: 6_s2 => (none)

Bit Twister 2017-03-04 23:19:08 CET

Source RPM: drakxtools-17.71-2.mga6.src.rpm => drakxtools-17.72-1.mga6.src.rpm

Bit Twister 2017-03-08 12:46:37 CET

Source RPM: drakxtools-17.72-1.mga6.src.rpm => drakxtools-17.73-1.mga6.src.rpm

Comment 11 Bit Twister 2017-04-06 00:42:47 CEST
Steps to reproduce is easy
mcc->Boot->Set up boot system

then just click  ok/next/continue for whatever on each screen that comes up.

Source RPM: drakxtools-17.73-1.mga6.src.rpm => drakxtools-17.77-1.mga6.src.rpm

Bit Twister 2017-05-03 14:00:21 CEST

Source RPM: drakxtools-17.77-1.mga6.src.rpm => drakxtools-17.79-1.mga6.src.rpm

Bit Twister 2017-05-04 07:43:40 CEST

Source RPM: drakxtools-17.79-1.mga6.src.rpm => drakxtools-17.80-1.mga6.src.rpm

Comment 12 Mageia Robot 2017-09-18 15:23:39 CEST
commit 1941fa3c6e9a68a1004c92f42493508bb46a32b5
Author: Thierry Vignaud <thierry.vignaud@...>
Date:   Mon Sep 18 15:04:52 2017 +0200

    read_grub2: fix undefined labels (mga#19014)
    
    we were wrongly assuming we entered a new entry when reading eg:
    "${xen_rm_opts}"
    (which is why most people never see that error and why I wasn't able to
    reproduce it, one would need Xen or similar to be installed)
    Then drakboot would crash with:
    drakboot crashed ("undefined value for mandatory argument 'text' encountered at ugtk3.pm"
    
    Theorically, it could happen with DrakX too when updating a system with Xen.
---
 Commit Link:
   http://gitweb.mageia.org/software/drakx/commit/?id=1941fa3c6e9a68a1004c92f42493508bb46a32b5
Comment 13 Mageia Robot 2017-09-18 15:25:07 CEST
commit 963ce2cca0b4bc4ac2fd64209c79e61f3c136d4b
Author: Thierry Vignaud <thierry.vignaud@...>
Date:   Mon Sep 18 15:04:52 2017 +0200

    read_grub2: fix undefined labels (mga#19014)
    
    we were wrongly assuming we entered a new entry when reading eg:
    "${xen_rm_opts}"
    (which is why most people never see that error and why I wasn't able to
    reproduce it, one would need Xen or similar to be installed)
    Then drakboot would crash with:
    drakboot crashed ("undefined value for mandatory argument 'text' encountered at ugtk3.pm"
    
    Theorically, it could happen with DrakX too when updating a system with Xen.
    
    (cherry picked from commit 1941fa3c6e9a68a1004c92f42493508bb46a32b5)
---
 Commit Link:
   http://gitweb.mageia.org/software/drakx/commit/?id=963ce2cca0b4bc4ac2fd64209c79e61f3c136d4b
Comment 14 Thierry Vignaud 2017-09-18 15:30:29 CEST
Fixed in git, pkgs uploaded

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

Marja Van Waes 2017-10-05 16:27:58 CEST

See Also: (none) => https://bugs.mageia.org/show_bug.cgi?id=21797


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