[Kstars-devel] KDE/kdeedu/kstars/kstars

Jason Harris kstars at 30doradus.org
Sun Jan 22 20:51:19 CET 2006


Hi Carsten,

Great, thanks.  Looks like the problem is in DeepSkyComponent::init().  
Actually, that's a bit surprising, it's supposed to be way past the init 
stage.  Will look into it.

Your compile error is interesting; those lines were just committed today by 
Laurent Montel; the commit message was: "Fix some compile error read*entry".

I remember reading on k-c-d about how readNumEntry() was going to be replaced 
by readEntry(), and it appears that's what Laurent has done.  Perhaps this 
change is not yet in the latest kdelibs4_snapshot?  Are you sure you have the 
latest?  Mine is very old (late December), and I haven't yet synced Laurent's 
changes into my local tree.

regards,
Jason

On Sunday 22 January 2006 12:14, Carsten Niehaus wrote:
> Am Sonntag, 22. Januar 2006 18:35 schrieb Jason Harris:
> > So, I'm a bit stuck.  If anyone tries running the current code, please
> > post your experiences in this thread.  I guess I'll try inserting some
> > debug statements to track down the crash.  Nothing like brute force :/
>
> Hey Jason, in my gdb I can make it crash:
>
> ASSERT: "i >= 0 && i < size()" in
> file
> /home/kde4/svn/qt-copy/include/QtCore/../../src/corelib/tools/qstring.h,
> line 541
>
> The backtrace:
(snip)
> #7  0x081a0255 in DeepSkyComponent::init (this=0x835dec0)
> at
> /home/kde4/svn/kdeedu/kstars/kstars/skycomponents/deepskycomponent.cpp:118
(snip)
> I needed to create this patch in order to make it compile:
>
> Index: kstars/colorscheme.cpp
> ===================================================================
> --- kstars/colorscheme.cpp      (revision 501361)
> +++ kstars/colorscheme.cpp      (working copy)
> @@ -290,8 +290,8 @@
>         for ( int i=0; i < KeyName.size(); ++i )
>                 setColor( KeyName.at(i), conf->readEntry( KeyName.at(i),
> Default.at( i ) ) );
>
> -       setStarColorMode( conf->readEntry( "StarColorMode", 0 ) );
> -       setStarColorIntensity( conf->readEntry( "StarColorIntensity", 5 )
> ); 
> +//X    setStarColorMode( conf->readEntry( "StarColorMode", 0 ) ); 
> +//X    setStarColorIntensity( conf->readEntry( "StarColorIntensity", 
> 5 ) ); } 
>
>  void ColorScheme::saveToConfig( KConfig *conf ) {
>
> This is current qt-copy with the current kdelibs4_snapshot.
> gcc (GCC) 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu9)
> GNU gdb 6.3-debian
>
> Hope that helps,
>   Carsten

-- 
-------------------------------
KStars: KDE Desktop Planetarium
http://edu.kde.org/kstars


More information about the Kstars-devel mailing list