Bug 279026

Summary: KStars crashes on start [QString::*, AsteroidsComponent::loadData, SolarSystemComposite]
Product: [Applications] kstars Reporter: andreas <andreas.hofmann>
Component: generalAssignee: Akarsh Simha <akarsh.simha>
Status: RESOLVED FIXED    
Severity: crash CC: aifesteves, alexey.skladnoy, andresbajotierra, axel.krebs, dcharlespyle, expat3737, it, katay666, kde, lists, loucky81, mail2V.nix, miticko, mk-lists, mutlaqja, olaf, oliver.krueckel, post, proulxfrancois, robert.downing, rt71383mag, sean.s.85, seanmbates, ted, thibault.dutrannoy, thomas.voegtlin, vincecrue, xejakig884
Priority: NOR    
Version: 2.0.0   
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
New crash information added by DrKonqi
New crash information added by DrKonqi
New crash information added by DrKonqi
New crash information added by DrKonqi
New crash information added by DrKonqi
New crash information added by DrKonqi
New crash information added by DrKonqi

Description andreas 2011-08-01 12:27:51 UTC
Application: kstars (2.0.0)
KDE Platform Version: 4.7.00 (4.7.0)
Qt Version: 4.7.2
Operating System: Linux 2.6.38-8-generic x86_64
Distribution: Ubuntu 11.04

-- Information about the crash:
Application: KStars (kstars), signal: Segmentation fault
[KCrash Handler]
#6  ref (this=0x169bd10, number=..., base=10, ok=0x7fff6830feef, group_sep_mode=QLocalePrivate::FailOnGroupSeparators) at ../../include/QtCore/../../src/corelib/arch/qatomic_x86_64.h:121
#7  QString (this=0x169bd10, number=..., base=10, ok=0x7fff6830feef, group_sep_mode=QLocalePrivate::FailOnGroupSeparators) at ../../include/QtCore/../../src/corelib/tools/qstring.h:729
#8  QLocalePrivate::stringToLongLong (this=0x169bd10, number=..., base=10, ok=0x7fff6830feef, group_sep_mode=QLocalePrivate::FailOnGroupSeparators) at tools/qlocale.cpp:4490
#9  0x00007f72d1fcd696 in QString::toLongLong (this=0x2be7da0, ok=0x0, base=10) at tools/qstring.cpp:5504
#10 0x00007f72d1fcd7b9 in QString::toInt (this=<value optimized out>, ok=0x0, base=<value optimized out>) at tools/qstring.cpp:5642
#11 0x000000000048468f in _start ()

The crash can be reproduced every time.

-- Backtrace:
Application: KStars (kstars), signal: Segmentation fault
[KCrash Handler]
#6  ref (this=0x169bd10, number=..., base=10, ok=0x7fff6830feef, group_sep_mode=QLocalePrivate::FailOnGroupSeparators) at ../../include/QtCore/../../src/corelib/arch/qatomic_x86_64.h:121
#7  QString (this=0x169bd10, number=..., base=10, ok=0x7fff6830feef, group_sep_mode=QLocalePrivate::FailOnGroupSeparators) at ../../include/QtCore/../../src/corelib/tools/qstring.h:729
#8  QLocalePrivate::stringToLongLong (this=0x169bd10, number=..., base=10, ok=0x7fff6830feef, group_sep_mode=QLocalePrivate::FailOnGroupSeparators) at tools/qlocale.cpp:4490
#9  0x00007f72d1fcd696 in QString::toLongLong (this=0x2be7da0, ok=0x0, base=10) at tools/qstring.cpp:5504
#10 0x00007f72d1fcd7b9 in QString::toInt (this=<value optimized out>, ok=0x0, base=<value optimized out>) at tools/qstring.cpp:5642
#11 0x000000000048468f in _start ()

Possible duplicates by query: bug 256133.

Reported using DrKonqi
Comment 1 Olaf Schmidt-Wischhöfer 2011-08-02 08:15:46 UTC
Created attachment 62456 [details]
New crash information added by DrKonqi

