-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Abbreviation of a list of entries cause two uncaught exceptions #12634
Comments
Thanks for opening the issue. The issue description lacks a bit of clarity, so please address the following:
|
The exceptions I put are the same that's in the terminal. I added an investigation of where this error comes from. |
That's not a full exception log - that is just the exact line at the end of the stack trace where the exception occurs. Please look up how stack traces look like. For reference, look at the log attached at this issue. If you are unable to grasp, provide a full screenshot of the Intellij run window (terminal area) when the exception occurs. |
I changed the log file, let me know if I need to edit it again. |
Nope, it's the right ones now. Thanks again! |
/assign-me |
👋 Hey @marwanemad07, thank you for your interest in this issue! 🎉 We're excited to have you on board. Start by exploring our Contributing guidelines, and don't forget to check out our workspace setup guidelines to get started smoothly. In case you encounter failing tests during development, please check our developer FAQs! Having any questions or issues? Feel free to ask here on GitHub. Need help setting up your local workspace? Join the conversation on JabRef's Gitter chat. And don't hesitate to open a (draft) pull request early on to show the direction it is heading towards. This way, you will receive valuable feedback. Happy coding! 🚀 ⏳ Please note, you will be automatically unassigned if the issue isn't closed within 45 days (by 24 April 2025). A maintainer can also add the "📌 Pinned"" label to prevent automatic unassignment. |
I have a question regarding this issue. In |
|
One could use |
Reasoning is not present to me anymore. The PR in what i worked on that was about removing legacy BasePanel and Action from the Codebase to make it more maintainable. |
|
I found the first issue related to the performance in the abbreviate function was #2831 and in this PR #3721 introduced a first solution for using threads. In this PR #6056 you introduced the unabbreviate function, I think it was intended not to use threads in it since you updated in the abbreviate function. |
The link is nice, but the unabbreviate is removed (and integrated into Abbreviate..) |
JabRef version
Latest development branch build (please note build date below)
Operating system
Windows
Details on version and operating system
Windows 11
Checked with the latest development build (copy version output from About dialog)
Steps to reproduce the behaviour
Explanation:
I traced the code and found that the issue occurs because a
CompoundEdit
object, which is not thread-safe, is accessed concurrently. In theAbbreviationAction
class, the abbreviate method creates multiple Callable tasks that use NamedCompound instance. When I changed the code to iterate over the entries in a regular loop (instead of collecting tasks in threads) the errors no longer occurred.Appendix
Exceptions:
Note: The first exception always happens, and the second one happens rarely.
Log File
The text was updated successfully, but these errors were encountered: