Skip to content
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

can't execute cc.CallFunc #811

Open
hijikix opened this issue Oct 2, 2014 · 3 comments
Open

can't execute cc.CallFunc #811

hijikix opened this issue Oct 2, 2014 · 3 comments

Comments

@hijikix
Copy link

hijikix commented Oct 2, 2014

    var callback = cc.callFunc(function(){cc.log("callback!!")});
    callback.execute();

code above cause an error

libc++abi.dylib: terminating with uncaught exception of type std::bad_typeid: std::bad_typeid

@zhaijialong
Copy link
Contributor

seems you work on a Mac? I tested it in Linux/gcc4.8, and didn't have this problem.

@hijikix
Copy link
Author

hijikix commented Oct 16, 2014

yes, the error message is caused on iOS simulator

and I tried the code on android(nexus7)
then cause an error


F/libc (15634): Fatal signal 6 (SIGABRT) at 0x00003d12 (code=-6), thread 15658 (Thread-470)
I/DEBUG ( 177): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG ( 177): Build fingerprint: 'google/razor/flo:4.4.2/KOT49H/937116:user/release-keys'
I/DEBUG ( 177): Revision: '0'
I/DEBUG ( 177): pid: 15634, tid: 15658, name: Thread-470 >>> org.cocos2dx.XXXXX <<<

...

I/DEBUG ( 177): backtrace:
I/DEBUG ( 177): #00 pc 00021f90 /system/lib/libc.so (tgkill+12)
I/DEBUG ( 177): #1 pc 00012fe1 /system/lib/libc.so (pthread_kill+48)
I/DEBUG ( 177): #2 pc 000131f5 /system/lib/libc.so (raise+10)
I/DEBUG ( 177): #3 pc 00011f2b /system/lib/libc.so
I/DEBUG ( 177): #4 pc 00021844 /system/lib/libc.so (abort+4)
I/DEBUG ( 177): #5 pc 019895f4 /data/app-lib/org.cocos2dx.XXXXX-1/libcocos2djs.so (__gnu_cxx::__verbose_terminate_handler()+344)
I/DEBUG ( 177):
I/DEBUG ( 177): stack:
I/DEBUG ( 177): 76ffaa28 798020a0
I/DEBUG ( 177): 76ffaa2c 40115c21 /system/lib/libc.so (calloc+12)
I/DEBUG ( 177): 76ffaa30 00000020
I/DEBUG ( 177): 76ffaa34 76233878 /data/app-lib/org.cocos2dx.XXXXX-1/libcocos2djs.so
I/DEBUG ( 177): 76ffaa38 00000014
I/DEBUG ( 177): 76ffaa3c 792d007c [anon:libc_malloc]
I/DEBUG ( 177): 76ffaa40 79556e0c [anon:libc_malloc]
I/DEBUG ( 177): 76ffaa44 79332fc0
I/DEBUG ( 177): 76ffaa48 10000005
I/DEBUG ( 177): 76ffaa4c 00000001
I/DEBUG ( 177): 76ffaa50 4015222c /system/lib/libc.so
I/DEBUG ( 177): 76ffaa54 0000000b
I/DEBUG ( 177): 76ffaa58 76b9c4dc /data/app-lib/org.cocos2dx.XXXXX-1/libcocos2djs.so
I/DEBUG ( 177): 76ffaa5c 4012dce5 /system/lib/libc.so
I/DEBUG ( 177): 76ffaa60 401521d8 /system/lib/libc.so
I/DEBUG ( 177): 76ffaa64 71c00308 [anon:libc_malloc]
I/DEBUG ( 177): #00 76ffaa68 00000006
I/DEBUG ( 177): 76ffaa6c 00000002
I/DEBUG ( 177): 76ffaa70 00003d2a
I/DEBUG ( 177): 76ffaa74 79554998 [anon:libc_malloc]
I/DEBUG ( 177): 76ffaa78 79554998 [anon:libc_malloc]
I/DEBUG ( 177): 76ffaa7c 4011afe5 /system/lib/libc.so (pthread_kill+52)
I/DEBUG ( 177): #1 76ffaa80 00000006
I/DEBUG ( 177): 76ffaa84 00000000
I/DEBUG ( 177): 76ffaa88 76b9c9fc /data/app-lib/org.cocos2dx.XXXXX-1/libcocos2djs.so
I/DEBUG ( 177): 76ffaa8c 4011b1f9 /system/lib/libc.so (raise+14)
I/DEBUG ( 177): #2 76ffaa90 76ffaa9c [stack:15658]
I/DEBUG ( 177): 76ffaa94 40119f2f /system/lib/libc.so

@zhaijialong
Copy link
Contributor

@daisukehashimoto
Thanks for your feedback , I will try it again later soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants