KDE- Ubiquity crashed when selecting WiFi network

Bug #1912327 reported by Leó Kolbeinsson
32
This bug affects 3 people
Affects Status Importance Assigned to Milestone
ubiquity (Ubuntu)
Fix Released
Critical
Unassigned
Hirsute
Fix Released
Critical
Unassigned

Bug Description

Installing ISO daily 20210119 Kubuntu Hirsute on Lenovo V14 IIL running in UEFI + secure boot mode.

Ubiquity crashed when selecting WiFi network during the install. The error message Installer crashed appeared when I attempted to select the WiFi network.

Booted up the image and clicked on the "Install Kubuntu" button.

The installer started as normal - I then selected the correct keyboard layout and progressed onto the Wireless screen- selected connect to this network - and selected my wireless and the installer crashed with the failure message.

I will upload screenshot via another computer after filing this bug.

WORKAROUND:

- At boot select the option to 'Try' Kubuntu and progress to the full live desktop session.
- Use the network management system tray applet to connect to wifi.
- Start the installer via the desktop icon or main menu entry.

Crash details:

Exception in KDE frontend (invoking crash handler):
Traceback (most recent call last):
  File "/usr/lib/ubiquity/ubiquity/frontend/kde_components/nmwidgets.py", line 452, in _on_current_changed
    passphrase = self.view.get_cached_passphrase()
  File "/usr/lib/ubiquity/ubiquity/frontend/kde_components/nmwidgets.py", line 289, in get_cached_passphrase
    return self.wifi_model.passphrases_cache.get(ssid, '')
TypeError: unhashable type: 'QVariant'

ProblemType: Bug
DistroRelease: Ubuntu 21.04
Package: ubiquity 21.04.4
ProcVersionSignature: Ubuntu 5.8.0-36.40+21.04.1-generic 5.8.18
Uname: Linux 5.8.0-36-generic x86_64
ApportVersion: 2.20.11-0ubuntu55
Architecture: amd64
CasperMD5CheckResult: pass
CasperVersion: 1.456
CurrentDesktop: KDE
Date: Tue Jan 19 10:46:34 2021
InstallCmdLine: BOOT_IMAGE=/casper/vmlinuz file=/cdrom/preseed/kubuntu.seed maybe-ubiquity quiet splash ---
LiveMediaBuild: Kubuntu 21.04 "Hirsute Hippo" - Alpha amd64 (20210119)
ProcEnviron:
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=C.UTF-8
 SHELL=/bin/bash
SourcePackage: ubiquity
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Leó Kolbeinsson (leok) wrote :
Revision history for this message
Leó Kolbeinsson (leok) wrote :

Attached is screenshot of the error message received during install.

Revision history for this message
Ubuntu QA Website (ubuntuqa) wrote :

This bug has been reported on the Ubuntu ISO testing tracker.

A list of all reports related to this bug can be found here:
http://iso.qa.ubuntu.com/qatracker/reports/bugs/1912327

tags: added: iso-testing
Leó Kolbeinsson (leok)
description: updated
description: updated
Revision history for this message
Leó Kolbeinsson (leok) wrote :

I ran several further tests on the same ISO as in the original report.

This time on a different machine but also with UEFI+secure boot mode.

1. Installing from the"Install Kubuntu " button - fails when selecting WiFi network
2. rebooting and selecting "Try Kubuntu" and then installing from the desktop icon - again fails
3. rebooting and selecting "Try Kubuntu" and the selecting the WiFi connection BEFORE installing from the desktop icon - success.

My test reports are on the QA website : http://iso.qa.ubuntu.com/qatracker/milestones/419/builds/225657/testcases/1300/results

Revision history for this message
Leó Kolbeinsson (leok) wrote :

One final test (19012021) - this time with ethernet connection on the Acer Aspire E3 -111 machine-
no error encountered.

Revision history for this message
Leó Kolbeinsson (leok) wrote :

Testing Kubuntu Hirsute daily 20210213 -
http://cdimage.ubuntu.com/kubuntu/daily-live/20210213/hirsute-desktop-amd64.iso

Installing from the"Install Kubuntu " button - fails when selecting WiFi network as in original report.

My test reports on the QA website : http://iso.qa.ubuntu.com/qatracker/milestones/419/builds/226763/testcases/1300/results

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ubiquity (Ubuntu):
status: New → Confirmed
Revision history for this message
Rik Mills (rikmills) wrote :

From IRC:

[15:37]<mitya57> RikMills: looks like ssid should be converted from a QVariant to string before using it as a dictionary key.
[15:38]<mitya57> So something like "ssid = ssid.toString()" should fix it, but maybe similar changes are needed in other parts of the code.
[15:45]<RikMills> ssid = index.data(QtNetworkStore.SsidRole)
[15:46]<RikMills> that occurs in 2 definitions, so I guess yes
[15:46]<mitya57> Maybe just appending .toString() in both definitions will be enough

Changed in ubiquity (Ubuntu):
importance: Undecided → High
Rik Mills (rikmills)
Changed in ubiquity (Ubuntu Hirsute):
importance: High → Critical
Rik Mills (rikmills)
Changed in ubiquity (Ubuntu Hirsute):
milestone: none → ubuntu-21.04
Rik Mills (rikmills)
description: updated
Rik Mills (rikmills)
description: updated
Rik Mills (rikmills)
tags: added: rls-hh-incoming
summary: - Ubiquity crashed when selecting WiFi network
+ KDE- Ubiquity crashed when selecting WiFi network
tags: added: fr-1258
tags: removed: fr-1258 rls-hh-incoming
Revision history for this message
Leó Kolbeinsson (leok) wrote :

Testing Kubuntu Hirsute daily 20210409 -

Lenovo X230i i3-3120M,8GB,Intel HD graphics,WiFi,Ethernet,Bluetooth,320GB hd
Testcase:UEFI+secure boot - selected "Try Kubuntu" after entering desktop - connected the WiFi network - ran the installer and when I got to the network selection the installer crashed.

Revision history for this message
Rik Mills (rikmills) wrote :

This is a release blocker for Kubuntu 21.04

Revision history for this message
Brian Murray (brian-murray) wrote :

I was able to recreate this crash but had to be disconnected from the WiFi network so that the wireless page would appear in ubiquity-kde.

Revision history for this message
Łukasz Zemczak (sil2100) wrote :

Okay, looking at the bug and Brian's confirmation, with my release hat on this feels less and less like a blocker. I'll leave it for Kubuntu to decide for their flavor, but since this only happens on the live session and has a very easy workaround that we can document in the release notes - I think that it's not ideal but worst case we could just release-note it.

Rik Mills (rikmills)
Changed in ubiquity (Ubuntu Hirsute):
status: Confirmed → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubiquity - 21.04.17

---------------
ubiquity (21.04.17) hirsute; urgency=medium

  [ Rik Mills ]
  * Remove autoconversion = False setting for qvariant in the KDE frontend.
    Fixes LP: #1912327 and LP: #1916331.

 -- Łukasz 'sil2100' Zemczak <email address hidden> Fri, 16 Apr 2021 16:25:59 +0200

Changed in ubiquity (Ubuntu Hirsute):
status: Fix Committed → Fix Released
Revision history for this message
Darin Miller (darinmiller) wrote :

Fix verified on Dell laptop.

Thanks!

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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