anthony.liot Posted March 18, 2013 Posted March 18, 2013 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
silent Posted March 19, 2013 Posted March 19, 2013 anthony.liot, Could you please provide minimal test scene to us? We are tried to reproduce such behavior, but with no luck. Thanks! How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN
anthony.liot Posted March 19, 2013 Author Posted March 19, 2013 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
anthony.liot Posted March 19, 2013 Author Posted March 19, 2013 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 ???
silent Posted March 19, 2013 Posted March 19, 2013 anthony.liot, yes, minimal test scene and build options would be much of a help to us. Thanks! How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN
anthony.liot Posted March 20, 2013 Author Posted March 20, 2013 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 ^_^
anthony.liot Posted March 20, 2013 Author Posted March 20, 2013 USE_MEMORY increase the memory, on iPad1 and 3GS it´s critical for the memory. It's necessary to use this macro ???
anthony.liot Posted March 20, 2013 Author Posted March 20, 2013 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
frustum Posted April 11, 2013 Posted April 11, 2013 Surprising...<br />Unfortunately we bricked our test iPad1 so we can't test builds.<br />
Recommended Posts