Bug 432305

Summary: Calamares crashes when using custom partitioning: LUKS + LVM
Product: [KDE Neon] neon Reporter: Jeffrey Bouter <kde>
Component: Live/Install imagesAssignee: Neon Bugs <neon-bugs>
Status: CONFIRMED ---    
Severity: crash CC: jr, lucidlytwisted, lv215bd5, mss, neon-bugs, pedroarthur.jedi, sirio81, sitter
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=474402
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: crash report (without debug symbols) of the calamares crash
Calamari crash log (without debug symbols)

Description Jeffrey Bouter 2021-01-30 09:22:30 UTC
Created attachment 135300 [details]
crash report (without debug symbols) of the calamares crash

SUMMARY

When using calamares to install KDE Neon, using custom partitioning crashes the installer. I've attempted to create all partitions beforehand, and simply use them in the installer as well - but this yields no different result.

The crash report that opens when calamares crashes, requires you to install debug symbols. This, however, never completes. When attempted to install a second time, it crashes as well.

Once Calamares has crashed once, it remains active in the background and requires a kill -9 in the terminal to be able to open the installer again.

STEPS TO REPRODUCE

1. Boot Neon live installation medium
2. Open Calamares, and navigate through until you reach the partitioning menu
3. Use "Manual Partitioning"
4. Select "New Partition Table" and use GPT
5. For the sake of this bug report, let's leave out making the system actually bootable;
6. Create a new partition, "lvm2 pv" and select "encrypt". Enter a passphrase
7. Create a "New Volume group"
8. Select "New Partition" and give your Volume Group a name.
9. Observe the crash

On the new crash report window that opens, it is asked one install the debug symbols. However, this never succeeds and extra attempts make the application crash. I do believe this is another bug report on its own.

OBSERVED RESULT

The installer crashes. A background calamares process remains active, and requires a hard kill in order to be able to start the installer again.


EXPECTED RESULT

A new volume group is created, after which logical volumes can be added.


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
KDE Plasma Version: 5.20.5
KDE Frameworks Version: 5.78.0
Qt Version: 5.15.2

Calamares version: 3.2.35.1
Neon installer iso version: neon-user-20210121-0944.iso

ADDITIONAL INFORMATION
Comment 1 Pedro Arthur Duarte (aka JEdi) 2021-02-15 00:36:57 UTC
I confirm this is happening when using the image neon-user-20210211-0944.iso
Comment 2 Lua 2021-06-01 19:44:44 UTC
I think this should be reported at https://github.com/calamares/calamares/issues
Comment 3 Jeffrey Bouter 2021-06-01 20:50:23 UTC
I think it has already been reported in 2019:
https://github.com/calamares/calamares/issues/1132
Comment 4 Malte S. Stretz 2023-09-11 12:03:41 UTC
Still happens with the current ISO (20230907-0716). I will check upstream as well but somebody from the Neon team should check if this might be fixed in a more recent calamares version.

Application: Calamares (_neon), signal: Segmentation fault

