Author Topic: TOpenGLControl Bug?  (Read 150 times)


  • Hero Member
  • *****
  • Posts: 3152
  • My goal: build my own game engine using Lazarus
TOpenGLControl Bug?
« on: September 16, 2019, 06:13:56 pm »
I remember the problem started to happen when I used Lazarus 2.0.2. But because I can simply ignore it and everything seemed to run fine so I didn't try to solve it. Today I updated to Lazarus 2.0.4, the problem still exists.

1. Start a new application project
2. Put a
TOpenGLControl on the form
3. Compile and run, then exit the program
4. So far, so good
5. Put some code in the TOpenGLControl.
Paint event (even an empty comment)

Code: Pascal  [Select]
  1. procedure TForm1.OpenGLControl1Paint(Sender: TObject);
  2. begin
  3.   //
  4. end;

5. Compile and run, then exit the program
6. A SIGSEGV error shows up (see screenshot below)
7. And then it will ask you to locate lockf.c

The file "/build/glibc-KRRWSm/glibc-2.29/io/lockf.c" was not found.
Do you want to locate it yourself?

The error only shows up when run it from the Lazarus IDE, not the binary directly.
Tested on Lazarus 2.0.2 and Lazarus 2.0.4 GTK2 Ubuntu 64-bit.

I found a post, which has similar error message:,45274.msg319962.html
They said it is GDB issue.

So my question are:
Why it only happens on Lazarus 2.0.2 and 2.0.4?
Is it only me or do you also have same issue?
How to fix it?


  • Full Member
  • ***
  • Posts: 112
Re: TOpenGLControl Bug?
« Reply #1 on: October 12, 2019, 10:04:09 pm »
Hello Handoko, I try on Win10 - Lazarus 2.0.4 and the SIGSEV error don't appear.
fpc 3.0.4 Lazarus 1.8.0  -  AMD A8-6600K  -  Windows 10  64bits
bad english... sorry :)