spritebuilder / SpriteBuilder

Objective-C Game Development Suite
http://www.spritebuilder.com/
Other
740 stars 292 forks source link

Blur/Bloom effects crash when added (shader: incompatible types in assignment) #877

Open LearnCocos2D opened 10 years ago

LearnCocos2D commented 10 years ago

Apparently a shader compile error, crashes only in debug builds:

Shader compile error for 0x8B81: ERROR: 0:48: Incompatible types (float and vec2) in assignment (and no available implicit conversion)
ERROR: 0:49: Incompatible types (float and vec2) in assignment (and no available implicit conversion)
ERROR: 0:50: Index 2 beyond bounds (size 2)

2014-09-26 11:25:46.707 SpriteBuilder[42540:303] *** Assertion failure in GLint CompileShader(GLenum, const char *)(), /SpriteBuilder/SpriteBuilder/libs/cocos2d-iphone/cocos2d/CCShader.m:160
objc[42540]: EXCEPTIONS: throwing 0x600000130d38 (object 0x60000005c0e0, a NSException)
objc[42540]: EXCEPTIONS: searching through frame [ip=0x1002bed14 sp=0x7fff5fbfa750] for exception 0x600000130d18
objc[42540]: EXCEPTIONS: searching through frame [ip=0x7fff9289f13d sp=0x7fff5fbfd010] for exception 0x600000130d18
objc[42540]: EXCEPTIONS: catch(id)
objc[42540]: EXCEPTIONS: unwinding through frame [ip=0x1002bed14 sp=0x7fff5fbfa750] for exception 0x600000130d18
objc[42540]: EXCEPTIONS: unwinding through frame [ip=0x1002bee15 sp=0x7fff5fbfa750] for exception 0x600000130d18
objc[42540]: EXCEPTIONS: unwinding through frame [ip=0x7fff9289f13d sp=0x7fff5fbfd010] for exception 0x600000130d18
objc[42540]: EXCEPTIONS: handling exception 0x600000130d18 at 0x7fff9289f14e
objc[42540]: EXCEPTIONS: finishing handler
objc[42540]: EXCEPTIONS: releasing completed exception 0x600000130d38 (object 0x60000005c0e0, a NSException)
objc[42540]: EXCEPTIONS: throwing 0x600000130d38 (object 0x60000005c0e0, a NSException)
objc[42540]: EXCEPTIONS: searching through frame [ip=0x7fff9289f2f0 sp=0x7fff5fbfd010] for exception 0x600000130d18
objc[42540]: EXCEPTIONS: searching through frame [ip=0x7fff9359be74 sp=0x7fff5fbfdea0] for exception 0x600000130d18
objc[42540]: EXCEPTIONS: unwinding through frame [ip=0x7fff9289f2f0 sp=0x7fff5fbfd010] for exception 0x600000130d18
objc[42540]: EXCEPTIONS: unwinding through frame [ip=0x7fff9359be74 sp=0x7fff5fbfdea0] for exception 0x600000130d18
objc[42540]: EXCEPTIONS: handling exception 0x600000130d18 at 0x7fff9359be9e
objc[42540]: EXCEPTIONS: rethrowing current exception
objc[42540]: EXCEPTIONS: searching through frame [ip=0x7fff9359bf07 sp=0x7fff5fbfdea0] for exception 0x600000130d18
objc[42540]: EXCEPTIONS: searching through frame [ip=0x7fff91469f08 sp=0x7fff5fbfdf00] for exception 0x600000130d18
objc[42540]: EXCEPTIONS: searching through frame [ip=0x7fff8c9331d3 sp=0x7fff5fbfe030] for exception 0x600000130d18
objc[42540]: EXCEPTIONS: catch(NSException)
objc[42540]: EXCEPTIONS: unwinding through frame [ip=0x7fff9359bf07 sp=0x7fff5fbfdea0] for exception 0x600000130d18
objc[42540]: EXCEPTIONS: finishing handler
objc[42540]: EXCEPTIONS: unwinding through frame [ip=0x7fff9359bf19 sp=0x7fff5fbfdea0] for exception 0x600000130d18
objc[42540]: EXCEPTIONS: unwinding through frame [ip=0x7fff91469f08 sp=0x7fff5fbfdf00] for exception 0x600000130d18
objc[42540]: EXCEPTIONS: unwinding through frame [ip=0x7fff91469f44 sp=0x7fff5fbfdf00] for exception 0x600000130d18
objc[42540]: EXCEPTIONS: unwinding through frame [ip=0x7fff8c9331d3 sp=0x7fff5fbfe030] for exception 0x600000130d18
objc[42540]: EXCEPTIONS: handling exception 0x600000130d18 at 0x7fff8c9331ed
(lldb) 
thayerandrews commented 10 years ago

I think this should be fixed as of this cocos2d commit. It looks like the cocos2d submodule in the SpriteBuilder develop branch should have this.

thayerandrews commented 10 years ago

I just realized that this is also most likely a duplicate of issue #869 .

LearnCocos2D commented 10 years ago

Yes, that's a duplicate. I thought I had reported this, couldn't find it, created a new report.

Still get the crash though, I tried with this commit: 0ffb305ef9af3daf6883e68078a58ede415fd1d3 Not sure if your fix is in there, the latest cocos2d-iphone submodule commit is older than your comments above so I'll just try again next week.

sana20 commented 9 years ago

This issue is fixed. Mac OS 10.10.1 SB version 1.4.7 XCode 6.1