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
GUIInfoManager: revert 8809df940d265f79e3d529b6591a2c8333ed06d6, this… #13631
Conversation
|
||
#ifndef GUIINFOMANAGER_H_ | ||
#define GUIINFOMANAGER_H_ | ||
|
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
@FernetMenta ensuring that Reading from the db is part of the item update, so I don't see how it can be off loaded. Sure we can read from the db asynchronously, but the item being populated needs to exist, not be reset (causing the tag the data is being written into to vanish). |
@DaveTBlake we can run the db query on a job. when finished send item via TMSG_UPDATE_CURRENT_ITEM. then it gets updated by main thread |
OK I see your idea @FernetMenta. We will need to take care not to end in a circle: Meanwhile , I don't think the |
create an additional msg: TMSG_UPDATE_CURRENT_ITEM_DB |
Sorry, I lost track of the convo. |
the issue is not realted to deep copy or not. CGUIInfoManager::m_fileItem must not be accessed by other threads than main thread. |
Ok, I merge it. I think nobody object that fixing a crash has higher prio than some video stuttering. Further, a revert is no personal attack. I supported the reverted change myself but now I have to admit that it was wrong. We have to fix this problem differently. |
Thanks @FernetMenta |
reverts #8766
fixes segfault
@DaveTBlake @popcornmix in order to fix the original issue, the DB operations should be offloaded