Recent

Author Topic: Failed to create handles  (Read 6966 times)

wschulte

  • New Member
  • *
  • Posts: 39
Failed to create handles
« on: August 21, 2011, 05:54:19 pm »
After installing Lazarus 0.9.30 on an virtual Ubuntu 11.04 (kvm, 32 bit on a 64 bit machines) i get an error message telling "Failed to create handles".
In the terminal i get the following messages (after pressing "cancel" to stop the starting):
# startlazarus
ERROR in LCL: TGtk2WidgetSet.CreateBitmapFromRawImage Incompatible BitsPerPixel
Creating gdb catchable error:
  $080C9AB8
  $081D17C7
  $080FB104
  $080FD8CB
  $081023AB
  $0810254D
  $0810A9C1
  $08225669
  $0819B1A4
TRasterImage.BitmapHandleNeeded: Unable to create handles, using default
TLazarusManager.Run starting /usr/lib/lazarus/0.9.30/lazarus ...
TMainIDE.ParseCmdLineOptions:
  PrimaryConfigPath="/home/manager/.lazarus"
  SecondaryConfigPath="/etc/lazarus"
NOTE: editor options config file not found - using defaults
NOTE: miscellaneous options file not found - using defaults
NOTE: codetools config file not found - using defaults
ERROR in LCL: TGtk2WidgetSet.CreateBitmapFromRawImage Incompatible BitsPerPixel
Creating gdb catchable error:
  $080A6158
  $08215C87
  $0813F5C4
  $08141D8B
  $0814686B
  $081494A7
  $0815ACC6
  $08159A09
  $082A5F6F
TRasterImage.BitmapHandleNeeded: Unable to create handles, using default
ERROR in LCL: TGtk2WidgetSet.CreateBitmapFromRawImage Incompatible BitsPerPixel
Creating gdb catchable error:
  $080A6158
  $08215C87
  $0813F5C4
  $081895B5
  $081480F3
  $08148B59
  $08148F97
  $0815AC78
  $08159A09
[TMainIDE.Destroy] A
[TMainIDE.Destroy] B  -> inherited Destroy... TMainIDE
[TMainIDE.Destroy] END
[FORMS.PP] ExceptionOccurred
  Sender=FPImageException
  Exception=Failed to create handles
  Stack trace:
  $081895CF
  $081480F3
  $08148B59
  $08148F97
  $0815AC78
  $08159A09
  $082A5F6F
  $0822DE4E
  $08142AEF
  $0814711B
  $08148757
  $08147C1A
  $0822D89B
  $08147CA4
  $0822D78D
  $085672D3
  $0856604C
TApplication.HandleException Failed to create handles
  Stack trace:
  $081895CF
  $081480F3
  $08148B59
  $08148F97
  $0815AC78
  $08159A09
  $082A5F6F
  $0822DE4E
  $08142AEF
  $0814711B
  $08148757
  $08147C1A
  $0822D89B
  $08147CA4
  $0822D78D
  $085672D3
  $0856604C

(lazarus:8696): Gdk-CRITICAL **: IA__gdk_window_get_state: assertion `GDK_IS_WINDOW (window)' failed
#

I suspect a problem with GTK is around but what ? The system is updated and the same installation on a (hardware) 64bit machine works fine.

Can anybody tell me what i did wrong ?

Greetz, Willy.

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
Re: Failed to create handles
« Reply #1 on: August 21, 2011, 08:28:26 pm »
Maybe it has something to do with number of colors in your display. IIRC, the LCL does not work on palleted display, i.e. less than 15/16 bits per pixel.

wschulte

  • New Member
  • *
  • Posts: 39
Re: Failed to create handles
« Reply #2 on: August 21, 2011, 09:37:58 pm »
The thought bout the video had passed my mind too, but .. how do I determine the colordepth ? The display is 1024x768, but nobody is talking about colordepth. I havent got a clue how to determine that, certainly not for a virtual installation.
Can someone guide me with this ?


wschulte

  • New Member
  • *
  • Posts: 39
Re: Failed to create handles
« Reply #3 on: August 21, 2011, 09:59:23 pm »
Jee Vincent .. thanks for bringing me on the right track  :D
I did a bit more experirmenting and saw that the video model in Q]"]>Blocked was Cirrus .. so i changed it to vmvga .. got a lot more resolutions (though i dont bother much about that) but more important .. lazarus starts and runs fine !
Still a bit wondering about how to determine the colordepth that is being used ..

Anyway .. it runs .. thanks on that.

User137

  • Hero Member
  • *****
  • Posts: 1791
    • Nxpascal home
Re: Failed to create handles
« Reply #4 on: August 22, 2011, 06:42:11 am »
http://superuser.com/questions/69224/in-ubuntu-9-10-how-do-i-check-my-color-depth

Quote
Type in xwininfo at the terminal then click in a window on screen, the "depth" value is colour depth.

wschulte

  • New Member
  • *
  • Posts: 39
Re: Failed to create handles
« Reply #5 on: August 22, 2011, 06:47:04 am »
Thanks for that. I saved it in the little booklet  ;)

 

TinyPortal © 2005-2018