[kdevelop] [Bug 396634] KDevelop crash while editing QML file with custom types

2018-07-18 Thread Robert Voinea
https://bugs.kde.org/show_bug.cgi?id=396634

--- Comment #1 from Robert Voinea  ---
It seems that it does not crash all the time.
See the example below.

The crash occurs when I move the mouse pointer over the "elbow" text.

I have identified two distinct cases when this does not occur:
 - If I comment or remove the "when" line
 - If I import the plugin with "import MyPlugin 1.0" (instead of "import
MyPlugin 1.0 as MyPlugin")

Note: 
- Elbow is the data type defined in the plugin.
- Elbow.StyleLeft is an enum

import QtQuick 2.6
import MyPlugin 1.0 as MyPlugin

Item
{
id: container
MyPlugin.Elbow
{
id: elbow
states: [
State
{
name: 'LeftTop'
when: (elbow.style == MyPlugin.Elbow.StyleLeft)
}
]
}
}

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdevelop] [Bug 396634] New: KDevelop crash while editing QML file with custom types

2018-07-18 Thread Robert Voinea
https://bugs.kde.org/show_bug.cgi?id=396634

Bug ID: 396634
   Summary: KDevelop crash while editing QML file with custom
types
   Product: kdevelop
   Version: 5.2.3
  Platform: Archlinux Packages
OS: Linux
Status: UNCONFIRMED
  Keywords: drkonqi
  Severity: crash
  Priority: NOR
 Component: general
  Assignee: kdevelop-bugs-n...@kde.org
  Reporter: rvoi...@gmail.com
  Target Milestone: ---

Application: kdevelop (5.2.3)

Qt Version: 5.11.1
Frameworks Version: 5.48.0
Operating System: Linux 4.17.6-1-ARCH x86_64
Distribution: "Arch Linux"

-- Information about the crash:
- What I was doing when the application crashed:
I was editing a QML file with custom types that are loaded from a QML plugin.
The Plugin that includes the custom type is part of the project.

- Unusual behavior I noticed:
Whenever I moved the cursor over an instance of the custom type, KDevelop would
crash. 
Every time.

- Custom settings of the application:
One CMake project with several submodules. 
git as version control.

The crash can be reproduced every time.

-- Backtrace:
Application: KDevelop (kdevelop), signal: Segmentation fault
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fe3e2939e00 (LWP 3070))]

Thread 16 (Thread 0x7fe34e3d9700 (LWP 3201)):
#0  0x7fe3d5b742f4 in g_mutex_unlock () at /usr/lib/libglib-2.0.so.0
#1  0x7fe3d5b2d3ce in  () at /usr/lib/libglib-2.0.so.0
#2  0x7fe3d5b2d63e in g_main_context_iteration () at
/usr/lib/libglib-2.0.so.0
#3  0x7fe3df8b9054 in
QEventDispatcherGlib::processEvents(QFlags) ()
at /usr/lib/libQt5Core.so.5
#4  0x7fe3df86494c in
QEventLoop::exec(QFlags) () at
/usr/lib/libQt5Core.so.5
#5  0x7fe3df6ada99 in QThread::exec() () at /usr/lib/libQt5Core.so.5
#6  0x7fe3dd1d03f6 in  () at /usr/lib/libKDevPlatformLanguage.so.52
#7  0x7fe3df6b7b45 in  () at /usr/lib/libQt5Core.so.5
#8  0x7fe3d8709075 in start_thread () at /usr/lib/libpthread.so.0
#9  0x7fe3defa753f in clone () at /usr/lib/libc.so.6

Thread 15 (Thread 0x7fe36a7fc700 (LWP 3197)):
#0  0x7fe3d870effc in pthread_cond_wait@@GLIBC_2.3.2 () at
/usr/lib/libpthread.so.0
#1  0x7fe3df6b82fc in QWaitCondition::wait(QMutex*, unsigned long) () at
/usr/lib/libQt5Core.so.5
#2  0x7fe3d411b139 in
ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait(ThreadWeaver::Thread*,
bool, bool, bool) () at /usr/lib/libKF5ThreadWeaver.so.5
#3  0x7fe3d411f009 in  () at /usr/lib/libKF5ThreadWeaver.so.5
#4  0x7fe3d411a1fd in
ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () at
/usr/lib/libKF5ThreadWeaver.so.5
#5  0x7fe3d411d059 in ThreadWeaver::Thread::run() () at
/usr/lib/libKF5ThreadWeaver.so.5
#6  0x7fe3df6b7b45 in  () at /usr/lib/libQt5Core.so.5
#7  0x7fe3d8709075 in start_thread () at /usr/lib/libpthread.so.0
#8  0x7fe3defa753f in clone () at /usr/lib/libc.so.6

Thread 14 (Thread 0x7fe36affd700 (LWP 3196)):
#0  0x7fe3d870effc in pthread_cond_wait@@GLIBC_2.3.2 () at
/usr/lib/libpthread.so.0
#1  0x7fe3df6b82fc in QWaitCondition::wait(QMutex*, unsigned long) () at
/usr/lib/libQt5Core.so.5
#2  0x7fe3d411b139 in
ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait(ThreadWeaver::Thread*,
bool, bool, bool) () at /usr/lib/libKF5ThreadWeaver.so.5
#3  0x7fe3d411f009 in  () at /usr/lib/libKF5ThreadWeaver.so.5
#4  0x7fe3d411a1fd in
ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () at
/usr/lib/libKF5ThreadWeaver.so.5
#5  0x7fe3d411d059 in ThreadWeaver::Thread::run() () at
/usr/lib/libKF5ThreadWeaver.so.5
#6  0x7fe3df6b7b45 in  () at /usr/lib/libQt5Core.so.5
#7  0x7fe3d8709075 in start_thread () at /usr/lib/libpthread.so.0
#8  0x7fe3defa753f in clone () at /usr/lib/libc.so.6

Thread 13 (Thread 0x7fe36b7fe700 (LWP 3195)):
#0  0x7fe3d870effc in pthread_cond_wait@@GLIBC_2.3.2 () at
/usr/lib/libpthread.so.0
#1  0x7fe3df6b82fc in QWaitCondition::wait(QMutex*, unsigned long) () at
/usr/lib/libQt5Core.so.5
#2  0x7fe3d411b139 in
ThreadWeaver::Weaver::takeFirstAvailableJobOrSuspendOrWait(ThreadWeaver::Thread*,
bool, bool, bool) () at /usr/lib/libKF5ThreadWeaver.so.5
#3  0x7fe3d411f009 in  () at /usr/lib/libKF5ThreadWeaver.so.5
#4  0x7fe3d411a1fd in
ThreadWeaver::Weaver::applyForWork(ThreadWeaver::Thread*, bool) () at
/usr/lib/libKF5ThreadWeaver.so.5
#5  0x7fe3d411d059 in ThreadWeaver::Thread::run() () at
/usr/lib/libKF5ThreadWeaver.so.5
#6  0x7fe3df6b7b45 in  () at /usr/lib/libQt5Core.so.5
#7  0x7fe3d8709075 in start_thread () at /usr/lib/libpthread.so.0
#8  0x7fe3defa753f in clone () at /usr/lib/libc.so.6

Thread 12 (Thread 0x7fe36bfff700 (LWP 3194)):
#0  0x7fe3d870effc in pthread_cond_wait@@GLIBC_2.3.2 () at
/usr/lib/libpthread.so.0
#1  0x7fe3df6b82fc in QWaitCondition::wait(QMutex*, unsigned long) () at
/us