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
Make QSResourceManager thread safe #1871
Conversation
Testing this out now. |
I've generally found it pretty hard to reproduce the crashes, but I got them quite a bit whilst running QS from within Xcode (I guess it runs slower, so multi-threading issues are maybe more likely...?) |
...actually I take that back. On master, I can reproduce a crash pretty reliable by:
With this branch, I can't get QS to crash :'( |
Continuing the discussion from #1868, since it probably belongs here: I looked at my Console more closely and see that I have 3 other errors that are almost the same, but they all originated in The trigger that was missing its info was for “Mid Volume (40%)” from Extra Scripts, but like I said, it’s been fine ever since. (And I suppose I don’t know that the missing info is related to the Console messages, but I strongly suspect.) |
Since it seems you're about (or just were)... I've looked into this more closely and really can't figure out what the issue might have been. From what I can tell, the issue may well have been with getting the icon for a Shall we merge and get another pre-release out then monitor the crash logs/new issues? Even if it is related, we're hopefully stopping 60% of all crashes with this pull. |
Sounds reasonable. I haven’t seen any more issues. |
FYI, I don’t necessarily agree with not using |
Make QSResourceManager thread safe
Yay! So the reason I was against using QSRez is because the singleton format that I’ve seen most often has the static defined inside the calling On 11 Meh 2014, at 19:46, Rob McBroom notifications@github.com wrote:
|
OK. My only defense is that it was easier and looks nicer. You clearly have a stronger argument. |
If looks weren’t important, then the world wouldn’t be the way it is. Now what do we do?! ;-) On 11 Meh 2014, at 22:00, Rob McBroom notifications@github.com wrote:
|
Fixes #1861
See #1861 for most of the discussion. This pull request won't necessarily 'fix all out problems', since there are probably still plugins that call
[NSImage imageNamed:]
, whereas they should call[QSResourceManager imageNamed:]