Failed to create handles lazarus / 1-Linux ---------------------------------------------------------------------- wschulte · 2011-08-21 15:54 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 · 2011-08-21 18:28 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 · 2011-08-21 19:37 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 · 2011-08-21 19:59 Jee Vincent .. thanks for bringing me on the right track  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 · 2011-08-22 04:42 http://superuser.com/questions/69224/in-ubuntu-9-10-how-do-i-check-my- color-depth QuoteType in xwininfo at the terminal then click in a window on screen, the "depth" value is colour depth. ---------------------------------------------------------------------- wschulte · 2011-08-22 04:47 Thanks for that. I saved it in the little booklet