kstars (2.0.0) on KDE Platform 4.7.00 (4.7.0) "release 6" using Qt 4.7.3

- What I was doing when the application crashed:
KStars crashes during start-up after upgrading to KDE 4.7.

-- Backtrace (Reduced):
#8  QString (this=0x84c6b98, number=..., base=-1, ok=0xbfc8678f, group_sep_mode=4294967295) at ../../src/corelib/tools/qstring.h:729
#9  QLocalePrivate::stringToLongLong (this=0x84c6b98, number=..., base=-1, ok=0xbfc8678f, group_sep_mode=4294967295) at tools/qlocale.cpp:4490
#10 0xb6a03216 in QString::toLongLong (this=0x96cc860, ok=0x0, base=10) at tools/qstring.cpp:5499
#11 0xb6a0346a in QString::toInt (this=0x96cc860, ok=0x0, base=10) at tools/qstring.cpp:5637
#12 0x08086fa2 in AsteroidsComponent::loadData() ()
Comment 2 Olaf Schmidt-Wischhöfer 2011-08-02 08:17:27 UTC
My distribution is OpenSUSE 11.4.
Comment 3 andreas 2011-08-04 12:23:40 UTC
it seems to be a 64bit problem.

i tried the same kstars install on an 32bit 11.04 kubuntu and it worked out of the box.

olaf - is the SUSE in question 64bit, too? then may be you try on an 32bit / same version number and have another look.

i don't know much about linux' internal programming - but the error "stringToLongLong" seems to indicate a wrong format for some variable. which may point to a 64/32bit issue...
Comment 4 Alexey Khudiakov 2011-08-12 15:02:27 UTC
*** Bug 279486 has been marked as a duplicate of this bug. ***
Comment 5 Alexey Khudiakov 2011-08-12 15:17:29 UTC
Could not reproduce with latest version from git on 32 bit system. 

AFAIU calls to QString::toInt should not result in segfaults for any string. So one possibility is that input is not checked sufficiently or there is bug in Qt (which is unlikely).
Comment 6 Alexey Khudiakov 2011-08-12 15:22:47 UTC
*** Bug 279253 has been marked as a duplicate of this bug. ***
Comment 7 Christoph Feck 2011-08-30 22:39:11 UTC
*** Bug 281070 has been marked as a duplicate of this bug. ***
Comment 8 xejakig884 2011-09-08 22:27:06 UTC
Created attachment 63516 [details]
New crash information added by DrKonqi

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

- What I was doing when the application crashed: Started kstars from konsole, following error is displayed:
kstars(13223) ConstellationLines::ConstellationLines: "Star HD98,230 not found." 
KCrash: Application 'kstars' crashing...
KCrash: Attempting to start /usr/lib/kde4/libexec/drkonqi from kdeinit
sock_file=/home/paul/.kde/socket-DELL/kdeinit4__0

