[Panel-devel] Plasma + 3d Globe == crash

Aaron J. Seigo aseigo at kde.org
Sun Oct 28 18:22:06 CET 2007


On Sunday 28 October 2007, Chris Howells wrote:
> Adding a 3D globe to my plasma has been crashing since I can remember. I
> finally decided to have a look yesterday. The problem is in these few
> lines of code (some extra debugging that I added is in there too:
>
> // Get OpenGL version
> QString glversionstring = QString((const char*)glGetString(GL_VERSION));
> kDebug() << "error is " << glGetError();
> kDebug() << "GLVERSIONSTRING is " << glversionstring;
> QStringList glversioninfo =
> glversionstring.left(glversionstring.indexOf(' ')).split('.');
> kDebug() << "glversioninfo has " << glversioninfo.count() ;
>
> Leads to this output
>
> plasma(17333) BlueMarble::initializeGL:
> plasma(17333) initGL: error is  0

ok, so while this shouldn't be happening (it should be built if openGL support 
isn't found?) there should probably be a line right after the glversionstring 
one like:

if (glGetError() != GL_NO_ERROR || glversionstring.isEmpty()) {
    setFailedToLaunch(true);
    return;
}

however, it's odd that the error is GL_NO_ERROR (which is always 0) and yet 
this happens =)

-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE core developer sponsored by Trolltech
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/panel-devel/attachments/20071028/90848191/attachment.pgp 


More information about the Panel-devel mailing list