Bug 411795 - Crash in QQmlData::wasDeleted() after adding a language in the Translations KCM
Summary: Crash in QQmlData::wasDeleted() after adding a language in the Translations KCM
Status: RESOLVED FIXED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_language (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: Eike Hein
URL:
Keywords: drkonqi
: 413083 416067 (view as bug list)
Depends on:
Blocks:
 
Reported: 2019-09-10 14:37 UTC by Patrick Silva
Modified: 2021-10-15 14:04 UTC (History)
9 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Silva 2019-09-10 14:37:28 UTC
Application: systemsettings5 (5.16.80)

Qt Version: 5.12.3
Frameworks Version: 5.62.0
Operating System: Linux 5.2.5-050205-generic x86_64
Distribution: KDE neon Unstable Edition

-- Information about the crash:
- What I was doing when the application crashed:
open system settings > regional settings > Language
click on 'Add languages..." button
add a language (I added Deutsch)
try to close system settings
click on "Discard" button... crash

The crash can be reproduced every time.

-- Backtrace:
Application: System Settings (systemsettings5), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7ff9afb17800 (LWP 4697))]

Thread 8 (Thread 0x7ff949fd1700 (LWP 6812)):
#0  0x00007ff9ab06d0b4 in __GI___libc_read (fd=45, buf=buf@entry=0x7ff949fd0cd0, nbytes=nbytes@entry=16) at ../sysdeps/unix/sysv/linux/read.c:27
#1  0x00007ff9a453c2d0 in read (__nbytes=16, __buf=0x7ff949fd0cd0, __fd=<optimized out>) at /usr/include/x86_64-linux-gnu/bits/unistd.h:44
#2  g_wakeup_acknowledge (wakeup=0x55b17ab2c700) at ../../../../glib/gwakeup.c:210
#3  0x00007ff9a44f70b7 in g_main_context_check (context=context@entry=0x55b17eb34900, max_priority=2147483647, fds=fds@entry=0x55b17ab2d450, n_fds=n_fds@entry=1) at ../../../../glib/gmain.c:3680
#4  0x00007ff9a44f7570 in g_main_context_iterate (context=0x55b17eb34900, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../../../../glib/gmain.c:3899
#5  0x00007ff9a44f7962 in g_main_loop_run (loop=0x55b17ab2d490) at ../../../../glib/gmain.c:4098
#6  0x00007ff95fef70e6 in gdbus_shared_thread_func (user_data=0x55b17e7c3800) at ../../../../gio/gdbusprivate.c:275
#7  0x00007ff9a451f195 in g_thread_proxy (data=0x55b17ab2c0a0) at ../../../../glib/gthread.c:784
#8  0x00007ff9a68b66db in start_thread (arg=0x7ff949fd1700) at pthread_create.c:463
#9  0x00007ff9ab07e88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 7 (Thread 0x7ff94a7d2700 (LWP 6811)):
#0  0x00007ff9ab071bf9 in __GI___poll (fds=0x55b17eb309b0, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007ff9a44f75c9 in g_main_context_poll (priority=<optimized out>, n_fds=1, fds=0x55b17eb309b0, timeout=<optimized out>, context=0x55b17e7c0dc0) at ../../../../glib/gmain.c:4203
#2  g_main_context_iterate (context=context@entry=0x55b17e7c0dc0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../../../../glib/gmain.c:3897
#3  0x00007ff9a44f76dc in g_main_context_iteration (context=0x55b17e7c0dc0, may_block=may_block@entry=1) at ../../../../glib/gmain.c:3963
#4  0x00007ff9a44f7721 in glib_worker_main (data=<optimized out>) at ../../../../glib/gmain.c:5772
#5  0x00007ff9a451f195 in g_thread_proxy (data=0x55b17ab2c000) at ../../../../glib/gthread.c:784
#6  0x00007ff9a68b66db in start_thread (arg=0x7ff94a7d2700) at pthread_create.c:463
#7  0x00007ff9ab07e88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 6 (Thread 0x7ff95ac11700 (LWP 4708)):
#0  0x00007ff9ab06d0b4 in __GI___libc_read (fd=22, buf=buf@entry=0x7ff95ac10b70, nbytes=nbytes@entry=16) at ../sysdeps/unix/sysv/linux/read.c:27
#1  0x00007ff9a453c2d0 in read (__nbytes=16, __buf=0x7ff95ac10b70, __fd=<optimized out>) at /usr/include/x86_64-linux-gnu/bits/unistd.h:44
#2  g_wakeup_acknowledge (wakeup=0x7ff97c0039a0) at ../../../../glib/gwakeup.c:210
#3  0x00007ff9a44f70b7 in g_main_context_check (context=context@entry=0x7ff954000bf0, max_priority=2147483647, fds=fds@entry=0x7ff954004a00, n_fds=n_fds@entry=1) at ../../../../glib/gmain.c:3680
#4  0x00007ff9a44f7570 in g_main_context_iterate (context=context@entry=0x7ff954000bf0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../../../../glib/gmain.c:3899
#5  0x00007ff9a44f76dc in g_main_context_iteration (context=0x7ff954000bf0, may_block=may_block@entry=1) at ../../../../glib/gmain.c:3963
#6  0x00007ff9ab9b4dcb in QEventDispatcherGlib::processEvents (this=0x7ff954000b20, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#7  0x00007ff9ab95603a in QEventLoop::exec (this=this@entry=0x7ff95ac10d80, flags=..., flags@entry=...) at kernel/qeventloop.cpp:225
#8  0x00007ff9ab77d4ca in QThread::exec (this=this@entry=0x55b17dfa7fc0) at thread/qthread.cpp:531
#9  0x00007ff9a9536115 in QQmlThreadPrivate::run (this=0x55b17dfa7fc0) at qml/ftw/qqmlthread.cpp:148
#10 0x00007ff9ab77ec72 in QThreadPrivate::start (arg=0x55b17dfa7fc0) at thread/qthread_unix.cpp:361
#11 0x00007ff9a68b66db in start_thread (arg=0x7ff95ac11700) at pthread_create.c:463
#12 0x00007ff9ab07e88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 5 (Thread 0x7ff974833700 (LWP 4702)):
#0  0x00007ff9ab06d0b4 in __GI___libc_read (fd=13, buf=0x7ff974832bde, nbytes=10) at ../sysdeps/unix/sysv/linux/read.c:27
#1  0x00007ff98aae5021 in pa_read () from /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-11.1.so
#2  0x00007ff98af68a2e in pa_mainloop_prepare () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
#3  0x00007ff98af694a0 in pa_mainloop_iterate () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
#4  0x00007ff98af69560 in pa_mainloop_run () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
#5  0x00007ff98af773c9 in ?? () from /usr/lib/x86_64-linux-gnu/libpulse.so.0
#6  0x00007ff98ab14318 in ?? () from /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-11.1.so
#7  0x00007ff9a68b66db in start_thread (arg=0x7ff974833700) at pthread_create.c:463
#8  0x00007ff9ab07e88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 4 (Thread 0x7ff982c2e700 (LWP 4700)):
#0  0x00007ff9ab06d0b4 in __GI___libc_read (fd=10, buf=buf@entry=0x7ff982c2db70, nbytes=nbytes@entry=16) at ../sysdeps/unix/sysv/linux/read.c:27
#1  0x00007ff9a453c2d0 in read (__nbytes=16, __buf=0x7ff982c2db70, __fd=<optimized out>) at /usr/include/x86_64-linux-gnu/bits/unistd.h:44
#2  g_wakeup_acknowledge (wakeup=0x7ff994003db0) at ../../../../glib/gwakeup.c:210
#3  0x00007ff9a44f70b7 in g_main_context_check (context=context@entry=0x7ff97c000bf0, max_priority=2147483647, fds=fds@entry=0x7ff97c004e00, n_fds=n_fds@entry=1) at ../../../../glib/gmain.c:3680
#4  0x00007ff9a44f7570 in g_main_context_iterate (context=context@entry=0x7ff97c000bf0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../../../../glib/gmain.c:3899
#5  0x00007ff9a44f76dc in g_main_context_iteration (context=0x7ff97c000bf0, may_block=may_block@entry=1) at ../../../../glib/gmain.c:3963
#6  0x00007ff9ab9b4dcb in QEventDispatcherGlib::processEvents (this=0x7ff97c000b20, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#7  0x00007ff9ab95603a in QEventLoop::exec (this=this@entry=0x7ff982c2dd80, flags=..., flags@entry=...) at kernel/qeventloop.cpp:225
#8  0x00007ff9ab77d4ca in QThread::exec (this=this@entry=0x55b1770fe0e0) at thread/qthread.cpp:531
#9  0x00007ff9a9536115 in QQmlThreadPrivate::run (this=0x55b1770fe0e0) at qml/ftw/qqmlthread.cpp:148
#10 0x00007ff9ab77ec72 in QThreadPrivate::start (arg=0x55b1770fe0e0) at thread/qthread_unix.cpp:361
#11 0x00007ff9a68b66db in start_thread (arg=0x7ff982c2e700) at pthread_create.c:463
#12 0x00007ff9ab07e88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7ff9920ad700 (LWP 4699)):
#0  0x00007ff9a68bc9f3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55b176d2cecc) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x55b176d2ce78, cond=0x55b176d2cea0) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x55b176d2cea0, mutex=0x55b176d2ce78) at pthread_cond_wait.c:655
#3  0x00007ff9934d20aa in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#4  0x00007ff9934d1dd7 in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#5  0x00007ff9a68b66db in start_thread (arg=0x7ff9920ad700) at pthread_create.c:463
#6  0x00007ff9ab07e88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7ff99b124700 (LWP 4698)):
#0  0x00007ff9ab06d0b4 in __GI___libc_read (fd=5, buf=buf@entry=0x7ff99b123b60, nbytes=nbytes@entry=16) at ../sysdeps/unix/sysv/linux/read.c:27
#1  0x00007ff9a453c2d0 in read (__nbytes=16, __buf=0x7ff99b123b60, __fd=<optimized out>) at /usr/include/x86_64-linux-gnu/bits/unistd.h:44
#2  g_wakeup_acknowledge (wakeup=0x55b176c025c0) at ../../../../glib/gwakeup.c:210
#3  0x00007ff9a44f70b7 in g_main_context_check (context=context@entry=0x7ff994000bf0, max_priority=2147483647, fds=fds@entry=0x7ff9940138e0, n_fds=n_fds@entry=1) at ../../../../glib/gmain.c:3680
#4  0x00007ff9a44f7570 in g_main_context_iterate (context=context@entry=0x7ff994000bf0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../../../../glib/gmain.c:3899
#5  0x00007ff9a44f76dc in g_main_context_iteration (context=0x7ff994000bf0, may_block=may_block@entry=1) at ../../../../glib/gmain.c:3963
#6  0x00007ff9ab9b4dcb in QEventDispatcherGlib::processEvents (this=0x7ff994000b20, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#7  0x00007ff9ab95603a in QEventLoop::exec (this=this@entry=0x7ff99b123d70, flags=..., flags@entry=...) at kernel/qeventloop.cpp:225
#8  0x00007ff9ab77d4ca in QThread::exec (this=this@entry=0x7ff9ac09ad80 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread.cpp:531
#9  0x00007ff9abe23015 in QDBusConnectionManager::run (this=0x7ff9ac09ad80 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at qdbusconnection.cpp:178
#10 0x00007ff9ab77ec72 in QThreadPrivate::start (arg=0x7ff9ac09ad80 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread_unix.cpp:361
#11 0x00007ff9a68b66db in start_thread (arg=0x7ff99b124700) at pthread_create.c:463
#12 0x00007ff9ab07e88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7ff9afb17800 (LWP 4697)):
[KCrash Handler]
#7  QQmlData::wasDeleted (object=0x55b1808811b0) at ../../include/QtQml/5.12.3/QtQml/private/../../../../../src/qml/qml/qqmldata_p.h:341
#8  QV4::QObjectWrapper::wrap (engine=engine@entry=0x55b1770fdab0, object=0x55b1808811b0) at ../../include/QtQml/5.12.3/QtQml/private/../../../../../src/qml/jsruntime/qv4qobjectwrapper_p.h:215
#9  0x00007ff9a94592bc in QV4::ExecutionEngine::fromVariant (this=this@entry=0x55b1770fdab0, variant=...) at jsruntime/qv4engine.cpp:1514
#10 0x00007ff9a93b9726 in searchContextProperties (v4=v4@entry=0x55b1770fdab0, context=context@entry=0x55b17f3ec5d0, name=<optimized out>, hasProperty=hasProperty@entry=0x7ffc87e7e457, base=base@entry=0x0, lookup=lookup@entry=0x0, originalLookup=<optimized out>, ep=<optimized out>) at jsruntime/qv4qmlcontext.cpp:126
#11 0x00007ff9a93ba5b5 in QV4::QQmlContextWrapper::getPropertyAndBase (resource=<optimized out>, id=..., receiver=receiver@entry=0x0, hasProperty=hasProperty@entry=0x7ffc87e7e457, base=base@entry=0x0, lookup=0x0, lookup@entry=0x55b17ed1c430) at jsruntime/qv4qmlcontext.cpp:274
#12 0x00007ff9a93bae30 in QV4::QQmlContextWrapper::resolveQmlContextPropertyLookupGetter (l=0x55b17ed1c430, engine=0x55b1770fdab0, base=0x0) at jsruntime/qv4qmlcontext.cpp:474
#13 0x00007ff97956798c in ?? ()
#14 0x0000000000000000 in ?? ()

