Recent

Author Topic: Error in LazPaint while cut /copy an area  (Read 1394 times)

tobiast

  • Newbie
  • Posts: 1
Error in LazPaint while cut /copy an area
« on: November 24, 2020, 07:55:33 pm »
Hi, nice app, but in Linux (LM20 based on Ubuntu 20.04), cut or copy an are would not work.

Error

$ lazpaint --sync
WARNING: TGtk2WidgetSet.InvalidateRect refused invalidating during paint message: TBGRAVirtualScreen
The program 'lazpaint' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadWindow (invalid Window parameter)'.
  (Details: serial 200473 error_code 3 request_code 18 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.)
 
Steps to reproduce:

1. open an image
2. select area tool
3. make an selection in the image
4. press control-X or control-C
5. program terminates, error in CLI is present
 

circular

  • Hero Member
  • *****
  • Posts: 4195
    • Personal webpage
Re: Error in LazPaint while cut /copy an area
« Reply #1 on: November 24, 2020, 08:49:30 pm »
Hello and thanks for reporting the problem.

The InvalidateRect error is minor and does not cause crash. So that's probably something else.

I cannot reproduce the crash on Linux Mint 20 on 64 bit with LazPaint version 6.4.1 and 7.1.5.

It would help to have more information on the crash you get. Do you have a 32 bit or 64 bit processor?



Conscience is the debugger of the mind

winni

  • Hero Member
  • *****
  • Posts: 3197
Re: Error in LazPaint while cut /copy an area
« Reply #2 on: November 24, 2020, 08:54:01 pm »
Hi !

Just downnloaded  lazpaint7.1.5_linux64_no_install.tar to check that error.
I did not come so far as tobiast.

Startet LazPaint from the konsole, short flash and the app was gone and left this messages:
 
-----------------------------------
WARNING: TGtk2WidgetSet.InvalidateRect refused invalidating during paint message: TBGRAVirtualScreen
[xcb] Unknown sequence number while processing reply
[xcb] Most likely this is a multi-threaded client and XInitThreads has not been called
[xcb] Aborting, sorry about that.
lazpaint: xcb_io.c:641: _XReply: Assertion `!xcb_xlib_threads_sequence_lost' failed.
Aborted (Speicherabzug geschrieben)
winni@linux-vqeu:/Windows/D/LazPaint/lazpaint> ./lazpaint
[xcb] Unknown request in queue while dequeuing
[xcb] Most likely this is a multi-threaded client and XInitThreads has not been called
[xcb] Aborting, sorry about that.
lazpaint: xcb_io.c:163: dequeue_pending_request: Assertion `!xcb_xlib_unknown_req_in_deq' failed.
Aborted (Speicherabzug geschrieben)
-----------------------------

Strange thing:
If I start LazPaint as root then everything is fine.

Winni

circular

  • Hero Member
  • *****
  • Posts: 4195
    • Personal webpage
Re: Error in LazPaint while cut /copy an area
« Reply #3 on: November 25, 2020, 01:54:59 am »
@winni:
I have encountered the same error message and it was related to SVG files with text with the image browser. I have fixed that on dev. Is it this problem? Does the dev version work for you?
Conscience is the debugger of the mind


circular

  • Hero Member
  • *****
  • Posts: 4195
    • Personal webpage
Re: Error in LazPaint while cut /copy an area
« Reply #5 on: November 25, 2020, 10:35:47 am »
This link  :o

I was asking if you went into the image browser and had SVG files in it. And if the problem is solved with dev branch.
Conscience is the debugger of the mind

lainz

  • Hero Member
  • *****
  • Posts: 4460
    • https://lainz.github.io/
Re: Error in LazPaint while cut /copy an area
« Reply #6 on: November 28, 2020, 11:48:47 am »
I have a VM with Ubuntu 20.04 and I don't have SVG images there. The problem running the app seems the same as Lazarus, that at the first launch it takes some seconds until it works, at start it says that the application is not responding. But that bug is already known and discussed in this forum somewhere... not sure if related with this bug on this thread.
« Last Edit: November 28, 2020, 11:52:29 am by lainz »

 

TinyPortal © 2005-2018