Recent

Author Topic: X Window System error  (Read 4205 times)

Timewarp

  • Full Member
  • ***
  • Posts: 144
X Window System error
« on: July 30, 2014, 12:01:42 pm »
png testsuite (tools menu) crashes if select "basn0g01 - black & white"

Same happens if try to load that png to TImage component.

Xubuntu 14.04, Lazarus svn / FPC2.6.4. (in windows it's fine). Others see this?
Code: [Select]
timewarp@tw:~/lazarus/test/manual/png$ ./project1
The program 'project1' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadMatch (invalid parameter attributes)'.
  (Details: serial 3242 error_code 8 request_code 62 minor_code 0)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)
timewarp@tw:~/lazarus/test/manual/png$

Graeme

  • Hero Member
  • *****
  • Posts: 1428
    • Graeme on the web
Re: X Window System error
« Reply #1 on: July 30, 2014, 08:41:00 pm »
Can you post some sample code and the test image.
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

Timewarp

  • Full Member
  • ***
  • Posts: 144
Re: X Window System error
« Reply #2 on: July 30, 2014, 09:07:20 pm »
It's in Lazarus testsuite, file: ..\Lazarus\test\manual\png\testsuite\basn0g01.png

Graeme

  • Hero Member
  • *****
  • Posts: 1428
    • Graeme on the web
Re: X Window System error
« Reply #3 on: July 30, 2014, 10:00:29 pm »
It's in Lazarus testsuite, file: ..\Lazarus\test\manual\png\testsuite\basn0g01.png
Thanks. Yes I get the same error as you. I then tested with fpGUI's image loading support, which uses FPC's fcl-image for PNG images. I could load and display the basn0g01.png file without problems. See attached screenshot.

So it seems there must be a bug in LCL-GTK, or in LCL itself. I haven't tested LCL-Qt as I don't have it set up here. I suggest you file a bug report in Mantis.
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

jc99

  • Hero Member
  • *****
  • Posts: 553
    • My private Site
Re: X Window System error
« Reply #4 on: June 04, 2015, 02:43:44 pm »
OS: Win XP x64, Win 7, Win 7 x64, Win 10, Win 10 x64, Suse Linux 13.2
Laz: 1.4 - 1.8.4, 2.0
https://github.com/joecare99/public
'~|    /''
,_|oe \_,are
If you want to do something for the environment: Twitter: #reduceCO2 or
https://www.betterplace.me/klimawandel-stoppen-co-ueber-preis-reduzieren

 

TinyPortal © 2005-2018