[Kde-games-devel] Freeze in 6 weeks
Mathias Kraus
k.hias at gmx.de
Tue Feb 17 21:31:05 UTC 2015
Am Dienstag, 17. Februar 2015, 00:21:01 schrieb Albert Astals Cid:
> El Divendres, 13 de febrer de 2015, a les 07:21:10, laurent Montel va escriure:
> > Le Thursday 12 February 2015 23:36:19 Albert Astals Cid a écrit :
> > > El Dimecres, 11 de febrer de 2015, a les 07:48:03, laurent Montel va
> > > > - granatier (I hope to remove all kdelibs4support) and merge it.
> > >
> > > It's crashing for me at the moment
> >
> > Ah ?
> > I need more info for it as I can't reproduce.
> >
> > Perhaps it tries to load an invalid theme no ?
>
>
> diff --git a/src/gamescene.cpp b/src/gamescene.cpp
> index fb574f3..47bfd0b 100644
> --- a/src/gamescene.cpp
> +++ b/src/gamescene.cpp
> @@ -70,7 +70,7 @@ GameScene::GameScene(Game* p_game, KgThemeProvider* p_themeProvider) : m_game(p_
> {
> const QString desktopPath = players[i]->getDesktopFilePath();
> KgTheme* theme = new KgTheme(desktopPath.toUtf8());
> - theme->readFromDesktopFile(QStandardPaths::locate(QStandardPaths::DataLocation, desktopPath));
> + theme->readFromDesktopFile(desktopPath);
> KGameRenderer* playerRenderer = new KGameRenderer(theme);
> m_mapRendererPlayerItems.insert(players[i], playerRenderer);
> playerItem = new PlayerItem(players[i], playerRenderer);
>
> This fixes the crash for me.
Yes, this is the right fix. Please commit.
> Does it still work for you with it?
>
> Cheers,
> Albert
>
> >
> > > ==14878== Invalid read of size 8
> > > ==14878== at 0x5BD146A: KgTheme::name() const (in
> > > /home/kdeunstable/instalado/lib/x86_64-linux-gnu/libKF5KDEGames.so.6.1.0)
> > > ==14878== by 0x5BC551E: KGameRendererPrivate::_k_setTheme(KgTheme
> > > const*) (in
> > > /home/kdeunstable/instalado/lib/x86_64-linux-gnu/libKF5KDEGames.so.6.1.0)
> > > ==14878== by 0x5BC600E: KGameRenderer::frameCount(QString const&) const
> > > (in
> > > /home/kdeunstable/instalado/lib/x86_64-linux-gnu/libKF5KDEGames.so.6.1.0)
> > > ==14878== by 0x5BC67B4: KGameRenderer::spriteExists(QString const&)
> > > const (in
> > > /home/kdeunstable/instalado/lib/x86_64-linux-gnu/libKF5KDEGames.so.6.1.0)
> > > ==14878== by 0x49010D: PlayerItem::PlayerItem(Player*, KGameRenderer*)
> > > (in /home/kdeunstable/instalado/bin/granatier)
> > > ==14878== by 0x46F147: GameScene::GameScene(Game*, KgThemeProvider*)
> > > (in
> > > /home/kdeunstable/instalado/bin/granatier)
> > > ==14878== by 0x486F93: MainWindow::initGame() (in
> > > /home/kdeunstable/instalado/bin/granatier)
> > > ==14878== by 0x4869BF: MainWindow::MainWindow() (in
> > > /home/kdeunstable/instalado/bin/granatier)
> > > ==14878== by 0x485FBF: main (in
> > > /home/kdeunstable/instalado/bin/granatier)
> > >
> > > Cheers,
> > >
> > > Albert
> > >
> > > > The freeze is the 25 so others games are not kdelibs4 free I need to
> > > > focus
> > > > some some applications. Do you have a some specific apps that you want
> > > > that
> > > > we release with 15.04 ?
> > > >
> > > > Regards
> > > > _______________________________________________
> > > > kde-games-devel mailing list
> > > > kde-games-devel at kde.org
> > > > https://mail.kde.org/mailman/listinfo/kde-games-devel
>
> _______________________________________________
> kde-games-devel mailing list
> kde-games-devel at kde.org
> https://mail.kde.org/mailman/listinfo/kde-games-devel
More information about the kde-games-devel
mailing list