Commit Graph

239 Commits

Author SHA1 Message Date
pandamicro 8b6c26a84a Fix isObjectValid for null or undefined parameter 2017-08-17 10:00:54 +08:00
pandamicro f05ada4a44 Add necessary error report 2017-08-17 10:00:33 +08:00
pandamicro 1d79eecc6e Fix crash issue during closing if scene has a label outline component 2017-08-09 14:50:54 +08:00
pandamicro 296d425a8d Ultimate fix for anysdk restart crash issue 2017-08-08 17:13:23 +08:00
pandamicro ce8be5e24a Fix JavaScriptObjCBridge::callStaticMethod 2017-08-08 11:22:06 +08:00
pandamicro f4d08c199d Fix JSB Scheduler->unschedule issue when target have multiple callbacks 2017-08-08 00:07:06 +08:00
pandamicro 80dac85639 Fix network crashing issue during restart 2017-08-07 18:30:51 +08:00
pandamicro ff4ca61919 Fix anysdk restart issue with old listeners 2017-08-07 16:51:09 +08:00
pandamicro 0bd1c81d80 Fix RootedObject on stack being deallocated after ScriptingCore::cleanup 2017-08-07 14:37:17 +08:00
pandamicro 02db3adf58 Fix XMLHttpRequest timeout setter issue 2017-08-07 12:09:42 +08:00
pandamicro 8a025bd6bb Fix HttpClient crash during restart 2017-08-04 18:42:23 +08:00
knoxHuang a14c83d712 fix Follow isDone error for fireball/issues/6191 2017-08-04 16:06:20 +08:00
pandamicro 677ad5fe81 Secure jsb::Object setObj & getObj when it's empty 2017-08-01 10:04:39 +08:00
pandamicro 0f6515c0a4 Add default alpha channel to cccolor3b_to_jsval conversion 2017-07-31 15:59:52 +08:00
pandamicro 0a2689d4b6 Fix restart crash and reduce restart memory leak 2017-07-28 15:32:25 +08:00
pandamicro 0d1f8339bf Fix ttf config precision issue 2017-07-28 14:20:27 +08:00
pandamicro 30e30a5403 Improve scene cleanup and reduce restart memory leak 2017-07-27 12:01:24 +08:00
pandamicro 35c0dd1993 Fix restart crash issues 2017-07-27 11:10:51 +08:00
pandamicro fa1749578b Merge pull request #723 from knoxHuang/develop
fix native call error for fireball/issues/6113
2017-07-26 14:12:46 +08:00
knoxHuang 7e70a8f7d5 fix native call error for fireball/issues/6113 2017-07-26 14:00:37 +08:00
pandamicro d726489d94 Fix JS promise support 2017-07-25 18:03:57 +08:00
pandamicro 7b7ab9f5c4 Temp solution to Promise crash 2017-07-24 18:24:15 +08:00
pandamicro 63264bf21d Fix jsval_to_long issue (not compatible anymore with string value) 2017-07-24 15:08:03 +08:00
pandamicro f35d7c8246 Replace JSString with JS::RootedString 2017-07-24 15:06:50 +08:00
pandamicro f0a6acc6c5 Fix callFunc creation issue with primitive data parameter 2017-07-22 14:29:00 +08:00
Wang Nan 023cefe126 Merge pull request #717 from dumganhar/fix/srwebsocket
Fix potential crash after WebSocket.close and send onclose event after onerror is received
2017-07-20 17:43:20 +08:00
James Chen 68be4dbbaf Fix potential crash after WebSocket.close.
Since the finalize function will get a invalid pointer of WebSocket, invoking ws->closeAysnc() will generate unknown result, probably crash.
HOW TO FIX:
WebSocket and JSB_WebSocketDelegate inhert from Ref. After websocket is initialized successfully, retain websocket instance and delegate, they will both have 2 reference count.
release their reference both in onClose callback and finalize function. The reason is that the order of invoking onClose and finalize function will be unpredictable, ref count technique help to handle this.

Another fix is sending onclose event after onerror is received.
2017-07-20 16:43:24 +08:00
knoxHuang 1779f7a585 fix evalString error for fireball/issues/6062 2017-07-19 13:10:42 +08:00
knoxHuang ae7232bf63 fix evalString error for fireball/issues/6062 2017-07-19 12:00:50 +08:00
knoxHuang dfb9e9fa9d fix js_cocos2dx_TMXTiledMap_getPropertiesForGID error for fireball/issues/6035 2017-07-14 15:15:24 +08:00
Wang Nan 66e67e84de Merge pull request #707 from 2youyou2/physics
fixed some physics jsb bugs
2017-07-13 09:40:10 +08:00
2youyouo2 e76f7837e3 fixed some physics jsb bugs 2017-07-12 17:36:53 +08:00
pandamicro 856de64714 Avoid restart crash in spidermonkey 2017-07-11 18:33:39 +08:00
pandamicro cbe4dc6f6d Fix java oc reflection issue 2017-07-11 15:35:31 +08:00
pandamicro d32214f0d2 Fix simulator crash during app close 2017-07-10 18:30:55 +08:00
pandamicro 144c49a6d7 Fix js oc reflection issue 2017-07-10 18:30:33 +08:00
pandamicro 22109f8e8d Fix gc crash during app closing 2017-07-09 14:34:02 +08:00
pandamicro 66897d4f3f Add back ide-support and fix compilation issues 2017-07-09 10:52:37 +08:00
pandamicro f94fd18256 Use PersistentScript in ScriptingCore 2017-06-30 18:02:08 +08:00
pandamicro ba23e966a7 Fix ScriptingCore::cleanup crash 2017-06-30 18:02:08 +08:00
pandamicro cdf2b39412 Remove js_get_type_from_native usage as many as possible 2017-06-30 18:02:08 +08:00
pandamicro 32f9c7dc1f Remove debugger 2017-06-30 18:02:05 +08:00
pandamicro 0768865461 Fix non ref finalize crash during app close 2017-06-30 18:02:05 +08:00
pandamicro 7974e6f7af Use pure js event instead of native event 2017-06-30 18:02:05 +08:00
pandamicro 4e5886c8a1 Add build id for jsc files 2017-06-30 18:02:05 +08:00
pandamicro 089285b2d2 Fix crash issue caused by setting a pointer which is not proxy to private 2017-06-30 18:02:05 +08:00
pandamicro 31af3a1e4e Remove useless module and made Android compilation pass 2017-06-30 18:02:05 +08:00
pandamicro 8d92378ec7 Fix Android compilation issues 2017-06-30 18:02:05 +08:00
pandamicro e23232ad4c Upgrade anysdk bindings to sm52 2017-06-30 18:02:05 +08:00
pandamicro a9c5e50745 Remove simple audio engine 2017-06-30 18:02:05 +08:00