-
Notifications
You must be signed in to change notification settings - Fork 134
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
Copying search result filenames causes crash #2781
Comments
Cannot replicate on Linux (GTK3) using the reproducer steps provided. What sort of crash is it silent or is there a Critical Error dialog with a stack trace? |
Silent crash, nothing in debug logs. Turned all plugins off to retry and still occurs. |
Does it only happen when filtering? What about other lists such as downloads/uploads, does Ctrl-C work fine there? |
Hmm, I thought for sure it was only happening during filters, but on a secondary check Ctrl+C'ing files appears to be crashing even without a filter. Seems to also affect both uploads and downloads aside from searches. To emphasize, Ctrl+C'ing folders does NOT crash the program. |
Can you try the latest unstable build? I made some small clipboard-related changes. I can't get Nicotine+ to crash on my Windows 11 machine at least (don't have Windows 10 to test right now). If it still crashes:
I could also prepare a build of Nicotine+ with console output enabled, to see if there's any useful information logged. |
I installed this build. Copying files no longer crashes the program,
|
Thanks for testing. Could you try this build (before the clipboard-related changes were made) and the newer build back-to-back, to confirm if the bug is actually fixed, or if it happened to go away temporarily.
"0" would be one of the empty numerical columns. |
Alright, I've realized Ctrl+C will copy whichever specific part of the line was last clicked. I was not aware of this nuance, is it intended behavior? If I click on the filename, Ctrl+C copies the filename, if I click the music icon, Ctrl+C copies "audio-x-generic-symbolic", and previously if I clicked any blank areas under the "Folder" column to the left of the filename, Ctrl+C would cause the crash. I can't get the newer build to crash this way. |
That's intended. The exact value of the focused cell is copied. You can see which cell is focused by holding Alt, and move focus to another cell by either clicking it or using the arrow keys.
Thanks for mentioning this, it should now copy the tooltip text instead.
Ah, that would explain it. An empty string used to be copied to the clipboard, which must've caused a crash for some reason. Since the crash no longer occurs, I'll close this issue. Let me know if you run into any other issues. |
Nicotine+ version: Latest unstable
Operating System/Distribution:
Windows 10
Describe the bug
Selecting a file in downloads, uploads, or searches and pressing Ctrl+C to copy the file name to clipboard will immediately crash the program.
Expected behavior
Filename should be copied to clipboard. The program should not crash.
Steps to reproduce the bug
Additional context
Screenshots, logs, stacktraces or relevant information.
The text was updated successfully, but these errors were encountered: