GPaste icon indicating copy to clipboard operation
GPaste copied to clipboard

To big history file crashes gpaste-deamon

Open TSlivede opened this issue 2 years ago • 1 comments

First of all: Thanks for providing such a nice peace of software!

Recently I copied a HUGE amount of text from a gui application into a text file. (Results of utilization analysis in Xilinx Vivado, but that doesn't really matter.) That application sadly only allows me to select the text by clicking and dragging the mouse over the region that I want to select, this means that the selection doesn't go from nothing selected to everything selected, instead the selection slowly grows.

Now the problem with gpaste: If "Primary selection affects history" is activated, that means that my huge selection is not only once in the history, but once complete, one time almost complete, once with yet a bit less content all the way to once only the first few characters. This led to a history file of over 70MB and crashes in the GUI and in the CLI gpaste-client.

Sadly it was not a descriptive error message, instead the GUI just didn't open or froze after opening. (I already thought, that an update might have destroyed something. At least until I saw the size of the history file...) A different libgpaste client I used (draobpilc) also crashes (can't reach daemon, or something).

Is it possible to just put the Primary selection once into the history, even if it grew slowly?

Anyways, this is not really an urgent issue, I just wanted to document it.

TSlivede avatar Oct 26 '21 13:10 TSlivede

Oh, just as a note: gpaste works again after removing the huge amount of unnecessary entries from the history file with vim.

TSlivede avatar Oct 26 '21 13:10 TSlivede