Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
songhtdo opened this issue Jul 7, 2023 · 8 comments

Comments

@songhtdo
Copy link

songhtdo commented Jul 7, 2023

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
Copy link
Author

songhtdo commented Jul 7, 2023

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.

@hltj
Copy link
Collaborator

hltj commented Jul 7, 2023

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
Copy link
Collaborator

hltj commented Jul 7, 2023

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

@songhtdo
Copy link
Author

songhtdo commented Jul 8, 2023

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
Copy link
Author

songhtdo commented Jul 9, 2023

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.

@hltj
Copy link
Collaborator

hltj commented Jul 9, 2023

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
Copy link
Collaborator

hltj commented Jul 17, 2023

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.

@songhtdo
Copy link
Author

Thank you very much for your hard work.

@songhtdo songhtdo reopened this Jul 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants