wxMEdit icon indicating copy to clipboard operation
wxMEdit copied to clipboard

[BUG]Copying any text content from libreoffice to wxmedit will cause the wxmedit program to crash

Open songhtdo opened this issue 2 years ago • 8 comments

Copying any text content from libreoffice to wxmedit will cause the wxmedit program to crash. My OS is:

Manjaro Linux DISTRIB_ID="ManjaroLinux" DISTRIB_RELEASE="23.0.0" DISTRIB_CODENAME="Ultima Thule" DISTRIB_DESCRIPTION="Manjaro Linux" Manjaro Linux NAME="Manjaro Linux" PRETTY_NAME="Manjaro Linux" ID=manjaro ID_LIKE=arch BUILD_ID=rolling

Linux XXX 6.1.31-2-MANJARO #1 SMP PREEMPT_DYNAMIC Sun Jun 4 12:31:46 UTC 2023 x86_64 GNU/Linux

songhtdo avatar Jul 07 '23 04:07 songhtdo

In addition, there may be problems with unreleased memory. For example, if I open 10+ relatively long texts, wxmedit may use 400M memory. Then close all the open pages, The memory of wxmedit has not decreased significantly.

songhtdo avatar Jul 07 '23 04:07 songhtdo

Could you please point out the versions of LibreOffice (libreoffice-fresh/libreoffice-still) and wxMEdit (3.1 / 3.1.0.90 / 3.2)? I don't have Manjaro, but I will try whether libreoffice-still and wxmedit 3.2 can reproduce this problem under Arch Linux.

Copying any text content from libreoffice to wxmedit will cause the wxmedit program to crash. My OS is:

Manjaro Linux DISTRIB_ID="ManjaroLinux" DISTRIB_RELEASE="23.0.0" DISTRIB_CODENAME="Ultima Thule" DISTRIB_DESCRIPTION="Manjaro Linux" Manjaro Linux NAME="Manjaro Linux" PRETTY_NAME="Manjaro Linux" ID=manjaro ID_LIKE=arch BUILD_ID=rolling

Linux XXX 6.1.31-2-MANJARO #1 SMP PREEMPT_DYNAMIC Sun Jun 4 12:31:46 UTC 2023 x86_64 GNU/Linux

hltj avatar Jul 07 '23 12:07 hltj

I tried libreoffice-still and wxmedit 3.2 under Arch Linux, and this issue can't be reproduced. So please provide more detailed information.

archlinux_2023_20_39_26

hltj avatar Jul 07 '23 12:07 hltj

Thanks Reply. The versions of my wxmedit and libreoffice are: 001

libreoffice-fresh 002

My operation is as follows: Peek 2023-07-08 09-54

songhtdo avatar Jul 08 '23 02:07 songhtdo

Hello. I just upgraded wxmedit to version 3.2 and found that there are some differences between using shortcut keys (Ctrl+V) and right-click menus (paste) when copying content from libreoffice to wxmedit.

  1. Use the right-click menu 'Paste' to paste content from the clipboard normally;
  2. Using shortcut keys and "Paste" under the menu "Edit" will crash in the same way as above. I'm not sure why there is such a difference.

songhtdo avatar Jul 09 '23 14:07 songhtdo

Hello. I just upgraded wxmedit to version 3.2 and found that there are some differences between using shortcut keys (Ctrl+V) and right-click menus (paste) when copying content from libreoffice to wxmedit.

  1. Use the right-click menu 'Paste' to paste content from the clipboard normally;
  2. Using shortcut keys and "Paste" under the menu "Edit" will crash in the same way as above. I'm not sure why there is such a difference.

I also tried with libreoffice-fresh and wxmedit 3.2 under Arch, failed to reproduce. I'll see if I can reproduce it in Manjaro next week in my spare time. I've been too busy this weekend that I've packaged a lot for various distributions: https://wxmedit.github.io/downloads.html .

hltj avatar Jul 09 '23 15:07 hltj

Hello. I just upgraded wxmedit to version 3.2 and found that there are some differences between using shortcut keys (Ctrl+V) and right-click menus (paste) when copying content from libreoffice to wxmedit.

  1. Use the right-click menu 'Paste' to paste content from the clipboard normally;
  2. Using shortcut keys and "Paste" under the menu "Edit" will crash in the same way as above. I'm not sure why there is such a difference.

I confirmed that it can be reproduced with the Chinese (simplified) language pack for libreoffice. I did't install the language pack before, that's why I couldn't reproduced it before. It may be the bug of either the Chinese language pack for libreoffice or the wxWidgets-3.2 framework.

It triggered a assertion in wxWidgets-3.2 framework, and it may be a bug of wxWidgets-3.2 framework that why it hangs.

The reason for it worked without assertion with right click is that wxMEdit disabled assertion in right click processing.

I'll try to find some workarounds to avod this issue.

hltj avatar Jul 17 '23 12:07 hltj

Thank you very much for your hard work.

songhtdo avatar Jul 18 '23 12:07 songhtdo