Results 1 to 4 of 4

Thread: clanlib crashes debian linux

  1. #1

    Default clanlib crashes debian linux

    Hello,

    i have installed current clanlib from source on a debian 32 bit linux system on a notebook with intel graphics.

    when i start the demos (e.g. pacman), the screen looks messed up, the pacman shows lot of blue dots and you can only slightly guess a maze. kinda like if rgba values would have been switched.

    then after 1 or 2 seconds the whole system locks, no reaction at all, even killing x is not possible anymore, all i can do is switch off.

    i can run other opengl or sdl programs without problem.

    what could this be?

  2. #2
    ClanLib Developer
    Join Date
    May 2007
    Posts
    1,824

    Default

    I assume that you are using ClanLib 2.0.3.

    The intel graphics driver for linux has problems for OpenGL 2.0 and above.

    Try the GL1 target, that uses OpenGL 1.3.

    See attached patch to modify pacman for the GL1 target

    Note, if you are using the release ClanLib 2.0.3 (not SVN), you will see boxes around the map blocks. This can be fixed by modifying Sources/Display/2D/sprite_impl.cpp --> CL_Sprite_Impl::CL_Sprite_Impl(CL_GraphicContext &gc) --> change "linear_filter(false)" to "linear_filter(true)". (Fixed in SVN)

    "then after 1 or 2 seconds the whole system locks, no reaction at all, even killing x is not possible anymore, all i can do is switch off."
    This is usually caused by a memory leak
    Attached Files Attached Files

  3. #3

    Default

    thanx works fine

    is it better to make some kind of fix like to use gl1 only if the graphics card is from intel otherwise gl, or is there not much difference anyways?

  4. #4
    ClanLib Developer
    Join Date
    May 2007
    Posts
    1,824

    Default

    Great It's good to know that the GL1 target works on Intel graphic cards.

    It would be useful to know where it crashes, then we could trap it at that point (and throw an exception)

    Maybe we should default to GL1 for the examples that only require OpenGL 1.3. ?

    It's a difficult one to answer. Since the GL target (OpenGL V2.0 and above) perfoms a lot better on NVidia and ATI cards.

Similar Threads

  1. Using GTK for ClanLib 0.9 Linux
    By rombust in forum Official ClanLib SDK Forums
    Replies: 3
    Last Post: 09-23-2008, 04:03 PM
  2. Installing ClanLib 0.8 and ClanLib 0.9 on linux
    By rombust in forum Official ClanLib SDK Forums
    Replies: 4
    Last Post: 07-15-2008, 09:51 AM
  3. ClanLib crashes when creating CL_DisplayWindow with target SDL.
    By Otto (Strange) Halmén in forum Official ClanLib SDK Forums
    Replies: 1
    Last Post: 01-19-2008, 08:38 AM
  4. Corrupted images and random crashes with ClanLib 0.8 on Ubuntu Feisty
    By xmoby in forum Official ClanLib SDK Forums
    Replies: 18
    Last Post: 10-30-2007, 05:01 PM
  5. Patch for ClanLib 0.9 svn 368 (Linux compatibility)
    By rombust in forum Official ClanLib SDK Forums
    Replies: 7
    Last Post: 05-16-2007, 08:02 AM

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •