exception '9Exception' with message 'Assertion script !=nullptr' failed. Function: appendRuleToView in /build/grub-customizer-8aSQUM/grub-customizer-5.0.7/scr/main../Controller/MainController.hpp:1026

Bug #1763986 reported by Retro Helix
24
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Grub Customizer
New
Undecided
Unassigned

Bug Description

The following error occurs when starting the application:

exception '9Exception' with message 'Assertion script !=nullptr' failed. Function: appendRuleToView in /build/grub-customizer-8aSQUM/grub-customizer-5.0.7/scr/main../Controller/MainController.hpp:1026

I got this error after upgrading Ubuntu to 17.10.

Tags: 9exception
Revision history for this message
Retro Helix (retrorelix) wrote :
Revision history for this message
Retro Helix (retrorelix) wrote :

Bug is still present in 5.0.8.

Revision history for this message
jean-christophe manciot (manciot-jeanchristophe) wrote :

I have also experienced the same issue on Ubuntu cosmic 18.10 with Grub Customizer 5.0.8.
I have attached a screenshot.

Revision history for this message
jean-christophe manciot (manciot-jeanchristophe) wrote :

I have to add that this issue came up only after upgrading to linux 4.18.0-8.
GC was doing relatively fine before that upgrade.

Revision history for this message
jean-christophe manciot (manciot-jeanchristophe) wrote :

A workaround is to:
- remove all *_proxy scripts found in /etc/grub.d (or at least their 'x' bit)
- update-grub

The issue is then gone.

Revision history for this message
riyasmp (riyasmp) wrote :

Hi

I just installed grub-customizer on pop-os 20.04. Getting an error message "grub cfg dir not found". PLease see the attachment

Revision history for this message
riyasmp (riyasmp) wrote :

Also please fidn the initial dialogue box that appears when I try to open grub customizer after installation.

Revision history for this message
riyasmp (riyasmp) wrote :

Sorry forgot to give you the information regarding my booting partitions. I have a triple boot including windows 10, Manjaro and ubuntu 20.04. Manjaro was the last one to install.

Revision history for this message
Ryan (someonewhoishere) wrote :

Hey @Daniel

Getting this same message, though slightly different path

"

please Inform the author about this problem. The Following information could be helpful:

exception '9Exception'
 with message 'Assertion 'script != nullptr' failed. Function: appendRuleToView'

in /build/grub-customizer/src/grub-customizer-5.1.0/src/main/../Controller/MainController.hpp:1036

"

With the UI it states "Script updates found. Click save to apply the changes"!

Something is broke for sure :(

Revision history for this message
Daniel Richter (danielrichter2007) wrote :

There may be something wrong with /etc/grub.d/.script_sources.txt
Try to remove references that are not existing at /etc/grub.d

You could even delete the whole file, but then clean up old copies of script manually (for example of there's an 10_linux (added from the system upgrade), you can delete proxifiedScripts/linux and 10_linux-proxy. This is neccessary to avoid duplicates.

I hope this tip helps so you don't have to wait for an update.

Revision history for this message
Kostas Sfirakis (kostassfirakis) wrote :

Yeap the issue is still present on version 5.2.1 and it happened to me after kde neon distro upgrade, also there are duplicated entries on grub.

I got exception '9Exception'
with message 'Assertion `script != nullptr' failed. Function: appendRuleToView' in /build/grub-customizer-VULDrI/grub-customizer-5.2.1/src/maim/../ Controller/MainController.hpp:1036

All references in /etc/grub.d/.script_sources.txt exist in /etc/grub.d

.script_sources.txt contains

"current_name";"default_name"
"proxifiedScripts/linux";"10_linux"
"21_memtest86+";"20_memtest86+"
"proxifiedScripts/os-prober";"30_os-prober"
"proxifiedScripts/uefi-firmware";"30_uefi-firmware"

and in /etc/grub.d there are these files

00_header 20_linux_xen 30_os-prober_proxy 40_custom proxifiedScripts
05_debian_theme 20_memtest86+ 30_uefi-firmware 41_custom README
10_linux 21_memtest86+ 33_linux_proxy
10_linux_zfs 30_os-prober 35_fwupd

what should I check for the duplicates and what should I do about the 9Exception?

Revision history for this message
Daniel Richter (danielrichter2007) wrote :

That looks ok. Even if the files are missing, grub customizer can handle that. So I don't know, what's happening there.

Create a backup please and then remove these files step by step and tell which removal was required to fix the problem (with some file content):
- /etc/grub.d/.script_sources.txt
- /etc/grub.d/30_os-prober_proxy
- /etc/grub.d/33_linux_proxy
- /etc/grub.d/21_memtest86+
- /etc/grub.d/proxifiedScripts

Revision history for this message
Kostas Sfirakis (kostassfirakis) wrote :

Hello! Sorry for late reply but I fixed the issue by deleting some files. There definitely where something like duplicate files or extension files but I don't remember which exactly... I found a backup I had made and the current files I got now

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.