Recent

Author Topic: TOpenGLControl Bug?  (Read 219 times)

Handoko

  • Hero Member
  • *****
  • Posts: 3158
  • 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

Quote
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:
https://forum.lazarus.freepascal.org/index.php/topic,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?

Lulu

  • 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 :)

Handoko

  • Hero Member
  • *****
  • Posts: 3158
  • My goal: build my own game engine using Lazarus
Re: TOpenGLControl Bug?
« Reply #2 on: October 14, 2019, 06:29:56 pm »
Thanks Lulu for the info.

I was thinking it is an OS related issue, now I'm even more sure about it. I remember the problem happened after I upgraded my Ubuntu. I heard Ubuntu 19.10 will be released soon, I will test it and report back the result.