Jump to content

Crash Occluder::clear()


photo

Recommended Posts

Posted

Hi, i m porting an old game make with Unigine two year ago, on iOS, but with the new SDK i have  a trouble when the engine start with crash in the Occluder.

Exactly the problem is inside the clear function i put log file inside the for loop

 

 

void Occluder::clear() {

 

for(int i = 0; i < NUM_PLANES; i++) {

        Log::message("Occluder clear : %d\n",i);

        planes = vec4_zero;

tplanes = vec4_zero;

}

modelviewprojection = mat4_identity;

tmodelviewprojection = mat4_identity;

 

has_occluders = 0;

need_clear = 1;

}

 

and i take a picture of the crash, i m using and iPad 1 and the neon mat lib.

Thanks

 

occluder.clear.png

Posted

oki it's no so easy to extract just some part but i do some other test and if after some hour if i not found way i try to make you a little sample

Posted

Oki, i found something, apparently when i build unigine and my sample only with clang com.apple.compilers.llvm.clang.1_0, i have this error.

If i build Unigine and my sample with com.apple.compilers.llvmgcc42 the problem disappear. Just one more thing, i build unigine without use_memory.

I think there are some trouble with pure clang, because i will have some instability with our Editor and Qt when Unigine was builded with clang.

Silent, do you need a sample anyway ???

Posted

Hi Andrey, i put on my server a minimal sample, it's a complete project xcode with two static lib and one ios application,

libunigine.a

libiosapp.a

Sample.app

 

I don't put the sources of Unigine, you need to add the last sdk in the folder with the same name, theorically the xcode project could be work directly just with plug you iDevice and generate the Sample.app all element will be build and you will see the crash. The exact problem is here : 

 

 

INLINE vec4 &operator=(const vec4 &v) {

#if defined(USE_SSE) || defined(USE_ALTIVEC) || defined(USE_NEON)

vec = v.vec; Thread 1 : EXC_BAD_ACCESS (code=EXC_ARM_DA_ALIGN, address=0x77dffe8)

#else

x = v.x; y = v.y; z = v.z; w = v.w;

#endif

return *this;

 

The url of the project : http://test-player.actisku.com/tests/debug/Sample.zip

 

If you have some trouble ask me  ^_^

Posted

USE_MEMORY increase the memory, on iPad1 and 3GS it´s critical for the memory.

It's necessary to use this macro ???

Posted

All memory allocations must be 16-byte aligned.

Posted

Unfortunately same with use_memory i have the crash.

I add this line for be sure i build Unigine with the macro.

 

#ifdef USE_MEMORY

    features += "Memory ";

#endif

 

Inside the console log : 

 

Features: OpenGLES OpenAL Joystick Memory

  • 3 weeks later...
Posted

Surprising...<br />Unfortunately we bricked our test iPad1 so we can't test builds.<br />

×
×
  • Create New...