Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2015-02

Lazarus on Debian "Wheezy"

10 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Mark Morgan Lloyd

Using FPC 2.6.4 or late 2.7.1, compiling trunk on Wheezy is OK but running gives me

The program 'lazarus' received an X Window System error. This probably reflects a bug in the program.
The error was 'RenderBadPicture (invalid Picture parameter)'. (Details: serial 428 error_code 188 request_code 155 minor_code 23)

   (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.)

Appears to affect Athlon (32- and 64-bit) and Intel (32-bit, don't have 64). Does not affect Squeeze. Building with OPT='-O- -gl' still doesn't allow me to get a bt.

Suggestions, anybody?

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]

Reply by email

Mattias Gaertner
to Mark Morgan Lloyd
Show quoted text 17 lines
Using FPC 2.6.4 or late 2.7.1, compiling trunk on Wheezy is OK but running gives me The program 'lazarus' received an X Window System error. This probably reflects a bug in the program. The error was 'RenderBadPicture (invalid Picture parameter)'. (Details: serial 428 error_code 188 request_code 155 minor_code 23) (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.) Appears to affect Athlon (32- and 64-bit) and Intel (32-bit, don't have 64). Does not affect Squeeze. Building with OPT='-O- -gl' still doesn't allow me to get a bt.

I just tested Wheezy 32bit on VirtualBox/Intel: it runs. Lazarus trunk, fpc 2.6.4.

Please open a terminal and start the IDE with --sync: cd sources/of/lazarus
./lazarus --sync --g-fatal-warnings

What do you get?

Suggestions, anybody?

Mattias

Reply by email

Mark Morgan Lloyd
to Mattias Gaertner
Mattias Gaertner wrote 29 lines
On Wed, 18 Feb 2015 21:36:33 +0000 Mark Morgan Lloyd wrote: > Using FPC 2.6.4 or late 2.7.1, compiling trunk on Wheezy is OK but > running gives me > > The program 'lazarus' received an X Window System error. > This probably reflects a bug in the program. > The error was 'RenderBadPicture (invalid Picture parameter)'. > (Details: serial 428 error_code 188 request_code 155 minor_code 23) > (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.) > > Appears to affect Athlon (32- and 64-bit) and Intel (32-bit, don't have > 64). Does not affect Squeeze. Building with OPT='-O- -gl' still doesn't > allow me to get a bt. I just tested Wheezy 32bit on VirtualBox/Intel: it runs. Lazarus trunk, fpc 2.6.4. Please open a terminal and start the IDE with --sync: cd sources/of/lazarus ./lazarus --sync --g-fatal-warnings What do you get?

Trunk (as of yesterday evening), 2.6.4, export OPT='-O- -gl', make all, run with ./lazarus --sync --g-fatal-warnings.

The machines here are generally Debian with KDE as a desktop, but the "Wheezy" systems are closely modelled on the older "Squeeze" ones. It appears that if I run on the machine's own display it works, but if I attempt to run Lazarus over SSH (a combination that works on all other systems around here and with numerous programs on the test systems) it fails with

$ ./lazarus --sync --g-fatal-warnings
Xlib: extension "RANDR" missing on display "localhost:10.0". TMainIDE.ParseCmdLineOptions:
PrimaryConfigPath="/home/markMLl/.lazarus"
SecondaryConfigPath="/etc/lazarus"
The program 'lazarus' received an X Window System error. This probably reflects a bug in the program.
The error was 'RenderBadPicture (invalid Picture parameter)'. (Details: serial 1054 error_code 188 request_code 155 minor_code 23)

   (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.)

Is OK over a remote X session (i.e. running in Xnest). An initial successful run to set up ~/.lazarus doesn't improve the situation over SSH but gets it to the point where lazbuild works.

However I also find that a program built using Lazarus (IDE or lazbuild) fails on that system (i.e. Wheezy) in the same way as the IDE.

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]

Reply by email

Mark Morgan Lloyd
to Mark Morgan Lloyd
Mark Morgan Lloyd wrote 40 lines
Mattias Gaertner wrote: > On Wed, 18 Feb 2015 21:36:33 +0000 > Mark Morgan Lloyd wrote: > >> Using FPC 2.6.4 or late 2.7.1, compiling trunk on Wheezy is OK but >> running gives me >> >> The program 'lazarus' received an X Window System error. >> This probably reflects a bug in the program. >> The error was 'RenderBadPicture (invalid Picture parameter)'. >> (Details: serial 428 error_code 188 request_code 155 minor_code 23) >> (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.) >> >> Appears to affect Athlon (32- and 64-bit) and Intel (32-bit, don't >> have 64). Does not affect Squeeze. Building with OPT='-O- -gl' still >> doesn't allow me to get a bt. > > I just tested Wheezy 32bit on VirtualBox/Intel: it runs. > Lazarus trunk, fpc 2.6.4. > > Please open a terminal and start the IDE with --sync: > cd sources/of/lazarus > ./lazarus --sync --g-fatal-warnings > > What do you get? Trunk (as of yesterday evening), 2.6.4, export OPT='-O- -gl', make all, run with ./lazarus --sync --g-fatal-warnings. The machines here are generally Debian with KDE as a desktop, but the "Wheezy" systems are closely modelled on the older "Squeeze" ones. It appears that if I run on the machine's own display it works, but if I attempt to run Lazarus over SSH (a combination that works on all other systems around here and with numerous programs on the test systems) it fails with

..

Show quoted text 6 lines
Is OK over a remote X session (i.e. running in Xnest). An initial successful run to set up ~/.lazarus doesn't improve the situation over SSH but gets it to the point where lazbuild works. However I also find that a program built using Lazarus (IDE or lazbuild) fails on that system (i.e. Wheezy) in the same way as the IDE.

32- and 64-bit are substantially the same. Qt works, so the problem appears to be Lazarus (and Lazarus-built programs) using gtk2 over SSH on Wheezy.

There might also be some minor Unicode display issues in Gtk2.

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]

Reply by email

Mark Morgan Lloyd
to Mark Morgan Lloyd
Mark Morgan Lloyd wrote 30 lines
Mark Morgan Lloyd wrote: > Mattias Gaertner wrote: >> On Wed, 18 Feb 2015 21:36:33 +0000 >> Mark Morgan Lloyd wrote: >> >>> Using FPC 2.6.4 or late 2.7.1, compiling trunk on Wheezy is OK but >>> running gives me > Trunk (as of yesterday evening), 2.6.4, export OPT='-O- -gl', make > all, run with ./lazarus --sync --g-fatal-warnings. > > The machines here are generally Debian with KDE as a desktop, but the > "Wheezy" systems are closely modelled on the older "Squeeze" ones. It > appears that if I run on the machine's own display it works, but if I > attempt to run Lazarus over SSH (a combination that works on all other > systems around here and with numerous programs on the test systems) it > fails with .. > Is OK over a remote X session (i.e. running in Xnest). An initial > successful run to set up ~/.lazarus doesn't improve the situation over > SSH but gets it to the point where lazbuild works. > > However I also find that a program built using Lazarus (IDE or > lazbuild) fails on that system (i.e. Wheezy) in the same way as the IDE. 32- and 64-bit are substantially the same. Qt works, so the problem appears to be Lazarus (and Lazarus-built programs) using gtk2 over SSH on Wheezy. There might also be some minor Unicode display issues in Gtk2.

Can't test gtk3, trunk fails with

lazgtk3.pas(14777,1) Error: undefined reference to
`gtk_widget_add_tick_callback'
Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]

Reply by email

zeljko
to Mark Morgan Lloyd
Mark Morgan Lloyd wrote 36 lines
Mark Morgan Lloyd wrote: > Mark Morgan Lloyd wrote: >> Mattias Gaertner wrote: >>> On Wed, 18 Feb 2015 21:36:33 +0000 >>> Mark Morgan Lloyd wrote: >>> >>>> Using FPC 2.6.4 or late 2.7.1, compiling trunk on Wheezy is OK but >>>> running gives me >> Trunk (as of yesterday evening), 2.6.4, export OPT='-O- -gl', make >> all, run with ./lazarus --sync --g-fatal-warnings. >> >> The machines here are generally Debian with KDE as a desktop, but the >> "Wheezy" systems are closely modelled on the older "Squeeze" ones. It >> appears that if I run on the machine's own display it works, but if I >> attempt to run Lazarus over SSH (a combination that works on all >> other systems around here and with numerous programs on the test >> systems) it fails with > .. >> Is OK over a remote X session (i.e. running in Xnest). An initial >> successful run to set up ~/.lazarus doesn't improve the situation >> over SSH but gets it to the point where lazbuild works. >> >> However I also find that a program built using Lazarus (IDE or >> lazbuild) fails on that system (i.e. Wheezy) in the same way as the IDE. > > 32- and 64-bit are substantially the same. Qt works, so the problem > appears to be Lazarus (and Lazarus-built programs) using gtk2 over SSH > on Wheezy. > > There might also be some minor Unicode display issues in Gtk2. Can't test gtk3, trunk fails with lazgtk3.pas(14777,1) Error: undefined reference to `gtk_widget_add_tick_callback'

Your gtk3 version is below minimum required for gtk3.

zeljko

Reply by email

Mark Morgan Lloyd
to zeljko
zeljko wrote 6 lines
> Can't test gtk3, trunk fails with > > lazgtk3.pas(14777,1) Error: undefined reference to > `gtk_widget_add_tick_callback' Your gtk3 version is below minimum required for gtk3.

It's the one being shipped with "Wheezy", and is up to date by Debian's standards.

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]

Reply by email

zeljko
to Mark Morgan Lloyd
Mark Morgan Lloyd wrote 11 lines
zeljko wrote: >> Can't test gtk3, trunk fails with >> >> lazgtk3.pas(14777,1) Error: undefined reference to >> `gtk_widget_add_tick_callback' > > Your gtk3 version is below minimum required for gtk3. It's the one being shipped with "Wheezy", and is up to date by Debian's standards.

But Lazarus have it's own standards and there's minimum requirement for gtk3 libs (think it's 3.8)

z.

Reply by email

Mark Morgan Lloyd
to Vincenzo Campanella
Vincenzo Campanella wrote 8 lines
Il 19.02.2015 11:24, zeljko ha scritto: > But Lazarus have it's own standards and there's minimum requirement > for gtk3 libs (think it's 3.8) > You could eventually consider "pinning" your Debian installation. See for example http://jaqque.sbih.org/kplug/apt-pinning.html

It's something I'd consider for the machine I'm using for development, which is sacrificial. However It's not really a viable proposition for code that's going to be put up on Sourceforge or Google.

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]

Reply by email