[BUG]Copying any text content from libreoffice to wxmedit will cause the wxmedit program to crash
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
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.
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
I tried libreoffice-still and wxmedit 3.2 under Arch Linux, and this issue can't be reproduced. So please provide more detailed information.
Thanks Reply.
The versions of my wxmedit and libreoffice are:
libreoffice-fresh
My operation is as follows:
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.
- Use the right-click menu 'Paste' to paste content from the clipboard normally;
- 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.
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.
- Use the right-click menu 'Paste' to paste content from the clipboard normally;
- 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 .
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.
- Use the right-click menu 'Paste' to paste content from the clipboard normally;
- 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.
Thank you very much for your hard work.