Bug 365874 - Crash in table view displaying images - KexiUtils::loadPixmapFromData()
Summary: Crash in table view displaying images - KexiUtils::loadPixmapFromData()
Status: CLOSED FIXED
Alias: None
Product: KEXI
Classification: Applications
Component: Tables (show other bugs)
Version: 3.0 Alpha
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: 3.0
Assignee: Kexi Bugs
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2016-07-19 19:24 UTC by Juan José Morales
Modified: 2016-07-20 09:45 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Juan José Morales 2016-07-19 19:24:37 UTC
Application: kexi (3.0 Alpha (git  master))
 (Compiled from sources)
Qt Version: 5.5.1
Operating System: Linux 4.4.0-31-generic x86_64
Distribution: Ubuntu 16.04 LTS

-- Information about the crash:
- What I was doing when the application crashed:

try to create a foreign key

- Unusual behavior I noticed:

When i try to add info of the reference table for the foreign key and then change the view to Data tab the foreign key info was not saved. After try many times app crashed 

- Custom settings of the application:

-- Backtrace:
Application: Kexi (kexi), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f9cbbf938c0 (LWP 6510))]

Thread 4 (Thread 0x7f9c9440b700 (LWP 6520)):
#0  0x00007f9cb68733c0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f9cb68758cb in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f9cb68762cb in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f9cb68764ac in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f9cbb398a9b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f9cbb33fdea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007f9cbb15c8a4 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007f9cbb16184e in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007f9cb6d976fa in start_thread (arg=0x7f9c9440b700) at pthread_create.c:333
#9  0x00007f9cbadf9b5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 3 (Thread 0x7f9c9de2f700 (LWP 6514)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f9ca1d67213 in ?? () from /usr/lib/x86_64-linux-gnu/dri/radeonsi_dri.so
#2  0x00007f9ca1d66937 in ?? () from /usr/lib/x86_64-linux-gnu/dri/radeonsi_dri.so
#3  0x00007f9cb6d976fa in start_thread (arg=0x7f9c9de2f700) at pthread_create.c:333
#4  0x00007f9cbadf9b5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 2 (Thread 0x7f9ca8f90700 (LWP 6511)):
#0  0x00007f9cbadede8d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f9cb1dcbc62 in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007f9cb1dcd8d7 in xcb_wait_for_event () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007f9cab2e2629 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#4  0x00007f9cbb16184e in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f9cb6d976fa in start_thread (arg=0x7f9ca8f90700) at pthread_create.c:333
#6  0x00007f9cbadf9b5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 1 (Thread 0x7f9cbbf938c0 (LWP 6510)):
[KCrash Handler]
#6  QArrayData::data (this=0x0) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qarraydata.h:55
#7  QTypedArrayData<char>::data (this=0x0) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qarraydata.h:199
#8  QByteArray::operator char const* (this=<optimized out>) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qbytearray.h:474
#9  KexiUtils::loadPixmapFromData (pixmap=pixmap@entry=0x7ffc7fcf61a0, data=..., format=format@entry=0x0) at /home/juan/kde/src/kexi/src/kexiutils/utils.cpp:490
#10 0x00007f9c93269ed3 in KexiBlobTableEdit::setupContents (this=0x28b8c50, p=0x7ffc7fcf64b0, focused=<optimized out>, val=..., txt=..., align=<optimized out>, x=@0x7ffc7fcf62b4: 0, y_offset=@0x7ffc7fcf62b8: 0, w=@0x7ffc7fcf62ac: 119, h=@0x7ffc7fcf62b0: 17) at /home/juan/kde/src/kexi/src/widget/tableview/kexiblobtableedit.cpp:215
#11 0x00007f9c932564a2 in KexiTableScrollArea::paintCell (this=this@entry=0x2665120, p=p@entry=0x7ffc7fcf64b0, data=data@entry=0x2860c70, record=record@entry=0, column=column@entry=5, cr=..., print=false) at /home/juan/kde/src/kexi/src/widget/tableview/KexiTableScrollArea.cpp:731
#12 0x00007f9c93257210 in KexiTableScrollArea::paintRow (maxwc=720, collast=5, colfirst=5, cy=<optimized out>, cx=<optimized out>, rowp=0, r=0, pb=0x7ffc7fcf64b0, data=0x2860c70, this=0x2665120) at /home/juan/kde/src/kexi/src/widget/tableview/KexiTableScrollArea.cpp:461
#13 KexiTableScrollArea::drawContents (this=0x2665120, p=p@entry=0x7ffc7fcf64b0) at /home/juan/kde/src/kexi/src/widget/tableview/KexiTableScrollArea.cpp:580
#14 0x00007f9c93261428 in KexiTableScrollAreaWidget::paintEvent (this=0x2835730, e=0x7ffc7fcf6790) at /home/juan/kde/src/kexi/src/widget/tableview/KexiTableScrollAreaWidget.cpp:42
#15 0x00007f9cbb72ff88 in QWidget::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#16 0x00007f9cbb6ed05c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#17 0x00007f9cbb6f2516 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#18 0x00007f9cbb34262b in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#19 0x00007f9cbb728a79 in QWidgetPrivate::sendPaintEvent(QRegion const&) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#20 0x00007f9cbb7290c1 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#21 0x00007f9cbb6fa856 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#22 0x00007f9cbb6faa8c in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#23 0x00007f9cbb718c1f in QWidgetPrivate::syncBackingStore() () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#24 0x00007f9cbb72fd88 in QWidget::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#25 0x00007f9cbb6ed05c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#26 0x00007f9cbb6f2516 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#27 0x00007f9cbb34262b in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#28 0x00007f9cbb344a26 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#29 0x00007f9cbb398673 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#30 0x00007f9cb68761a7 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#31 0x00007f9cb6876400 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#32 0x00007f9cb68764ac in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#33 0x00007f9cbb398a7f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#34 0x00007f9cbb33fdea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#35 0x00007f9cbb86ce10 in QMenu::exec(QPoint const&, QAction*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#36 0x00007f9cbb8af19e in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#37 0x00007f9cbb370fca in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#38 0x00007f9cbb7e9fb7 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#39 0x00007f9cbb7ea111 in QAbstractButton::mousePressEvent(QMouseEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#40 0x00007f9cbb8aff8f in QToolButton::mousePressEvent(QMouseEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#41 0x00007f9cbb730387 in QWidget::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#42 0x00007f9cbb8b0239 in QToolButton::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#43 0x00007f9cbb6ed05c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#44 0x00007f9cbb6f2c19 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#45 0x00007f9cbb34262b in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#46 0x00007f9cbb6f1b32 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#47 0x00007f9cbb74a57b in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#48 0x00007f9cbb74cb3b in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#49 0x00007f9cbb6ed05c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#50 0x00007f9cbb6f2516 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#51 0x00007f9cbb34262b in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#52 0x00007f9cb772a888 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#53 0x00007f9cb772c1e5 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#54 0x00007f9cb770ff38 in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#55 0x00007f9cab314070 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#56 0x00007f9cb68761a7 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#57 0x00007f9cb6876400 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#58 0x00007f9cb68764ac in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#59 0x00007f9cbb398a7f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#60 0x00007f9cbb33fdea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#61 0x00007f9cbb347e8c in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#62 0x0000000000400a24 in main (argc=1, argv=<optimized out>) at /home/juan/kde/src/kexi/src/main.cpp:34

Reported using DrKonqi
Comment 1 Jarosław Staniek 2016-07-19 20:08:27 UTC
Thanks. I've got this last evening and tried to fix with commit 48ae7f140e576e9d2. Do you have this one? This is related to displaying Object (image / BLOB) objects in data view, probably not to creating relations.
Comment 2 Juan José Morales 2016-07-19 22:14:05 UTC
I just made pull and rebuild the application and the aplication no crash in the same situation.
Comment 3 Juan José Morales 2016-07-19 22:15:28 UTC
This bug could be closed.
Comment 4 Jarosław Staniek 2016-07-20 09:45:25 UTC
Thanks Juan.