Possible duplicates by query: bug 411594, bug 410790, bug 410756, bug 409008, bug 408747.

Reported using DrKonqi
Comment 1 David Edmundson 2019-10-17 11:52:20 UTC
*** Bug 413083 has been marked as a duplicate of this bug. ***
Comment 2 David Edmundson 2019-10-17 11:53:17 UTC
Maybe fixed by https://phabricator.kde.org/D24716 it would be good if someone who can reproduce this can test.
Comment 3 David Edmundson 2019-10-17 11:55:36 UTC
Edit: Apparently not.
Comment 4 Carlo Borger 2019-10-17 13:06:18 UTC
I noticed, my system also suffers Wayland issues.
teying to start a user session with Waynd or Waylanf Full mode it refuses to authorize the user.
When switching to X-server (Plasma) it is OK.
I noticed that setting the language succeeds when I was doing this through the  session.
trying to install it through the root session  it failed.
Comment 5 Christoph Feck 2020-01-20 13:17:10 UTC
*** Bug 416067 has been marked as a duplicate of this bug. ***
Comment 6 Nate Graham 2021-01-12 16:35:52 UTC
*** Bug 428461 has been marked as a duplicate of this bug. ***
Comment 7 Nate Graham 2021-01-12 16:35:53 UTC
*** Bug 427444 has been marked as a duplicate of this bug. ***
Comment 8 Nate Graham 2021-01-14 00:04:05 UTC
*** Bug 421556 has been marked as a duplicate of this bug. ***
Comment 9 Nate Graham 2021-01-14 00:06:46 UTC
*** Bug 429786 has been marked as a duplicate of this bug. ***
Comment 10 Nate Graham 2021-01-14 00:07:08 UTC
*** Bug 429983 has been marked as a duplicate of this bug. ***
Comment 11 Nate Graham 2021-09-30 20:56:08 UTC
This was probably caused by the persistent QML garbage collector issues in Qt versions older than 5.14. Can anyone reproduce with Qt 5.15.x?
Comment 12 Bug Janitor Service 2021-10-15 04:35:24 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 13 Carlo Borger 2021-10-15 07:50:10 UTC
For me it seems the issue is not there anymore.
I run qt 5.15.2 by the way.
Comment 14 Nate Graham 2021-10-15 14:04:47 UTC
OK cool, thanks!.