Summary: | Klipper crashes when creating barcode for empty entry. | ||
---|---|---|---|
Product: | [Unmaintained] klipper | Reporter: | Thomas Dreibholz <dreibh> |
Component: | general | Assignee: | Sune Vuorela <debian> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | adaptee, arrenlex, auxsvr, debian, emnkcn, kollix, quiesagua |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: |
New crash information added by DrKonqi
New crash information added by DrKonqi |
Description
Thomas Dreibholz
2011-10-04 09:05:42 UTC
Hi Can you try install libprison-dbg and reproduce and provide the stacktrace? /Sune - prison hacker Created attachment 66237 [details]
New crash information added by DrKonqi
klipper (v0.9.7) on KDE Platform 4.7.2 (4.7.2) using Qt 4.7.4
- What I was doing when the application crashed:
Klipper had three entries, one of which was seemingly empty (perhaps whitespace or some weird problem with klipper?)
The empty entry was the active item.
I opened the menu and clicked 'create barcode'. At this point, klipper crashed.
I installed libprison-dbg as was requested so hopefully my backtrace will be useful.
-- Backtrace (Reduced):
#7 0x003e2224 in prison::DataMatrixBarcode::toImage (this=0x8a87e00, size=...) at ../../../lib/prison/datamatrixbarcode.cpp:64
#8 0x003e1136 in prison::AbstractBarcode::paint (this=0x8a87e00, painter=0x8bab9c0, targetrect=...) at ../../../lib/prison/abstractbarcode.cpp:59
#9 0x003e1a0d in prison::BarcodeWidget::paintEvent (this=0x892d3f0, event=0xbf86bd14) at ../../../lib/prison/barcodewidget.cpp:68
#10 0x011aff3e in QWidget::event (this=0x892d3f0, event=0xbf86bd14) at kernel/qwidget.cpp:8441
#11 0x01155d54 in notify_helper (e=0xbf86bd14, receiver=0x892d3f0, this=0x869b158) at kernel/qapplication.cpp:4486
Created attachment 66238 [details]
New crash information added by DrKonqi
klipper (v0.9.7) on KDE Platform 4.7.2 (4.7.2) using Qt 4.7.4
- What I was doing when the application crashed:
Klipper had three entries, one of which was seemingly empty (perhaps whitespace or some weird problem with klipper?)
The empty entry was the active item.
I opened the menu and clicked 'create barcode'. At this point, klipper crashed.
I installed libprison-dbg as was requested so hopefully my backtrace will be useful.
-- Backtrace (Reduced):
#7 0x003e2224 in prison::DataMatrixBarcode::toImage (this=0x8a87e00, size=...) at ../../../lib/prison/datamatrixbarcode.cpp:64
#8 0x003e1136 in prison::AbstractBarcode::paint (this=0x8a87e00, painter=0x8bab9c0, targetrect=...) at ../../../lib/prison/abstractbarcode.cpp:59
#9 0x003e1a0d in prison::BarcodeWidget::paintEvent (this=0x892d3f0, event=0xbf86bd14) at ../../../lib/prison/barcodewidget.cpp:68
#10 0x011aff3e in QWidget::event (this=0x892d3f0, event=0xbf86bd14) at kernel/qwidget.cpp:8441
#11 0x01155d54 in notify_helper (e=0xbf86bd14, receiver=0x892d3f0, this=0x869b158) at kernel/qapplication.cpp:4486
In my case, the empty entry was a carriage return, because I had selected a line by accident. I can reproduce the crash every time. Just copy one empty line which only contains spaces, then ask klipper to create barcode for it. Both klipper and libprison are built from master code. Git commit d9ccb1df62bb8ecfc1f6a6dc6b4574d2e55fa743 by Sune Vuorela. Committed on 19/12/2011 at 17:57. Pushed by sune into branch 'master'. Don't crash on empty strings in DataMatrixBarcode BUG: 283300 M +6 -2 lib/prison/datamatrixbarcode.cpp http://commits.kde.org/prison/d9ccb1df62bb8ecfc1f6a6dc6b4574d2e55fa743 *** Bug 291614 has been marked as a duplicate of this bug. *** *** Bug 291529 has been marked as a duplicate of this bug. *** *** Bug 332218 has been marked as a duplicate of this bug. *** |