Recent

Author Topic: Lazarus editor 2.1.0 crashes when clicking on "New Project"  (Read 1621 times)

att2

  • New Member
  • *
  • Posts: 49
Hello,
I have Lazarus 2.1.0 and FPC 3.3.1 installed into a Linux Mint 19 Tara VM machine.
The installation into the VM was done as normal user (user "arm3") using FPCUpDeluxe 1.8.2s.
When I click on the Project options and say "New Project", Lazarus closes itself, all the time.
I used STRACE to see if I can trace the bug from the command line :

Code: [Select]
...
recvmsg(4, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="\34\0\330\334\224:\200\3D\0\0\0\366\211\r\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., iov_len=4096}], msg_iovlen=1, msg_controllen=0, msg_flags=0}, 0) = 1152
recvmsg(4, {msg_namelen=0}, 0)          = -1 EAGAIN (Resource temporarily unavailable)
poll([{fd=4, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=4, revents=POLLOUT}])
writev(4, [{iov_base="\24\0\6\0\275\2\0\0\257\1\0\0\6\0\0\0\0\0\0\0\377\377\377\177", iov_len=24}, {iov_base=NULL, iov_len=0}, {iov_base="", iov_len=0}], 3) = 24
poll([{fd=4, events=POLLIN}], 1, -1)    = 1 ([{fd=4, revents=POLLIN}])
recvmsg(4, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="\1 \365\334\20\0\0\0\6\0\0\0\0\0\0\0\20\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., iov_len=4096}], msg_iovlen=1, msg_controllen=0, msg_flags=0}, 0) = 224
recvmsg(4, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="\34\0\365\334\367\0\200\3.\1\0\0\3\212\r\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., iov_len=4096}], msg_iovlen=1, msg_controllen=0, msg_flags=0}, 0) = 64
recvmsg(4, {msg_namelen=0}, 0)          = -1 EAGAIN (Resource temporarily unavailable)
poll([{fd=4, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=4, revents=POLLOUT}])
writev(4, [{iov_base="\24\0\6\0\275\2\0\0#\1\0\0!\0\0\0\0\0\0\0\1\0\0\0", iov_len=24}, {iov_base=NULL, iov_len=0}, {iov_base="", iov_len=0}], 3) = 24
poll([{fd=4, events=POLLIN}], 1, -1)    = 1 ([{fd=4, revents=POLLIN}])
recvmsg(4, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="\1 \366\334\1\0\0\0!\0\0\0\0\0\0\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., iov_len=4096}], msg_iovlen=1, msg_controllen=0, msg_flags=0}, 0) = 36
recvmsg(4, {msg_namelen=0}, 0)          = -1 EAGAIN (Resource temporarily unavailable)
recvmsg(4, {msg_namelen=0}, 0)          = -1 EAGAIN (Resource temporarily unavailable)
poll([{fd=4, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=4, revents=POLLOUT}])
writev(4, [{iov_base="\31\0\v\0\275\2\0\0\0\0\30\0! \0\0\367\0\200\3.\1\0\0\0\0\0\0/\1\0\0"..., iov_len=68}, {iov_base=NULL, iov_len=0}, {iov_base="", iov_len=0}], 3) = 68
poll([{fd=4, events=POLLIN}], 1, -1)    = 1 ([{fd=4, revents=POLLIN}])
recvmsg(4, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="\0\3\370\334\224:\200\3\0\0\f\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., iov_len=4096}], msg_iovlen=1, msg_controllen=0, msg_flags=0}, 0) = 128
openat(AT_FDCWD, "/usr/share/X11/XErrorDB", O_RDONLY) = 16
fstat(16, {st_mode=S_IFREG|0644, st_size=42077, ...}) = 0
read(16, "!\n! Copyright 1993, 1995, 1998  "..., 42077) = 42077
close(16)                               = 0
write(2, "The program 'lazarus' received a"..., 566The program 'lazarus' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadWindow (invalid Window parameter)'.
  (Details: serial 122104 error_code 3 request_code 12 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.)
) = 566
getpid()                                = 2742
munmap(0x7f18c603e000, 131072)          = 0
munmap(0x7f18c605e000, 131072)          = 0
exit_group(1)                           = ?
+++ exited with 1 +++

So I have a strange sort of X Window system error. What's going on here? Any help ?


Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 7382
  • Debugger - SynEdit - and more
    • wiki
Re: Lazarus editor 2.1.0 crashes when clicking on "New Project"
« Reply #1 on: May 23, 2021, 04:51:55 pm »
I am not an expert on x-window/gtk2, but I doubt the data will be of much help...

What you could do to try and get better data:

Since you did build your lazarus with fpcupdeluxe, make sure it is build with debug info.
In fpcupdeluxe specify   -gw  -O-  as option for the build

Find the "lazarus" executable that you use. (not the "startlazarus")

Start that lazarus using
Code: Bash  [Select][+][-]
  1. gdb lazarus
Then in gdb type  (followed by return)
   r

When the crash happens, gdb should print that the exe stopped.

Enter  in gdb
  bt
and copy the output of this.

Also specify the svn revision that fpcupdeluxe got for you.

 

TinyPortal © 2005-2018