-- Backtrace (Reduced):
#7  0x024b1d1c in QLocalePrivate::stringToDouble(QString const&, bool*, QLocalePrivate::GroupSeparatorMode) const () from /usr/lib/i386-linux-gnu/libQtCore.so.4
#8  0x024ce796 in QString::toDouble(bool*) const () from /usr/lib/i386-linux-gnu/libQtCore.so.4
#9  0x080cbdb8 in AsteroidsComponent::loadData (this=0xa538790) at ../../kstars/skycomponents/asteroidscomponent.cpp:119
#10 0x080cfcb0 in SolarSystemComposite::SolarSystemComposite (this=0xa46d6a8, parent=0x96e1b68) at ../../kstars/skycomponents/solarsystemcomposite.cpp:60
#11 0x080c601f in SkyMapComposite::SkyMapComposite (this=0x96e1b60, parent=0x0) at ../../kstars/skycomponents/skymapcomposite.cpp:92
Comment 9 David Charles Pyle 2011-09-24 04:20:51 UTC
Created attachment 63899 [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:

I had just finished upgrading KDE to 4.7.1 using the kde47 repository. Afterward, I noticed that kstars was no longer installed. I reinstalled it. When offered the chance to run it by Get and Remove Software KDE Control Module, I clicked the link and tried to run the program. It would not run. I tried several times with no success.

-- Backtrace (Reduced):
#7  QString (other=..., this=0x7fffbd55ff50) at ../../src/corelib/tools/qstring.h:729
#8  QLocalePrivate::stringToLongLong (this=0xd5f440, number=..., base=10, ok=0x7fffbd5600cf, group_sep_mode=QLocalePrivate::FailOnGroupSeparators) at tools/qlocale.cpp:4490
#9  0x00007fbff5a0caf2 in QString::toLongLong (this=0x21354f0, ok=0x0, base=10) at tools/qstring.cpp:5499
#10 0x00007fbff5a0cc19 in QString::toInt (this=<optimized out>, ok=0x0, base=<optimized out>) at tools/qstring.cpp:5637
#11 0x0000000000488e62 in AsteroidsComponent::loadData (this=0x2663660) at /usr/src/debug/kstars-4.7.1/kstars/skycomponents/asteroidscomponent.cpp:117
Comment 10 David Charles Pyle 2011-09-24 04:54:11 UTC
Created attachment 63900 [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:

I reinstalled kstars to ensure 4.7.1 version was installed. Still crashed repeatedly on startup.

-- Backtrace (Reduced):
#7  QString (other=..., this=0x7fff9f353c20) at ../../src/corelib/tools/qstring.h:729
#8  QLocalePrivate::stringToLongLong (this=0x1f838a0, number=..., base=10, ok=0x7fff9f353d9f, group_sep_mode=QLocalePrivate::FailOnGroupSeparators) at tools/qlocale.cpp:4490
#9  0x00007fc1e9ac2af2 in QString::toLongLong (this=0x314b570, ok=0x0, base=10) at tools/qstring.cpp:5499
#10 0x00007fc1e9ac2c19 in QString::toInt (this=<optimized out>, ok=0x0, base=<optimized out>) at tools/qstring.cpp:5637
#11 0x0000000000488e62 in AsteroidsComponent::loadData (this=0x3847ed0) at /usr/src/debug/kstars-4.7.1/kstars/skycomponents/asteroidscomponent.cpp:117
Comment 11 David Charles Pyle 2011-09-24 07:04:22 UTC
Created attachment 63901 [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:

Ran kstars in a terminal to get further information regarding the crash. Here is the output:

stars(8281) KStarsDateTime::fromString: "Could not parse Date/Time string: " "" 
kstars(8281) KStarsDateTime::fromString: "Valid date formats: " 
kstars(8281) KStarsDateTime::fromString:   1950-02-25   ;  1950-02-25T05:30:00 
kstars(8281) KStarsDateTime::fromString:   25 Feb 1950  ;  25 Feb 1950 05:30:00 
kstars(8281) KStarsDateTime::fromString:   Sat Feb 25 1950  ;  Sat Feb 25 05:30:00 1950 
kstars(8281) ConstellationLines::ConstellationLines: "Star HD61,421 not found." 
kstars(8281) ConstellationLines::ConstellationLines: "Star HD10,700 not found." 
kstars(8281) ConstellationLines::ConstellationLines: "Star HD20,794 not found." 
kstars(8281) ConstellationLines::ConstellationLines: "Star HD2,151 not found." 
kstars(8281) ConstellationLines::ConstellationLines: "Star HD190,248 not found." 
kstars(8281) ConstellationLines::ConstellationLines: "Star HD142,860 not found." 
kstars(8281) ConstellationLines::ConstellationLines: "Star HD1,581 not found." 
kstars(8281) ConstellationLines::ConstellationLines: "Star HD1,581 not found." 
kstars(8281) ConstellationLines::ConstellationLines: "Star HD98,230 not found." 
KCrash: Application 'kstars' crashing...
KCrash: Attempting to start /usr/libexec/kde4/drkonqi from kdeinit
sock_file=/home/dcpyle/.kde/socket-Sci-Fi/kdeinit4__0

[1]+  Stopped                 kstars

Looks like it cannot find some data after the upgrade to KDE 4.7.1 on Fedora 15. If I find out anything more I'll let everyone know.

-- Backtrace (Reduced):
#7  QString (other=..., this=0x7fff5a1e3df0) at ../../src/corelib/tools/qstring.h:729
#8  QLocalePrivate::stringToLongLong (this=0x17ee620, number=..., base=10, ok=0x7fff5a1e3f6f, group_sep_mode=QLocalePrivate::FailOnGroupSeparators) at tools/qlocale.cpp:4490
#9  0x00007f3f54c34af2 in QString::toLongLong (this=0x2b807e0, ok=0x0, base=10) at tools/qstring.cpp:5499
#10 0x00007f3f54c34c19 in QString::toInt (this=<optimized out>, ok=0x0, base=<optimized out>) at tools/qstring.cpp:5637
#11 0x0000000000488e62 in AsteroidsComponent::loadData (this=0x30d67b0) at /usr/src/debug/kstars-4.7.1/kstars/skycomponents/asteroidscomponent.cpp:117
Comment 12 katay666 2011-10-03 19:02:59 UTC
Created attachment 64174 [details]
New crash information added by DrKonqi

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

- What I was doing when the application crashed:

just starting the application, after loading the data it crashes

-- Backtrace (Reduced):
#8  QString (this=0x910a690, number=..., base=10, ok=0xbf83db4f, group_sep_mode=QLocalePrivate::FailOnGroupSeparators) at ../../include/QtCore/../../src/corelib/tools/qstring.h:729
#9  QLocalePrivate::stringToLongLong (this=0x910a690, number=..., base=10, ok=0xbf83db4f, group_sep_mode=QLocalePrivate::FailOnGroupSeparators) at tools/qlocale.cpp:4490
#10 0x008376eb in QString::toLongLong (this=0xa0f87e0, ok=0x0, base=10) at tools/qstring.cpp:5504
#11 0x00837926 in QString::toInt (this=0xa0f87e0, ok=0x0, base=10) at tools/qstring.cpp:5642
#12 0x0809058f in _start ()
Comment 13 Dario Andres 2011-10-10 14:27:03 UTC
[Comment from a bug triager]
From bug 282252 (KDE SC XX):
- 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

---

From bug 282252 comment 1:
- 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.
- Update:
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 14 Dario Andres 2011-10-10 14:27:06 UTC
*** Bug 280990 has been marked as a duplicate of this bug. ***
Comment 15 Dario Andres 2011-10-10 14:27:10 UTC
*** Bug 282252 has been marked as a duplicate of this bug. ***
Comment 16 Dario Andres 2011-10-10 14:27:12 UTC
*** Bug 283676 has been marked as a duplicate of this bug. ***
Comment 17 Christoph Feck 2011-10-15 12:30:55 UTC
*** Bug 284042 has been marked as a duplicate of this bug. ***
Comment 18 Alexey Khudiakov 2011-10-15 20:13:47 UTC
*** Bug 284109 has been marked as a duplicate of this bug. ***
Comment 19 Alexey Khudiakov 2011-10-15 20:57:33 UTC
Could anyone experiencing crash attach a tarball with contents of ~/.kde/apps/kstars (or ~/.kde/share/apps/kstars it depends on distribution). Bug may manifest itself only with specific set of options and that's why it hadn't been reproduced yet.
Comment 20 Josias Wolhuter 2011-10-19 17:56:17 UTC
a(In reply to comment #19)
> Could anyone experiencing crash attach a tarball with contents of
> ~/.kde/apps/kstars (or ~/.kde/share/apps/kstars it depends on distribution).
> Bug may manifest itself only with specific set of options and that's why it
> hadn't been reproduced yet.

Attachment was too large. 1.8 MB
posting it at http://www.captainhawkins.info/kstars.tar

Running archlinux on amd64 (phenom II X3), nvidia driver, XFCE4 with gnome and KDE4 in background
Comment 21 David Charles Pyle 2011-10-20 15:16:41 UTC
(In reply to comment #19)
> Could anyone experiencing crash attach a tarball with contents of
> ~/.kde/apps/kstars (or ~/.kde/share/apps/kstars it depends on distribution).
> Bug may manifest itself only with specific set of options and that's why it
> hadn't been reproduced yet.

I am no longer experiencing this crash, at least not since I removed the files from the program's data directory in my home folder and uninstalled all installed KStars Add-ins. I have since upgraded KDE several times until I am now at 4.7.2. Also recently updated were Qt components.

KStars still is as version 2.0.0.

Current version of Qt now displays 4.8.0 RC1 rather than 4.8.0 beta. Exact package version is 4.8.0-0.15.rc1.fc16 and core package name is qt.x86_64. qt.i686 package is not installed.

I now am using Fedora 16-Beta x86_64. At the time of the crashes I was using Fedora 15 x86_64, followed by Fedora 16-Beta of the same architecture.
Comment 22 Christoph Feck 2011-10-20 18:17:51 UTC
*** Bug 284561 has been marked as a duplicate of this bug. ***
Comment 23 DancesWithWords 2011-10-20 18:55:19 UTC
(In reply to comment #21)
> (In reply to comment #19)
> > Could anyone experiencing crash attach a tarball with contents of
> > ~/.kde/apps/kstars (or ~/.kde/share/apps/kstars it depends on distribution).
> > Bug may manifest itself only with specific set of options and that's why it
> > hadn't been reproduced yet.
> 
> I am no longer experiencing this crash, at least not since I removed the files
> from the program's data directory in my home folder and uninstalled all
> installed KStars Add-ins. I have since upgraded KDE several times until I am
> now at 4.7.2. Also recently updated were Qt components.
> 
> KStars still is as version 2.0.0.
> 
> Current version of Qt now displays 4.8.0 RC1 rather than 4.8.0 beta. Exact
> package version is 4.8.0-0.15.rc1.fc16 and core package name is qt.x86_64.
> qt.i686 package is not installed.
> 
> I now am using Fedora 16-Beta x86_64. At the time of the crashes I was using
> Fedora 15 x86_64, followed by Fedora 16-Beta of the same architecture.


If you do that Kstars will still say the data is installed.  If you try to uninstall it from the panel and restart Kstars you will notice it still says the various packages are installed.

To remove that information you need to delete:
~/.kde4/share/apps/knewstuff3/kstars.knsregistry

I run Kstars on Gentoo, 
Qt: 4.7.4
KDE Development Platform: 4.7.2 (4.7.2)
KStars: 2.0.0

The only time I find that Kstars fails to launch from a clean install is if I try to install UNSO catalogue.
Comment 24 DancesWithWords 2011-10-20 18:57:48 UTC
(In reply to comment #23)
> (In reply to comment #21)
> > (In reply to comment #19)
> > > Could anyone experiencing crash attach a tarball with contents of
> > > ~/.kde/apps/kstars (or ~/.kde/share/apps/kstars it depends on distribution).
> > > Bug may manifest itself only with specific set of options and that's why it
> > > hadn't been reproduced yet.
> > 
> > I am no longer experiencing this crash, at least not since I removed the files
> > from the program's data directory in my home folder and uninstalled all
> > installed KStars Add-ins. I have since upgraded KDE several times until I am
> > now at 4.7.2. Also recently updated were Qt components.
> > 
> > KStars still is as version 2.0.0.
> > 
> > Current version of Qt now displays 4.8.0 RC1 rather than 4.8.0 beta. Exact
> > package version is 4.8.0-0.15.rc1.fc16 and core package name is qt.x86_64.
> > qt.i686 package is not installed.
> > 
> > I now am using Fedora 16-Beta x86_64. At the time of the crashes I was using
> > Fedora 15 x86_64, followed by Fedora 16-Beta of the same architecture.
> 
> 
> If you do that Kstars will still say the data is installed.  If you try to
> uninstall it from the panel and restart Kstars you will notice it still says
> the various packages are installed.
> 
> To remove that information you need to delete:
> ~/.kde4/share/apps/knewstuff3/kstars.knsregistry
> 
> I run Kstars on Gentoo, 
> Qt: 4.7.4
> KDE Development Platform: 4.7.2 (4.7.2)
> KStars: 2.0.0
> 
> The only time I find that Kstars fails to launch from a clean install is if I
> try to install UNSO catalogue.

Oh, forgot to mention I'm running a 64bit system.
Comment 25 David Charles Pyle 2011-10-20 20:05:41 UTC
(In reply to comment #23)
> (In reply to comment #21)
> > (In reply to comment #19)
> > > Could anyone experiencing crash attach a tarball with contents of
> > > ~/.kde/apps/kstars (or ~/.kde/share/apps/kstars it depends on distribution).
> > > Bug may manifest itself only with specific set of options and that's why it
> > > hadn't been reproduced yet.
> > 
> > I am no longer experiencing this crash, at least not since I removed the files
> > from the program's data directory in my home folder and uninstalled all
> > installed KStars Add-ins. I have since upgraded KDE several times until I am
> > now at 4.7.2. Also recently updated were Qt components.
> > 
> > KStars still is as version 2.0.0.
> > 
> > Current version of Qt now displays 4.8.0 RC1 rather than 4.8.0 beta. Exact
> > package version is 4.8.0-0.15.rc1.fc16 and core package name is qt.x86_64.
> > qt.i686 package is not installed.
> > 
> > I now am using Fedora 16-Beta x86_64. At the time of the crashes I was using
> > Fedora 15 x86_64, followed by Fedora 16-Beta of the same architecture.
> 
> 
> If you do that Kstars will still say the data is installed.  If you try to
> uninstall it from the panel and restart Kstars you will notice it still says
> the various packages are installed.
> 
> To remove that information you need to delete:
> ~/.kde4/share/apps/knewstuff3/kstars.knsregistry
> 
> I run Kstars on Gentoo, 
> Qt: 4.7.4
> KDE Development Platform: 4.7.2 (4.7.2)
> KStars: 2.0.0
> 
> The only time I find that Kstars fails to launch from a clean install is if I
> try to install UNSO catalogue.

That did not happen on my system. Everything was listed as being uninstalled (all buttons have text that reads "Install" on them) after doing what I did. Of course, as I mentioned above, I manually uninstalled each entry while in the process of deleting the entire contents of the folder while leaving the data folder inside my home folder.

UNSO sounds familiar. That may be part of the cause of the crash after all. I'll have to experiment with that.
Comment 26 katay666 2011-10-21 21:01:40 UTC
I just checked that kstar crashes at sturtup.
My setup is kubuntu 11.04 32bit.
The kstar directory and kstarrc are in this link

https://docs.google.com/leaf?id=0BwMe5ZPVTbX1MTdmYjAwMGQtNzBhYS00MmFjLWE5M2EtOTQxMTNmNmQ1NTZm&hl=en_US
Comment 27 Alexey Khudiakov 2011-10-22 09:39:11 UTC
*** Bug 283159 has been marked as a duplicate of this bug. ***
Comment 28 Alexey Khudiakov 2011-10-22 09:42:54 UTC
(In reply to comment #20)
> Attachment was too large. 1.8 MB
> posting it at http://www.captainhawkins.info/kstars.tar

Finally I'm able to reproduce the crash. It look like crash really related to memory corruption.
Comment 29 Alexey Khudiakov 2011-10-22 10:10:26 UTC
*** Bug 283582 has been marked as a duplicate of this bug. ***
Comment 30 Marko Käning 2011-10-22 12:45:26 UTC
Hi, I observed this crash also on MacOSX with kstars installed via MacPorts, but only after I had installed additional components from inside kstars.

dtrace showed that said asteroids.dat is the last file opened before DrKonqi is called:
---
  0  18659                       open:entry kstars /opt/macports-test/share/apps/kstars/neptune.R4.vsop
  0  18659                       open:entry kstars /Users/marko/Library/Preferences/KDE/share/apps/kstars/asteroids.dat
  0  19445              open_nocancel:entry taskgated /opt/macports-test/lib/kde4/libexec/drkonqi.app
---
Comment 31 Rafał Kułaga 2011-10-27 23:52:30 UTC
Git commit b50eb4458873325a1ae50e1f9ef3156630be496a by Rafał Kułaga.
Committed on 28/10/2011 at 00:44.
Pushed by kulaga into branch 'master'.

Committing Alexey's fix for 279026 bug.

New code expect astroids.dat and comets.dat in csv format with
23 and 21 columns respectively. But it doesn't check that format
is correct and this results in reading beyond end of array
with results we all were able to observe

Trivial to fix if spotted.

CCBUG: 279026

M  +8    -10   kstars/skycomponents/asteroidscomponent.cpp
M  +4    -7    kstars/skycomponents/cometscomponent.cpp

http://commits.kde.org/kstars/b50eb4458873325a1ae50e1f9ef3156630be496a
Comment 32 Rafał Kułaga 2011-10-28 00:05:53 UTC
Git commit e58f1cf99e1b508bf2f72c1cd6c58dfa1ae66783 by Rafał Kułaga.
Committed on 28/10/2011 at 00:44.
Pushed by kulaga into branch 'KDE/4.7'.

Committing Alexey's fix for 279026 bug.

New code expect astroids.dat and comets.dat in csv format with
23 and 21 columns respectively. But it doesn't check that format
is correct and this results in reading beyond end of array
with results we all were able to observe

Trivial to fix if spotted.

CCBUG: 279026

M  +8    -10   kstars/skycomponents/asteroidscomponent.cpp
M  +74   -77   kstars/skycomponents/cometscomponent.cpp

http://commits.kde.org/kstars/e58f1cf99e1b508bf2f72c1cd6c58dfa1ae66783
Comment 33 Alexey Khudiakov 2011-10-28 08:40:50 UTC
Thank you everyone for reporting. Bug is fixed now. Fix will appear in 4.7.3 and 4.8. 

While you didn't get fix yet there is simple workaround. Delete files comets.dat and asteroids.dat from ~/.kde/share/apps/kstars.
Comment 34 rt71383mag 2011-11-01 22:38:12 UTC
Created attachment 65133 [details]
New crash information added by DrKonqi

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

- What I was doing when the application crashed:

Starting the KStars application. It crashes at startup each time. I am using Ubuntu 11.10 64 bit OS.

-- Backtrace (Reduced):
#6  0x00007fcb4aff7f6c in QLocalePrivate::stringToLongLong(QString const&, int, bool*, QLocalePrivate::GroupSeparatorMode) const () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#7  0x00007fcb4b012552 in QString::toLongLong(bool*, int) const () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#8  0x00007fcb4b012679 in QString::toInt(bool*, int) const () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#9  0x000000000048934a in AsteroidsComponent::loadData (this=0x342c160) at ../../kstars/skycomponents/asteroidscomponent.cpp:117
#10 0x000000000048cc8c in SolarSystemComposite::SolarSystemComposite (this=0x2cd7d30, parent=<optimized out>) at ../../kstars/skycomponents/solarsystemcomposite.cpp:60
Comment 35 xejakig884 2011-11-07 06:21:36 UTC
Thanks Alexey, KDE 4.7.3 downloaded and bug confirmed as fixed.
Comment 36 Christoph Feck 2011-11-07 20:15:10 UTC
*** Bug 285752 has been marked as a duplicate of this bug. ***
Comment 37 Christoph Feck 2011-11-13 10:02:11 UTC
*** Bug 286469 has been marked as a duplicate of this bug. ***
Comment 38 thibault.dutrannoy 2011-11-14 09:00:42 UTC
Created attachment 65643 [details]
New crash information added by DrKonqi

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

- What I was doing when the application crashed: i have deleted comets.dat and asteroids.dat with nautilus but the program always crash after lunch.

-- Backtrace (Reduced):
#7  0xb6741ef8 in QString::trimmed() const () from /usr/lib/i386-linux-gnu/libQtCore.so.4
#8  0xb6725b78 in QLocalePrivate::stringToLongLong(QString const&, int, bool*, QLocalePrivate::GroupSeparatorMode) const () from /usr/lib/i386-linux-gnu/libQtCore.so.4
#9  0xb6742426 in QString::toLongLong(bool*, int) const () from /usr/lib/i386-linux-gnu/libQtCore.so.4
#10 0xb674267a in QString::toInt(bool*, int) const () from /usr/lib/i386-linux-gnu/libQtCore.so.4
#11 0x080cd6b5 in CometsComponent::loadData (this=0x981b8f0) at ../../kstars/skycomponents/cometscomponent.cpp:114
Comment 39 Akarsh Simha 2011-11-19 13:03:32 UTC
*** Bug 286987 has been marked as a duplicate of this bug. ***
Comment 40 miticko 2011-11-20 21:04:20 UTC
Created attachment 65880 [details]
New crash information added by DrKonqi

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

- Unusual behavior I noticed:

Executable: kstars PID: 2566 Signal: Segmentation fault (11)

-- Backtrace (Reduced):
#7  0x063fed8c in QLocalePrivate::stringToDouble(QString const&, bool*, QLocalePrivate::GroupSeparatorMode) const () from /usr/lib/i386-linux-gnu/libQtCore.so.4
#8  0x0641b806 in QString::toDouble(bool*) const () from /usr/lib/i386-linux-gnu/libQtCore.so.4
#9  0x080cbdb8 in AsteroidsComponent::loadData (this=0xaec7488) at ../../kstars/skycomponents/asteroidscomponent.cpp:119
#10 0x080cfcb0 in SolarSystemComposite::SolarSystemComposite (this=0xaabea88, parent=0xa2205d0) at ../../kstars/skycomponents/solarsystemcomposite.cpp:60
#11 0x080c601f in SkyMapComposite::SkyMapComposite (this=0xa2205c8, parent=0x0) at ../../kstars/skycomponents/skymapcomposite.cpp:92
Comment 41 Christoph Feck 2011-11-21 10:31:41 UTC
*** Bug 287118 has been marked as a duplicate of this bug. ***
Comment 42 Alexey Khudiakov 2011-11-24 14:37:10 UTC
*** Bug 287463 has been marked as a duplicate of this bug. ***
Comment 43 Akarsh Simha 2011-11-25 22:15:40 UTC
*** Bug 287569 has been marked as a duplicate of this bug. ***
Comment 44 Ted Saker 2011-11-26 02:31:30 UTC
Deleted asteroids.dat and comets.dat, still crashes on start-up. What's the fix?
Comment 45 David Charles Pyle 2011-11-27 02:30:49 UTC
(In reply to comment #44)
> Deleted asteroids.dat and comets.dat, still crashes on start-up. What's the
> fix?

Sometimes you have to clear the contents of the entire application directory in your home directory (leave the application directory there so it does not have to be recreated at program launch, as that also can generate errors from time to time).

After this, the program should load. Open up the dialog you used to install the asteroids data files and check to make sure each option's button doesn't say "Installed." Any that do, click the button to uninstall that option. Close the program and launch it again. Reinstall all the data you had installed before. 

That should do it.
Comment 46 Myriam Schweingruber 2011-11-29 18:09:33 UTC
*** Bug 287735 has been marked as a duplicate of this bug. ***
Comment 47 Anne-Marie Mahfouf 2011-12-08 10:08:09 UTC
*** Bug 288353 has been marked as a duplicate of this bug. ***
Comment 48 Christoph Feck 2012-01-11 22:02:08 UTC
*** Bug 291303 has been marked as a duplicate of this bug. ***
Comment 49 Akarsh Simha 2012-09-02 06:53:56 UTC
*** Bug 303007 has been marked as a duplicate of this bug. ***