Bug 282252 - Kstars crash on startup after adding .dat files
Summary: Kstars crash on startup after adding .dat files
Status: RESOLVED DUPLICATE of bug 279026
Alias: None
Product: kstars
Classification: Applications
Component: general (show other bugs)
Version: 2.0.0
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: Akarsh Simha
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-18 05:53 UTC by Josias Wolhuter
Modified: 2011-10-10 14:27 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (2.51 KB, text/plain)
2011-10-03 06:14 UTC, David Charles Pyle
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Josias Wolhuter 2011-09-18 05:53:34 UTC
Application: kstars (2.0.0)
KDE Platform Version: 4.7.1 (4.7.1)
Qt Version: 4.7.4
Operating System: Linux 3.0-ARCH x86_64
Distribution (Platform): Archlinux Packages

-- Information about the crash:
- What I was doing when the application crashed:
Started Kstars.  if .dat files are removed then KStars starts up correctly.
Noticed when starting from command line that some stars are missing 

kstars(5607) KStarsDateTime::fromString: "Could not parse Date/Time string: " "" 
kstars(5607) KStarsDateTime::fromString: "Valid date formats: " 
kstars(5607) KStarsDateTime::fromString:   1950-02-25   ;  1950-02-25T05:30:00 
kstars(5607) KStarsDateTime::fromString:   25 Feb 1950  ;  25 Feb 1950 05:30:00 
kstars(5607) KStarsDateTime::fromString:   Sat Feb 25 1950  ;  Sat Feb 25 05:30:00 1950 
kstars(5607) ConstellationLines::ConstellationLines: "Star HD61,421 not found." 
kstars(5607) ConstellationLines::ConstellationLines: "Star HD10,700 not found." 
kstars(5607) ConstellationLines::ConstellationLines: "Star HD20,794 not found." 
kstars(5607) ConstellationLines::ConstellationLines: "Star HD2,151 not found." 
kstars(5607) ConstellationLines::ConstellationLines: "Star HD190,248 not found." 
kstars(5607) ConstellationLines::ConstellationLines: "Star HD142,860 not found." 
kstars(5607) ConstellationLines::ConstellationLines: "Star HD1,581 not found." 
kstars(5607) ConstellationLines::ConstellationLines: "Star HD1,581 not found." 
kstars(5607) ConstellationLines::ConstellationLines: "Star HD98,230 not found."

Also there were some lines that were drawing past the view screen when enabling "draw constellation lines"

- Custom settings of the application:
KStars downloaded additional data .dat files

The crash can be reproduced every time.

-- Backtrace:
Application: KStars (kstars), signal: Segmentation fault
[Current thread is 1 (Thread 0x7f310953e780 (LWP 5428))]

Thread 2 (Thread 0x7f30fc6c4700 (LWP 5429)):
#0  0x00007f3104e2b563 in poll () from /lib/libc.so.6
#1  0x00007f30ffeec7d4 in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007f30ffeed0ba in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#3  0x00007f30fce02be4 in ?? () from /usr/lib/libgio-2.0.so.0
#4  0x00007f30fff11d16 in ?? () from /usr/lib/libglib-2.0.so.0
#5  0x00007f310674cda0 in start_thread () from /lib/libpthread.so.0
#6  0x00007f3104e337dd in clone () from /lib/libc.so.6
#7  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f310953e780 (LWP 5428)):
[KCrash Handler]
#6  0x00007f31069ffe2c in QLocalePrivate::stringToLongLong(QString const&, int, bool*, QLocalePrivate::GroupSeparatorMode) const () from /usr/lib/libQtCore.so.4
#7  0x00007f3106a1a412 in QString::toLongLong(bool*, int) const () from /usr/lib/libQtCore.so.4
#8  0x00007f3106a1a539 in QString::toInt(bool*, int) const () from /usr/lib/libQtCore.so.4
#9  0x000000000048975a in _start ()

This bug may be a duplicate of or related to bug 280990, bug 279026.

Possible duplicates by query: bug 280990, bug 279486, bug 279026, bug 256133.

Reported using DrKonqi
Comment 1 David Charles Pyle 2011-10-03 06:14:30 UTC
Created attachment 64152 [details]
New crash information added by DrKonqi

kstars (2.0.0) on KDE Platform 4.7.1 (4.7.1) using Qt 4.7.4

- What I was doing when the application crashed:

Trying to launch Kstars several times. It might be related to this crash because I do seem to recall updating data files to include more stars before this started happening. I cannot run kstars at all. It starts up but crashes immediately. I will try to delete the Kstars data directory and see if this helps.

-- Backtrace (Reduced):
#7  QString (other=..., this=0x7fffbc36f110) at ../../src/corelib/tools/qstring.h:729
#8  QLocalePrivate::stringToLongLong (this=0x2b8e440, number=..., base=10, ok=0x7fffbc36f28f, group_sep_mode=QLocalePrivate::FailOnGroupSeparators) at tools/qlocale.cpp:4490
#9  0x0000003bb9cb7af2 in QString::toLongLong (this=0x3f5a280, ok=0x0, base=10) at tools/qstring.cpp:5499
#10 0x0000003bb9cb7c19 in QString::toInt (this=<optimized out>, ok=0x0, base=<optimized out>) at tools/qstring.cpp:5637
#11 0x0000000000488e62 in AsteroidsComponent::loadData (this=0x4456fc0) at /usr/src/debug/kstars-4.7.1/kstars/skycomponents/asteroidscomponent.cpp:117
Comment 2 David Charles Pyle 2011-10-03 06:20:33 UTC
I just deleted the kstars data files out of the kstars directory (located in /home/<username>/.kde/apps/) and kstars now launches and runs without errors. Something involving adding additional stars dat files causes the crashing on startup. I do not know what it is at the moment but clearing the kstars directory stopped the repeated crashing. So far the program is working again.

I have no attachments to add at the present but will add more data as I find the time.
Comment 3 Dario Andres 2011-10-10 14:27:10 UTC
[Comment from a bug triager]
This issue is being tracked at bug 279026, merging.
Thanks

*** This bug has been marked as a duplicate of bug 279026 ***