Infrequent crash

I’m getting a crash in just one area of a level when running in XCode debugger.

Here’s the call stack for the crash:

0 libSystem.B.dylib 0x314780ec memmove + 88
1 sp 0x00754c48 (anonymous namespace)::Concat((anonymous namespace)::CombinedBuffer, (anonymous namespace)::VBODrawCall const) + 136
2 sp 0x0075602c FlushRetainedVBOs(Matrix4x4f const) + 784
3 sp 0x0083a8ec RetainedRenderQueue::PerformRendering(Camera, bool) + 256
4 sp 0x0083b60c RenderRetained(RetainedRenderQueue, std::vector<SceneSlot*, std::allocator<SceneSlot*> >, Shader*, std::basic_string<char, std::char_traits, std::allocator > const) + 1984
5 sp 0x00719e40 Camera::smile:oRender(void ()(RetainedRenderQueue, std::vector<SceneSlot, std::allocator<SceneSlot*> >), bool, Shader*, std::basic_string<char, std::char_traits, std::allocator > const) + 312
6 sp 0x0071b288 Camera::RenderCamera(int, Shader*, std::basic_string<char, std::char_traits, std::allocator > const) + 336
7 sp 0x00832784 RenderManager::RenderCameras() + 216
8 sp 0x0080da58 PlayerLoop(bool) + 1164
9 sp 0x0088f5c0 UnityPlayerLoop() + 16
10 sp 0x0000d480 -[AppController Repaint] (AppController.mm:510)
11 CoreFoundation 0x3026d802 -[NSObject performSelector:withObject:] + 18
12 Foundation 0x30673670 __NSThreadPerformPerform + 208
13 CoreFoundation 0x30269a84 CFRunLoopRunSpecific + 1870
14 CoreFoundation 0x30269320 CFRunLoopRunInMode + 44
15 GraphicsServices 0x31567e58 GSEventRunModal + 268
16 UIKit 0x30a4fa6c -[UIApplication _run] + 520
17 UIKit 0x30a591d0 UIApplicationMain + 1132

The error is:

Unknown error occured in:
No method at 0x314780ec

Continue shows:
Program received signal: “EXC_BAD_INSTRUCTION”

no EP, Unity 1.5.0f3.

Hello,

What are you doing / trying to achieve in that specific level area?

Just some objects marked static that share a material. These aren’t the only objects in the view, but moving the camera to make them leave and reenter the view repeatedly seems related.

does your code work in the Editor?
what SDK do you use?
what OS version your iDevice has?

Yes, it works in the editor.

SDK is 3.0.

I was testing on iPod touch 2G with OS 2.2.1.

I removed the static flag from the five or so objects in the view and then rebuilt and it no longer crashes. It appears related to static batching.

Edit:

I set the static flag again on those objects, rebuilt, and it crashes again.

Seams interesting to me. could you please submit your Unity project folder using our bugreporter?

Just posted bug report.

thanks!