[KCrash Handler]
#4  PartitionCoreModule::partitionModelForDevice (this=<optimized out>, device=<optimized out>) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qscopedpointer.h:138
#5  0x00007ff9e028089c in PartitionPage::updateFromCurrentDevice (this=0x558a7feb3f20) at ./src/modules/partition/gui/PartitionPage.cpp:584
#6  0x00007ffa09d75924 in QtPrivate::QSlotObjectBase::call (a=0x7ffdd8477180, r=0x558a7feb3f20, this=0x558a806245b0) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#7  doActivate<false> (sender=0x558a80ba2510, signal_index=14, argv=0x7ffdd8477180) at kernel/qobject.cpp:3925
#8  0x00007ffa09d6e9f7 in QMetaObject::activate (sender=sender@entry=0x558a80ba2510, m=m@entry=0x7ffa0b82f6e0 <QComboBox::staticMetaObject>, local_signal_index=local_signal_index@entry=7, argv=argv@entry=0x7ffdd8477180) at kernel/qobject.cpp:3985
#9  0x00007ffa0b406829 in QComboBox::currentTextChanged (this=this@entry=0x558a80ba2510, _t1=...) at .moc/moc_qcombobox.cpp:552
#10 0x00007ffa0b409133 in QComboBoxPrivate::_q_emitCurrentIndexChanged (this=this@entry=0x558a80b3ed50, index=...) at widgets/qcombobox.cpp:1485
#11 0x00007ffa0b40bb65 in QComboBoxPrivate::setCurrentIndex (this=this@entry=0x558a80b3ed50, mi=...) at widgets/qcombobox.cpp:2331
#12 0x00007ffa0b40bce8 in QComboBoxPrivate::trySetValidIndex (this=this@entry=0x558a80b3ed50) at widgets/qcombobox.cpp:315
#13 0x00007ffa0b40ff74 in QComboBoxPrivate::_q_modelReset (this=0x558a80b3ed50) at widgets/qcombobox.cpp:296
#14 0x00007ffa09d75958 in doActivate<false> (sender=0x558a80501ea0, signal_index=21, argv=0x7ffdd8477440) at kernel/qobject.cpp:3937
#15 0x00007ffa09d6e9f7 in QMetaObject::activate (sender=sender@entry=0x558a80501ea0, m=m@entry=0x7ffa09fdd680 <QAbstractItemModel::staticMetaObject>, local_signal_index=local_signal_index@entry=18, argv=argv@entry=0x7ffdd8477440) at kernel/qobject.cpp:3985
#16 0x00007ffa09cd6eb1 in QAbstractItemModel::modelReset (this=this@entry=0x558a80501ea0, _t1=...) at .moc/moc_qabstractitemmodel.cpp:648
#17 0x00007ffa09cd933f in QAbstractItemModel::endResetModel (this=this@entry=0x558a80501ea0) at itemmodels/qabstractitemmodel.cpp:3302
#18 0x00007ff9e0252e19 in DeviceModel::addDevice (this=0x558a80501ea0, device=<optimized out>) at ./src/modules/partition/core/DeviceModel.cpp:142
#19 0x00007ff9e0258ad0 in PartitionCoreModule::createVolumeGroup (this=0x558a80501760, vgName=..., pvList=..., peSize=4) at ./src/modules/partition/core/PartitionCoreModule.cpp:428
#20 0x00007ff9e0283fff in PartitionPage::onNewVolumeGroupClicked (this=0x558a7feb3f20) at ./src/modules/partition/gui/PartitionPage.cpp:324
#21 0x00007ffa09d75924 in QtPrivate::QSlotObjectBase::call (a=0x7ffdd8477710, r=0x558a7feb3f20, this=0x558a80bc24e0) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#22 doActivate<false> (sender=0x558a7ff74050, signal_index=9, argv=0x7ffdd8477710) at kernel/qobject.cpp:3925
#23 0x00007ffa09d6e9f7 in QMetaObject::activate (sender=sender@entry=0x558a7ff74050, m=m@entry=0x7ffa0b82d280 <QAbstractButton::staticMetaObject>, local_signal_index=local_signal_index@entry=2, argv=argv@entry=0x7ffdd8477710) at kernel/qobject.cpp:3985
#24 0x00007ffa0b3f39f6 in QAbstractButton::clicked (this=this@entry=0x558a7ff74050, _t1=<optimized out>) at .moc/moc_qabstractbutton.cpp:308
#25 0x00007ffa0b3f3c7e in QAbstractButtonPrivate::emitClicked (this=0x558a7ff74090) at widgets/qabstractbutton.cpp:416
#26 0x00007ffa0b3f58a4 in QAbstractButtonPrivate::click (this=0x558a7ff74090) at widgets/qabstractbutton.cpp:409
#27 0x00007ffa0b3f5ac7 in QAbstractButton::mouseReleaseEvent (this=0x558a7ff74050, e=0x7ffdd8477ca0) at widgets/qabstractbutton.cpp:1045
#28 0x00007ffa0b34094e in QWidget::event (this=0x558a7ff74050, event=0x7ffdd8477ca0) at kernel/qwidget.cpp:9045
#29 0x00007ffa0b2fd763 in QApplicationPrivate::notify_helper (this=this@entry=0x558a7faa9030, receiver=receiver@entry=0x558a7ff74050, e=e@entry=0x7ffdd8477ca0) at kernel/qapplication.cpp:3640
#30 0x00007ffa0b3053a4 in QApplication::notify (this=<optimized out>, receiver=0x558a7ff74050, e=0x7ffdd8477ca0) at kernel/qapplication.cpp:3084
#31 0x00007ffa09d3de7a in QCoreApplication::notifyInternal2 (receiver=0x558a7ff74050, event=0x7ffdd8477ca0) at kernel/qcoreapplication.cpp:1064
#32 0x00007ffa0b303e87 in QApplicationPrivate::sendMouseEvent (receiver=receiver@entry=0x558a7ff74050, event=event@entry=0x7ffdd8477ca0, alienWidget=alienWidget@entry=0x558a7ff74050, nativeWidget=0x558a7fe07290, buttonDown=<optimized out>, lastMouseReceiver=..., spontaneous=true, onlyDispatchEnterLeave=false) at kernel/qapplication.cpp:2622
#33 0x00007ffa0b35a1cb in QWidgetWindow::handleMouseEvent (this=0x558a8060d4c0, event=0x7ffdd8477f70) at kernel/qwidgetwindow.cpp:684
#34 0x00007ffa0b35d525 in QWidgetWindow::event (this=0x558a8060d4c0, event=0x7ffdd8477f70) at kernel/qwidgetwindow.cpp:300
#35 0x00007ffa0b2fd763 in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x558a8060d4c0, e=0x7ffdd8477f70) at kernel/qapplication.cpp:3640
#36 0x00007ffa09d3de7a in QCoreApplication::notifyInternal2 (receiver=0x558a8060d4c0, event=0x7ffdd8477f70) at kernel/qcoreapplication.cpp:1064
#37 0x00007ffa0a1291e7 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () from /lib/x86_64-linux-gnu/libQt5Gui.so.5
#38 0x00007ffa0a0fcdbc in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Gui.so.5
#39 0x00007ffa0587df5e in ?? () from /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#40 0x00007ffa07effd3b in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#41 0x00007ffa07f55258 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#42 0x00007ffa07efd3e3 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#43 0x00007ffa09d97368 in QEventDispatcherGlib::processEvents (this=0x558a7fb9d710, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#44 0x00007ffa09d3c79b in QEventLoop::exec (this=this@entry=0x7ffdd84782a0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#45 0x00007ffa09d44d44 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#46 0x0000558a7e0e5f88 in main (argc=<optimized out>, argv=<optimized out>) at ./src/calamares/main.cpp:165
[Inferior 1 (process 5324) detached]
Comment 5 Malte S. Stretz 2023-09-13 09:53:19 UTC
*** Bug 454169 has been marked as a duplicate of this bug. ***
Comment 6 Twisted Lucidity 2024-06-06 14:06:29 UTC
Created attachment 170205 [details]
Calamari crash log (without debug symbols)

Still present using neon-user-20240606-0718.iso when attempting to install into a VirtualBox VM.
I have attached the crash log, I was unable to get the debug symbols installed.