-
Notifications
You must be signed in to change notification settings - Fork 7.1k
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
*Fix: GLThread and other threads access sDownloaderMap in a thread-un… #16326
Conversation
…safe way, which will result in crash in some occasion on Android.
Hi, pwang08, Cocos2dxHelper.runOnGLThread(new Runnable() {
@Override
public void run() {
nativeOnProgress(_id, id, downloadBytes, downloadNow, downloadTotal);
}
}); |
As the code above shows:
|
@pwang08 , it makes sense. @pandamicro , Could you please check it since if I remember correctly, __JSDownloaderDelegator stuff was written by u. |
Yes, it was originally created by me, at the time, there was a |
just close/reopen it to trigger ci. This PR seems good. |
…futurePRs * commit '5c0c6d2e1e4b1772efc239d23f8cdaf8ce79a898': More powerful Uri class, adds unit test for Uri class. Refactors some code in SocketIO & Websocket. (cocos2d#17472) Prevent signed/unsigned mismatch (cocos2d#17468) fix the issue that onEnterTransitionDidFinish() is not invoked at first scene change (cocos2d#17466) csbload error bug (cocos2d#17465) *Fix: GLThread and other threads access sDownloaderMap in a thread-unsafe way, which will result in crash in some occasion on Android. (cocos2d#16326) fixed cocos2d#17416: Wrong default port of SocketIO connection. (cocos2d#17459) [ci skip][AUTO]: updating luabinding & jsbinding & cocos_file.json automatically (cocos2d#17458) fixed cocos2d#17427: lws_parse_url has wrong behavior, it parses ’ws://domain.com/abc/d’ to ‘path: abc/d’ rather than ‘path: /adb/d’. (cocos2d#17455) [ci skip][AUTO]: updating luabinding & jsbinding & cocos_file.json automatically (cocos2d#17456) Prevent unexpected calls to unscheduled selector in long updates. (cocos2d#17431) fix the broken of lua-tests after PR cocos2d#17445 was merged. (cocos2d#17454) [ci skip][AUTO]: updating luabinding & jsbinding & cocos_file.json automatically (cocos2d#17453) Solve the error logic in spine runtime. (cocos2d#17448) cocos2d::Sequence::isDone() checks that the last action is actually done. (cocos2d#17437) Websocket bug fix after PR#17440 was merged. (cocos2d#17450) [ci skip][AUTO]: updating luabinding & jsbinding & cocos_file.json automatically (cocos2d#17449) Some fixes for search paths: (cocos2d#17435) update external version (cocos2d#17446) fixed cocos2d#17433: [webSocket ] webSocket random crash in win32 (cocos2d#17440) Fix some local variable names in tests (cocos2d#17445) # Conflicts: # web
GLThread and other threads(
js_load_remote_image
creates CCDownloader in another thread) accesssDownloaderMap
in a thread-unsafe way, which will result in crash in some occasion on Android.