Bug 292225 - skrooge 1.2.0 crash on opening report
Summary: skrooge 1.2.0 crash on opening report
Status: RESOLVED FIXED
Alias: None
Product: skrooge
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR crash
Target Milestone: ---
Assignee: Stephane MANKOWSKI
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-22 21:10 UTC by Jaak Ristioja
Modified: 2012-01-23 08:49 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
gdb full backtrace (23.39 KB, application/octet-stream)
2012-01-22 21:10 UTC, Jaak Ristioja
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jaak Ristioja 2012-01-22 21:10:24 UTC
Created attachment 68098 [details]
gdb full backtrace

Version:           unspecified (using KDE 4.7.4) 
OS:                Linux

I was getting a skrooge-1.2.0 crash in plugins/skrooge/skrooge_report/skgreportpluginwidget.cpp:1027 with the line
QStringList line1 = table.at(0);

Looking at the code, it seems that it is not checked beforehand whether table.isEmpty() or table.empty() or table.count().

gdb showed that table is empty.

Reproducible: Sometimes

Steps to Reproduce:
I was able to reproduce this every time on the day I first upgraded to 1.2.0 from 1.1.1. Can't reproduce now.

I can't remember exactly, but the crash happened when (1) I started Skrooge and opened my custom report, or (2) when I switched to my custom report when I had another something else open in Skrooge.

Actual Results:  
Crash.

Expected Results:  
The report should have been properly opened.
Comment 1 Stephane MANKOWSKI 2012-01-23 08:49:32 UTC
Git commit c8b3feba0ba070b7540ffa75d223200cf8987cfe by Stephane Mankowski.
Committed on 23/01/2012 at 09:49.
Pushed by smankowski into branch 'Feature'.
Related: bug 1, bug 2, bug 0

M  +1    -0    CHANGELOG
M  +13   -11   plugins/skrooge/skrooge_report/skgreportpluginwidget.cpp

http://commits.kde.org/skrooge/c8b3feba0ba070b7540ffa75d223200cf8987cfe