./clipbex
Gtk-Message: 15:58:49.041: Failed to load module "canberra-gtk-module"
Peek !!!
Peek !!!
Peek !!!
Peek !!!
Peek !!!
Peek !!!
Peek !!!
Peek !!!
Peek !!!
Peek !!!
Peek !!!
Peek !!!
Peek !!!
Peek !!!
(clipbex:30502): Gdk-CRITICAL **: 15:58:51.253: IA__gdk_x11_atom_to_xatom_for_display: assertion 'ATOM_TO_INDEX (atom) < virtual_atom_array->len' failed
The program 'clipbex' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadAtom (invalid Atom parameter)'.
(Details: serial 9826 error_code 5 request_code 24 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.)
Martin, probably unrelated but this bug reminds me the fix for the null trailing character. When it's applied there is issues with copy paste from a synedit to another.Am I missing something? I thought that had been fixed? https://bugs.freepascal.org/view.php?id=21453
Martin, probably unrelated but this bug reminds me the fix for the null trailing character. When it's applied there is issues with copy paste from a synedit to another.
fedkad, can you try to compile Lazarus with this additional defines : GTK_REMOVE_CLIPBOARD_NULL, then test, come back an tell us if the things work better ?
I am new to this. What I did was to add the GTK_REMOVE_CLIPBOARD_NULL define to Configure "Build Lazarus" dialog box under Defines, checked it and then did a Build (Normal IDE). To be sure I restarted Lazarus and check the build date (2019-05-02). I recompiled my test program, but nothing changed. Nothing changed in Lazarus Editor also: the same problem of not pasting anything from gedit for example.I removed the leftover GTK_REMOVE_CLIPBOARD_NULL block from trunk r61134. It is not needed any more.
However, I might have done something wrong with the compilation: I tried to test whether GTK_REMOVE_CLIPBOARD_NULL is defined, by inserting the following code to my test program:GTK_REMOVE_CLIPBOARD_NULL was not defined in your own test program. It was only defined in Lazarus itself.But the code within $if / $endif was not activated.
{$ifdef GTK_REMOVE_CLIPBOARD_NULL} This should give compile time error! {$endif}
I am using the latest released version (2.0.2) of Lazarus, not the latest trunk (=beta). I will need a separate installation to test on the latest trunk.Yes, except that you don't need to install it really. Just get the sources and run "make".
Without meaning to revive an old thread, I did run into the same problem after going to Fedora 31 where I couldn't paste from any other application into the Lazarus editor.
I recalled that Fedora runs Wayland by default and then logged out and switched to Xorg. Problem solved for me!
I can now paste from other applications into the editor. Hope this helps someone.
[TGtk2WidgetSet.ClipboardGetData] A ClipboardWidget=000000000156E400 FormatID=text/plain Now=45177.9750512616
[RequestSelectionData] FormatID=131
[RequestSelectionData] TimeID=24436340 Type=CLIPBOARD FormatID=TARGETS
[ClipboardSelectionReceivedHandler] A TimeID=24436340 RequestIndex=0 selection=69=CLIPBOARD target=131=TARGETS theType=4=ATOM format=32 len=96
[ClipboardSelectionReceivedHandler] B DataLen=96
[ClipboardSelectionReceivedHandler] C FirstCharacter=134
IsFormatSupported A 69 00000045 SelData.Target=131 AllID=131 SelData.TheType=4 ATOM=4 Name="ATOM" SelData.Length=96 SelData.Format=32
23 ""
22 ""
21 ""
20 ""
19 ""
18 "GDK_SELECTION"
17 ""
16 ""
15 ""
14 ""
13 ""
12 ""
11 "text/plain"
10 "text/plain;charset=utf-8"
9 "STRING"
8 "TEXT"
7 "COMPOUND_TEXT"
6 "UTF8_STRING"
5 "application/x-gtk-text-buffer-rich-text"
4 "GTK_TEXT_BUFFER_CONTENTS"
3 "SAVE_TARGETS"
2 "MULTIPLE"
1 "TARGETS"
0 "TIMESTAMP"
[TGtk2WidgetSet.ClipboardGetData] B Format=UTF8_STRING FormatAtom=71 Now=45177.9751306134
[RequestSelectionData] FormatID=71
[RequestSelectionData] TimeID=24436340 Type=CLIPBOARD FormatID=UTF8_STRING
[ClipboardSelectionReceivedHandler] A TimeID=24436340 RequestIndex=0 selection=69=CLIPBOARD target=71=UTF8_STRING theType=71=UTF8_STRING format=8 len=11
[ClipboardSelectionReceivedHandler] B DataLen=11
[ClipboardSelectionReceivedHandler] C FirstCharacter=98
[TGtk2WidgetSet.ClipboardGetData] C Length=11 Now=45177.9751616435 SelData.Selection=69 SelData.Length=11
[TGtk2WidgetSet.ClipboardGetData] END Now=45177.9751690278
[TGtk2WidgetSet.ClipboardGetData] A ClipboardWidget=0000000002283400 FormatID=text/plain Now=45177.9765332523
[RequestSelectionData] FormatID=131
[RequestSelectionData] TimeID=24564910 Type=CLIPBOARD FormatID=TARGETS
[ClipboardSelectionReceivedHandler] A TimeID=24564910 RequestIndex=0 selection=69=CLIPBOARD target=131=TARGETS theType=4=ATOM format=32 len=64
[ClipboardSelectionReceivedHandler] B DataLen=64
[ClipboardSelectionReceivedHandler] C FirstCharacter=134
IsFormatSupported A 69 00000045 SelData.Target=131 AllID=131 SelData.TheType=4 ATOM=4 Name="ATOM" SelData.Length=64 SelData.Format=32
15 ""
14 ""
13 ""
12 ""
11 ""
10 ""
9 ""
8 ""
7 "text/plain"
6 "TEXT"
5 "STRING"
4 "text/plain;charset=utf-8"
3 "UTF8_STRING"
2 "MULTIPLE"
1 "TARGETS"
0 "TIMESTAMP"
[TGtk2WidgetSet.ClipboardGetData] B Format=UTF8_STRING FormatAtom=71 Now=45177.9765464815
[RequestSelectionData] FormatID=71
[RequestSelectionData] TimeID=24564910 Type=CLIPBOARD FormatID=UTF8_STRING
[TGtk2WidgetSet.ClipboardGetData] C Length=0 Now=45177.9765604167 SelData.Selection=0 SelData.Length=0
[TGtk2WidgetSet.ClipboardGetData] REQUESTED FORMAT NOT SUPPORTED Length=0
[ClipboardSelectionReceivedHandler] A TimeID=24564910 RequestIndex=-1 selection=69=CLIPBOARD target=71=UTF8_STRING theType=71=UTF8_STRING format=8 len=14
[TGtk2WidgetSet.ClipboardGetData] B Format=UTF8_STRING FormatAtom=71 Now=45177...
[RequestSelectionData] FormatID=71
[RequestSelectionData] TimeID=24436340 Type=CLIPBOARD FormatID=UTF8_STRING