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 Report: Maccy Freezes When Copying Large Text Data #861

Open
2 tasks done
Bistutu opened this issue Sep 4, 2024 · 2 comments
Open
2 tasks done

Bug Report: Maccy Freezes When Copying Large Text Data #861

Bistutu opened this issue Sep 4, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@Bistutu
Copy link

Bistutu commented Sep 4, 2024

Before Submitting Your Bug Report

  • I have verified that there isn't already an issue reporting the same bug to prevent duplication.
  • I have seen the FAQ.

Maccy Version (see 'About' window)

No response

macOS Version

No response

Maccy Settings

No response

Description

Description:

When copying very large amounts of text data (e.g., over 100MB), Maccy becomes unresponsive and crashes. After this happens, the application cannot be reopened, which prevents users from clearing the clipboard history or accessing the app at all. This significantly impacts usability, especially when handling large data sets or working in environments where large text copies are common.

Expected Behavior:

Maccy should handle large clipboard data more gracefully, either by limiting the size of the text that can be copied or by adding an option to set a maximum clipboard size in the application settings. This would prevent the app from freezing or crashing when large data is copied.

Proposed Solution:

  • Introduce a configurable maximum text size limit for copied data in the application settings. If a user attempts to copy data larger than this limit, Maccy should provide a warning or prevent the copy action.
  • Implement error handling and memory management improvements to better manage large clipboard entries without causing the application to crash.

Steps to Reproduce

Steps to Reproduce:

  1. Copy a large amount of text data (e.g., a text file over 100MB).
  2. Observe that Maccy freezes and becomes unresponsive.
  3. Attempt to reopen Maccy after the freeze — it fails to open and remains unresponsive.
@Bistutu Bistutu added the bug Something isn't working label Sep 4, 2024
@p0deje
Copy link
Owner

p0deje commented Sep 4, 2024

@Bistutu Thanks for a report:

  1. Can you please check the latest 2.0 beta - there were improvements related to memory there. Maccy 2.0.0 beta #818
  2. Can you share some text files to tests?

@Bistutu
Copy link
Author

Bistutu commented Sep 5, 2024

In fact, I am using version 2.0 beta. The text I mentioned was just something I randomly copied. For example, if you want to increase a 10MB text file to 100MB, you would copy and paste it multiple times. At some point, you might accidentally copy that 100MB text, causing the Maccy application to freeze.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants