SampleBrowser is crashing in fullscreen on OSX in 64-bit

Problems building or running the engine, queries about how to use features etc.
Post Reply
andron
Gnoblar
Posts: 3
Joined: Mon Mar 21, 2011 7:49 pm

SampleBrowser is crashing in fullscreen on OSX in 64-bit

Post by andron » Thu Mar 24, 2011 12:49 pm

Hello.

I have compiled latest 1.7 from mercurial in 64-bit mode using Xcode 4 on Mac with 10.6 SDK. Unfortunately, SampleBrowser is crashing when I run it in fullscreen. Did anybody get it working in fullscreen?

Configuration: Release, Ogre compiled without boost and threading, pre-compiled dependencies: OgreDependencies_OSX_20110208.zip

Code: Select all

Process:         SampleBrowser [31829]
Path:            /Users/andron/Desktop/ogre/bin/Release/SampleBrowser.app/Contents/MacOS/SampleBrowser
Identifier:      SampleBrowser
Version:         ??? ()
Code Type:       X86-64 (Native)
Parent Process:  launchd [89]

Date/Time:       2011-03-24 14:35:03.954 +0300
OS Version:      Mac OS X 10.6.6 (10J567)
Report Version:  6

Interval Since Last Report:          4359822 sec
Crashes Since Last Report:           194
Per-App Crashes Since Last Report:   7
Anonymous UUID:                      C555EB24-1375-429F-B3BD-2865A9695139

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000
Crashed Thread:  0  Dispatch queue: com.apple.main-thread

Thread 0 Crashed:  Dispatch queue: com.apple.main-thread
0   SampleBrowser                 	0x000000010002a543 OIS::InputManager::createInputSystem(std::multimap<std::string, std::string, std::less<std::string>, std::allocator<std::pair<std::string const, std::string> > >&) + 239
1   SampleBrowser                 	0x000000010000f5cf OgreBites::SampleContext::setupInput() + 799
2   SampleBrowser                 	0x00000001000143fc OgreBites::SampleBrowser::setup() + 44
3   SampleBrowser                 	0x0000000100007488 OgreBites::SampleContext::go(OgreBites::Sample*) + 56
4   SampleBrowser                 	0x0000000100005949 -[AppDelegate go] + 121
5   com.apple.Foundation          	0x00007fff872eda66 _nsnote_callback + 167
6   com.apple.CoreFoundation      	0x00007fff88da8000 __CFXNotificationPost + 1008
7   com.apple.CoreFoundation      	0x00007fff88d94578 _CFXNotificationPostNotification + 200
8   com.apple.Foundation          	0x00007fff872e49ce -[NSNotificationCenter postNotificationName:object:userInfo:] + 101
9   com.apple.AppKit              	0x00007fff831523d6 -[NSApplication _postDidFinishNotification] + 100
10  com.apple.AppKit              	0x00007fff8315230b -[NSApplication _sendFinishLaunchingNotification] + 66
11  com.apple.AppKit              	0x00007fff8321d305 -[NSApplication(NSAppleEventHandling) _handleAEOpen:] + 219
12  com.apple.AppKit              	0x00007fff8321cf81 -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] + 77
13  com.apple.Foundation          	0x00007fff8731bf62 -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] + 360
14  com.apple.Foundation          	0x00007fff8731bd92 _NSAppleEventManagerGenericHandler + 114
15  com.apple.AE                  	0x00007fff810f5323 aeDispatchAppleEvent(AEDesc const*, AEDesc*, unsigned int, unsigned char*) + 162
16  com.apple.AE                  	0x00007fff810f521c dispatchEventAndSendReply(AEDesc const*, AEDesc*) + 32
17  com.apple.AE                  	0x00007fff810f5123 aeProcessAppleEvent + 210
18  com.apple.HIToolbox           	0x00007fff811b4765 AEProcessAppleEvent + 48
19  com.apple.AppKit              	0x00007fff8312204b _DPSNextEvent + 1205
20  com.apple.AppKit              	0x00007fff831217a9 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 155
21  com.apple.AppKit              	0x00007fff830e748b -[NSApplication run] + 395
22  com.apple.AppKit              	0x00007fff830e01a8 NSApplicationMain + 364
23  SampleBrowser                 	0x000000010000589c main + 172
24  SampleBrowser                 	0x00000001000055a4 start + 52
Log file:

Code: Select all

14:42:52: Creating resource group General
14:42:52: Creating resource group Internal
14:42:52: Creating resource group Autodetect
14:42:52: SceneManagerFactory for type 'DefaultSceneManager' registered.
14:42:52: Registering ResourceManager for type Material
14:42:52: Registering ResourceManager for type Mesh
14:42:52: Registering ResourceManager for type Skeleton
14:42:52: MovableObjectFactory for type 'ParticleSystem' registered.
14:42:52: OverlayElementFactory for type Panel registered.
14:42:52: OverlayElementFactory for type BorderPanel registered.
14:42:52: OverlayElementFactory for type TextArea registered.
14:42:52: Registering ResourceManager for type Font
14:42:52: ArchiveFactory for archive type FileSystem registered.
14:42:52: ArchiveFactory for archive type Zip registered.
14:42:52: DDS codec registering
14:42:52: FreeImage version: 3.14.1
14:42:52: This program uses FreeImage, a free, open source image library supporting all common bitmap formats. See http://freeimage.sourceforge.net for details
14:42:52: Supported formats: bmp,ico,jpg,jif,jpeg,jpe,jng,koa,iff,lbm,mng,pbm,pbm,pcd,pcx,pgm,pgm,png,ppm,ppm,ras,tga,targa,tif,tiff,wap,wbmp,wbm,psd,cut,xbm,xpm,gif,hdr,g3,sgi,exr,j2k,j2c,jp2,pfm,pct,pict,pic,bay,bmq,cr2,crw,cs1,dc2,dcr,dng,erf,fff,hdr,k25,kdc,mdc,mos,mrw,nef,orf,pef,pxn,raf,raw,rdc,sr2,srf,arw,3fr,cine,ia,kc2,mef,nrw,qtk,rw2,sti,drf,dsc,ptx,cap,iiq,rwz
14:42:52: Registering ResourceManager for type HighLevelGpuProgram
14:42:52: Registering ResourceManager for type Compositor
14:42:52: MovableObjectFactory for type 'Entity' registered.
14:42:52: MovableObjectFactory for type 'Light' registered.
14:42:52: MovableObjectFactory for type 'BillboardSet' registered.
14:42:52: MovableObjectFactory for type 'ManualObject' registered.
14:42:52: MovableObjectFactory for type 'BillboardChain' registered.
14:42:52: MovableObjectFactory for type 'RibbonTrail' registered.
14:42:52: Loading library RenderSystem_GL
14:42:52: Installing plugin: GL RenderSystem
14:42:52: OpenGL Rendering Subsystem created.
14:42:52: Plugin successfully installed
14:42:52: Loading library Plugin_ParticleFX
14:42:52: Installing plugin: ParticleFX
14:42:52: Particle Emitter Type 'Point' registered
14:42:52: Particle Emitter Type 'Box' registered
14:42:52: Particle Emitter Type 'Ellipsoid' registered
14:42:52: Particle Emitter Type 'Cylinder' registered
14:42:52: Particle Emitter Type 'Ring' registered
14:42:52: Particle Emitter Type 'HollowEllipsoid' registered
14:42:52: Particle Affector Type 'LinearForce' registered
14:42:52: Particle Affector Type 'ColourFader' registered
14:42:52: Particle Affector Type 'ColourFader2' registered
14:42:52: Particle Affector Type 'ColourImage' registered
14:42:52: Particle Affector Type 'ColourInterpolator' registered
14:42:52: Particle Affector Type 'Scaler' registered
14:42:52: Particle Affector Type 'Rotator' registered
14:42:52: Particle Affector Type 'DirectionRandomiser' registered
14:42:52: Particle Affector Type 'DeflectorPlane' registered
14:42:52: Plugin successfully installed
14:42:52: Loading library Plugin_BSPSceneManager
14:42:52: Installing plugin: BSP Scene Manager
14:42:52: Plugin successfully installed
14:42:52: Loading library Plugin_CgProgramManager
14:42:52: Installing plugin: Cg Program Manager
14:42:52: Plugin successfully installed
14:42:52: Loading library Plugin_PCZSceneManager
14:42:52: Installing plugin: Portal Connected Zone Scene Manager
14:42:52: PCZone Factory Type 'ZoneType_Default' registered
14:42:52: Plugin successfully installed
14:42:52: Loading library Plugin_OctreeZone
14:42:52: Installing plugin: Octree Zone Factory
14:42:52: Plugin successfully installed
14:42:52: Loading library Plugin_OctreeSceneManager
14:42:52: Installing plugin: Octree & Terrain Scene Manager
14:42:52: Plugin successfully installed
14:42:52: *-*-* OGRE Initialising
14:42:52: *-*-* Version 1.7.2 (Cthugha)
14:42:52: CPU Identifier & Features
14:42:52: -------------------------
14:42:52:  *   CPU ID: GenuineIntel: Intel(R) Core(TM)2 Duo CPU     P8600  @ 2.40GHz
14:42:52:  *      SSE: yes
14:42:52:  *     SSE2: yes
14:42:52:  *     SSE3: yes
14:42:52:  *      MMX: yes
14:42:52:  *   MMXEXT: yes
14:42:52:  *    3DNOW: no
14:42:52:  * 3DNOWEXT: no
14:42:52:  *     CMOV: yes
14:42:52:  *      TSC: yes
14:42:52:  *      FPU: yes
14:42:52:  *      PRO: yes
14:42:52:  *       HT: no
14:42:52: -------------------------
14:42:52: ********************************************
***  Starting Mac OS X OpenGL Subsystem  ***
********************************************
14:42:52: GLRenderSystem::_createRenderWindow "OGRE Sample Browser", 1600x1200 fullscreen  miscParams: FSAA=0 macAPI=cocoa title=OGRE Sample Browser 
14:42:52: Creating a Cocoa Compatible Render System
14:42:54: GL_VERSION = 2.1 NVIDIA-1.6.26
14:42:54: GL_VENDOR = NVIDIA Corporation
14:42:54: GL_RENDERER = NVIDIA GeForce 320M OpenGL Engine
14:42:54: GL_EXTENSIONS = GL_ARB_transpose_matrix GL_ARB_vertex_program GL_ARB_vertex_blend GL_ARB_window_pos GL_ARB_shader_objects GL_ARB_vertex_shader GL_ARB_shading_language_100 GL_EXT_multi_draw_arrays GL_EXT_clip_volume_hint GL_EXT_rescale_normal GL_EXT_draw_range_elements GL_EXT_fog_coord GL_EXT_gpu_program_parameters GL_EXT_geometry_shader4 GL_EXT_transform_feedback GL_APPLE_client_storage GL_APPLE_specular_vector GL_APPLE_transform_hint GL_APPLE_packed_pixels GL_APPLE_fence GL_APPLE_vertex_array_object GL_APPLE_vertex_program_evaluators GL_APPLE_element_array GL_APPLE_flush_render GL_APPLE_aux_depth_stencil GL_NV_texgen_reflection GL_NV_light_max_exponent GL_IBM_rasterpos_clip GL_SGIS_generate_mipmap GL_ARB_imaging GL_ARB_point_parameters GL_ARB_texture_env_crossbar GL_ARB_texture_border_clamp GL_ARB_multitexture GL_ARB_texture_env_add GL_ARB_texture_cube_map GL_ARB_texture_env_dot3 GL_ARB_multisample GL_ARB_texture_env_combine GL_ARB_texture_compression GL_ARB_texture_mirrored_repeat GL_ARB_shadow GL_ARB_depth_texture GL_ARB_fragment_program GL_ARB_fragment_program_shadow GL_ARB_fragment_shader GL_ARB_occlusion_query GL_ARB_point_sprite GL_ARB_texture_non_power_of_two GL_ARB_vertex_buffer_object GL_ARB_pixel_buffer_object GL_ARB_draw_buffers GL_ARB_shader_texture_lod GL_ARB_color_buffer_float GL_ARB_half_float_vertex GL_ARB_texture_rg GL_ARB_texture_compression_rgtc GL_ARB_framebuffer_object GL_EXT_compiled_vertex_array GL_EXT_draw_buffers2 GL_EXT_framebuffer_object GL_EXT_framebuffer_blit GL_EXT_framebuffer_multisample GL_EXT_texture_rectangle GL_ARB_texture_rectangle GL_EXT_texture_env_add GL_EXT_blend_color GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_texture_lod_bias GL_EXT_abgr GL_EXT_bgra GL_EXT_stencil_wrap GL_EXT_texture_filter_anisotropic GL_EXT_secondary_color GL_EXT_blend_func_separate GL_EXT_shadow_funcs GL_EXT_stencil_two_side GL_EXT_depth_bounds_test GL_EXT_texture_compression_s3tc GL_EXT_texture_compression_dxt1 GL_EXT_texture_sRGB GL_EXT_blend_equation_separate GL_EXT_texture_mirror_clamp GL_EXT_packed_depth_stencil GL_EXT_bindable_uniform GL_EXT_texture_integer GL_EXT_gpu_shader4 GL_EXT_framebuffer_sRGB GL_EXT_provoking_vertex GL_APPLE_flush_buffer_range GL_APPLE_ycbcr_422 GL_APPLE_rgb_422 GL_APPLE_vertex_array_range GL_APPLE_texture_range GL_APPLE_float_pixels GL_ATI_texture_float GL_ARB_texture_float GL_ARB_half_float_pixel GL_APPLE_pixel_buffer GL_APPLE_object_purgeable GL_NV_point_sprite GL_NV_blend_square GL_NV_fog_distance GL_NV_depth_clamp GL_NV_multisample_filter_hint GL_NV_fragment_program_option GL_NV_fragment_program2 GL_NV_vertex_program2_option GL_NV_vertex_program3 GL_NV_conditional_render GL_ATI_texture_mirror_once GL_ATI_texture_env_combine3 GL_ATI_separate_stencil GL_SGIS_texture_edge_clamp GL_SGIS_texture_lod GL_EXT_texture_array GL_EXT_vertex_array_bgra GL_ARB_instanced_arrays GL_ARB_depth_buffer_float GL_EXT_packed_float GL_EXT_texture_shared_exponent 
14:42:54: ***************************
14:42:54: *** GL Renderer Started ***
14:42:54: ***************************
14:42:54: Registering ResourceManager for type GpuProgram
14:42:54: GLSL support detected
14:42:54: GL: Using GL_EXT_framebuffer_object for rendering to textures (best)
14:42:54: FBO PF_UNKNOWN depth/stencil support: D16S0 D24S0 D32S0 Packed-D24S8 
14:42:54: FBO PF_R5G6B5 depth/stencil support: D0S0 D16S0 D24S0 D32S0 Packed-D24S8 
14:42:54: FBO PF_B5G6R5 depth/stencil support: D0S0 D16S0 D24S0 D32S0 Packed-D24S8 
14:42:54: FBO PF_R8G8B8 depth/stencil support: D0S0 D16S0 D24S0 D32S0 Packed-D24S8 
14:42:54: FBO PF_B8G8R8 depth/stencil support: D0S0 D16S0 D24S0 D32S0 Packed-D24S8 
14:42:54: FBO PF_A8R8G8B8 depth/stencil support: D0S0 D16S0 D24S0 D32S0 Packed-D24S8 
14:42:54: FBO PF_B8G8R8A8 depth/stencil support: D0S0 D16S0 D24S0 D32S0 Packed-D24S8 
14:42:54: FBO PF_A2R10G10B10 depth/stencil support: D0S0 D16S0 D24S0 D32S0 Packed-D24S8 
14:42:54: FBO PF_A2B10G10R10 depth/stencil support: D0S0 D16S0 D24S0 D32S0 Packed-D24S8 
14:42:54: FBO PF_FLOAT16_RGB depth/stencil support: D0S0 D16S0 D24S0 D32S0 Packed-D24S8 
14:42:54: FBO PF_FLOAT16_RGBA depth/stencil support: D0S0 D16S0 D24S0 D32S0 Packed-D24S8 
14:42:54: FBO PF_FLOAT32_RGB depth/stencil support: D0S0 D16S0 D24S0 D32S0 Packed-D24S8 
14:42:54: FBO PF_FLOAT32_RGBA depth/stencil support: D0S0 D16S0 D24S0 D32S0 Packed-D24S8 
14:42:54: FBO PF_X8R8G8B8 depth/stencil support: D0S0 D16S0 D24S0 D32S0 Packed-D24S8 
14:42:54: FBO PF_X8B8G8R8 depth/stencil support: D0S0 D16S0 D24S0 D32S0 Packed-D24S8 
14:42:54: FBO PF_SHORT_RGBA depth/stencil support: D0S0 D16S0 D24S0 D32S0 Packed-D24S8 
14:42:54: FBO PF_R3G3B2 depth/stencil support: D0S0 D16S0 D24S0 D32S0 Packed-D24S8 
14:42:54: FBO PF_SHORT_RGB depth/stencil support: D0S0 D16S0 D24S0 D32S0 Packed-D24S8 
14:42:54: [GL] : Valid FBO targets PF_UNKNOWN PF_R5G6B5 PF_B5G6R5 PF_R8G8B8 PF_B8G8R8 PF_A8R8G8B8 PF_B8G8R8A8 PF_A2R10G10B10 PF_A2B10G10R10 PF_FLOAT16_RGB PF_FLOAT16_RGBA PF_FLOAT32_RGB PF_FLOAT32_RGBA PF_X8R8G8B8 PF_X8B8G8R8 PF_SHORT_RGBA PF_R3G3B2 PF_SHORT_RGB 
14:42:54: RenderSystem capabilities
14:42:54: -------------------------
14:42:54: RenderSystem Name: OpenGL Rendering Subsystem
14:42:54: GPU Vendor: nvidia
14:42:54: Device Name: NVIDIA GeForce 320M OpenGL Engine
14:42:54: Driver Version: 2.1.0.0
14:42:54:  * Fixed function pipeline: yes
14:42:54:  * Hardware generation of mipmaps: yes
14:42:54:  * Texture blending: yes
14:42:54:  * Anisotropic texture filtering: yes
14:42:54:  * Dot product texture operation: yes
14:42:54:  * Cube mapping: yes
14:42:54:  * Hardware stencil buffer: yes
14:42:54:    - Stencil depth: 8
14:42:54:    - Two sided stencil support: yes
14:42:54:    - Wrap stencil values: yes
14:42:54:  * Hardware vertex / index buffers: yes
14:42:54:  * Vertex programs: yes
14:42:54:  * Number of floating-point constants for vertex programs: 1024
14:42:54:  * Number of integer constants for vertex programs: 0
14:42:54:  * Number of boolean constants for vertex programs: 0
14:42:54:  * Fragment programs: yes
14:42:54:  * Number of floating-point constants for fragment programs: 1024
14:42:54:  * Number of integer constants for fragment programs: 0
14:42:54:  * Number of boolean constants for fragment programs: 0
14:42:54:  * Geometry programs: yes
14:42:54:  * Number of floating-point constants for geometry programs: 1024
14:42:54:  * Number of integer constants for geometry programs: 0
14:42:54:  * Number of boolean constants for geometry programs: 0
14:42:54:  * Supported Shader Profiles: arbfp1 arbvp1 fp30 fp40 glsl gp4gp gpu_gp nvgp4 vp30 vp40
14:42:54:  * Texture Compression: yes
14:42:54:    - DXT: yes
14:42:54:    - VTC: no
14:42:54:    - PVRTC: no
14:42:54:  * Scissor Rectangle: yes
14:42:54:  * Hardware Occlusion Query: yes
14:42:54:  * User clip planes: yes
14:42:54:  * VET_UBYTE4 vertex element type: yes
14:42:54:  * Infinite far plane projection: yes
14:42:54:  * Hardware render-to-texture: yes
14:42:54:  * Floating point textures: yes
14:42:54:  * Non-power-of-two textures: yes
14:42:54:  * Volume textures: yes
14:42:54:  * Multiple Render Targets: 8
14:42:54:    - With different bit depths: yes
14:42:54:  * Point Sprites: yes
14:42:54:  * Extended point parameters: yes
14:42:54:  * Max Point Size: 63.375
14:42:54:  * Vertex texture fetch: yes
14:42:54:  * Number of world matrices: 0
14:42:54:  * Number of texture units: 16
14:42:54:  * Stencil buffer depth: 8
14:42:54:  * Number of vertex blend matrices: 0
14:42:54:    - Max vertex textures: 16
14:42:54:    - Vertex textures shared: yes
14:42:54:  * Render to Vertex Buffer : no
14:42:54:  * GL 1.5 without VBO workaround: no
14:42:54:  * Frame Buffer objects: yes
14:42:54:  * Frame Buffer objects (ARB extension): no
14:42:54:  * Frame Buffer objects (ATI extension): no
14:42:54:  * PBuffer support: yes
14:42:54:  * GL 1.5 without HW-occlusion workaround: no
14:42:54: Registering ResourceManager for type Texture
14:42:54: DefaultWorkQueue('Root') initialising on thread main.
14:42:54: Particle Renderer Type 'billboard' registered
14:42:54: SceneManagerFactory for type 'BspSceneManager' registered.
14:42:54: Registering ResourceManager for type BspLevel
14:42:54: SceneManagerFactory for type 'PCZSceneManager' registered.
14:42:54: MovableObjectFactory for type 'PCZLight' registered.
14:42:54: MovableObjectFactory for type 'Portal' registered.
14:42:54: MovableObjectFactory for type 'AntiPortal' registered.
14:42:54: PCZone Factory Type 'ZoneType_Octree' registered
14:42:54: PCZone Factory Type 'ZoneType_Terrain' registered
14:42:54: SceneManagerFactory for type 'OctreeSceneManager' registered.
14:42:54: SceneManagerFactory for type 'TerrainSceneManager' registered.
0 x

Wolf
Kobold
Posts: 28
Joined: Fri Jan 14, 2005 3:16 pm
Location: Switzerland
Contact:

Re: SampleBrowser is crashing in fullscreen on OSX in 64-bit

Post by Wolf » Thu Mar 24, 2011 1:05 pm

Did it really crashed ? Because it seems to be a problem with MacOS if you start the application directly in full screen (without any config dialog), you won't have any keyboard or mouse input in your application... The only way I've found to have inputs when starting fullscreen is to change from carbon to cocoa in the config file.

Edit : Ok didn't seen the crash report... it's not the same problem sorry :(
0 x

User avatar
petrocket
Gremlin
Posts: 178
Joined: Tue Mar 20, 2007 3:29 am
Contact:

Re: SampleBrowser is crashing in fullscreen on OSX in 64-bit

Post by petrocket » Sun Aug 07, 2011 2:11 pm

Yeah, I've had a similar problem on OSX. If I start a program and try to run it in full screen then OIS crashes just like in your crash log. I also have that bug where the Ogre window doesn't get mouse/keyboard input unless the mouse cursor is under the ogre window and then you alt+tab to it - the config dialog gets input no problem.

I suspect all this is OIS related, but I haven't tried a debug version of OIS yet to find out what is wrong. I did see that the renderwindow returns a null window handle when in fullscreen mode which is probably why OIS is crashing.
0 x
Ogre API & Manual | Ogre Wiki

blog | website | work

Follow me on twitter @ twitter.com/petrocket

User avatar
masterfalcon
OGRE Team Member
OGRE Team Member
Posts: 4270
Joined: Sun Feb 25, 2007 4:56 am
Location: Bloomington, MN
Contact:

Re: SampleBrowser is crashing in fullscreen on OSX in 64-bit

Post by masterfalcon » Sun Aug 07, 2011 7:36 pm

Hmm, I can verify it here too. I'll see if I can get it all fixed up since this is quite important going forward.
0 x

User avatar
scottstensland
Gnoblar
Posts: 4
Joined: Wed Jun 15, 2011 8:01 pm

Re: SampleBrowser is crashing in fullscreen on OSX in 64-bit

Post by scottstensland » Fri Dec 02, 2011 11:59 pm

I also have this same issue on os x 10.6 using ogre_src_v1-7-3 I installed yesterday.
initially, it was running the demo's just fine prior to choosing full screen.
Now it crashes on every launch - does anyone know how to delete my ogre osx preferences ?
0 x

User avatar
masterfalcon
OGRE Team Member
OGRE Team Member
Posts: 4270
Joined: Sun Feb 25, 2007 4:56 am
Location: Bloomington, MN
Contact:

Re: SampleBrowser is crashing in fullscreen on OSX in 64-bit

Post by masterfalcon » Sat Dec 03, 2011 12:35 am

The prefs are in ~/Library/Application Support/Ogre.

Is this still an issue with the 1.8 code? And what method were you switching full screen with?
0 x

Leott
Gnoblar
Posts: 2
Joined: Sun Mar 18, 2012 11:42 pm

Re: SampleBrowser is crashing in fullscreen on OSX in 64-bit

Post by Leott » Sat May 26, 2012 2:39 am

Sorry to bring life to this but currently I am facing the same problems as outlined above both on the sample browsers and when creating a new project using the Ogre Xcode 4 Templates.

I am experiencing this problem in both 1.8 and 1.7.4 builds of Ogre3D on OS X.

After playing around to determine what could be the cause, It appears that the crash is caused by a null window reference being passed in to OIS::InputManager::CreateInputSystem. The window reference being obtained in the Xcode 4 templates by

Code: Select all

m_pRenderWnd->getCustomAttribute("WINDOW", &hWnd);
Here is the error report generated.

Code: Select all

Process:         Rockheads [6822]
Path:            /Users/USER/*/Rockheads.app/Contents/MacOS/Rockheads
Identifier:      com.*.Rockheads
Version:         1.0 (1.0)
Code Type:       X86-64 (Native)
Parent Process:  launchd [182]

Date/Time:       2012-05-26 02:29:04.456 +0100
OS Version:      Mac OS X 10.7.3 (11D50b)
Report Version:  9

Interval Since Last Report:          3649268 sec
Crashes Since Last Report:           104
Per-App Interval Since Last Report:  1249 sec
Per-App Crashes Since Last Report:   2
Anonymous UUID:                      9474951C-BA7B-405B-9A08-EAF237301669

Crashed Thread:  1  Dispatch queue: com.apple.libdispatch-manager

Exception Type:  EXC_CRASH (SIGSEGV)
Exception Codes: 0x0000000000000000, 0x0000000000000000

Application Specific Information:
objc[6822]: garbage collection is OFF

Thread 0:: Dispatch queue: com.apple.main-thread
0   com.*.Rockheads    	0x000000010000ae94 OIS::InputManager::createInputSystem(std::multimap<std::string, std::string, std::less<std::string>, std::allocator<std::pair<std::string const, std::string> > >&) + 194
1   com.*.Rockheads    	0x000000010000356a OgreFramework::initOgre(std::string, OIS::KeyListener*, OIS::MouseListener*) + 1612 (OgreFramework.cpp:102)
2   com.*.Rockheads    	0x00000001000025bc DemoApp::startDemo() + 82 (OgreDemoApp.cpp:109)
3   com.*.Rockheads    	0x0000000100001fa0 -[AppDelegate go] + 118 (AppDelegate.h:86)
4   com.apple.Foundation          	0x00007fff8f7cbd32 __-[NSNotificationCenter addObserver:selector:name:object:]_block_invoke_1 + 47
5   com.apple.CoreFoundation      	0x00007fff94315aaa _CFXNotificationPost + 2634
6   com.apple.Foundation          	0x00007fff8f7b7fe7 -[NSNotificationCenter postNotificationName:object:userInfo:] + 65
7   com.apple.AppKit              	0x00007fff8bfdb60f -[NSApplication _postDidFinishNotification] + 212
8   com.apple.AppKit              	0x00007fff8bfdb375 -[NSApplication _sendFinishLaunchingNotification] + 78
9   com.apple.AppKit              	0x00007fff8bfda03c -[NSApplication(NSAppleEventHandling) _handleAEOpenEvent:] + 242
10  com.apple.AppKit              	0x00007fff8bfd9d9d -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] + 330
11  com.apple.CoreFoundation      	0x00007fff9435f591 -[NSObject performSelector:withObject:withObject:] + 65
12  com.apple.Foundation          	0x00007fff8f7ee7eb __-[NSAppleEventManager setEventHandler:andSelector:forEventClass:andEventID:]_block_invoke_1 + 101
13  com.apple.Foundation          	0x00007fff8f7ed772 -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] + 283
14  com.apple.Foundation          	0x00007fff8f7ed600 _NSAppleEventManagerGenericHandler + 105
15  com.apple.AE                  	0x00007fff904fec25 aeDispatchAppleEvent(AEDesc const*, AEDesc*, unsigned int, unsigned char*) + 200
16  com.apple.AE                  	0x00007fff904feb03 _ZL25dispatchEventAndSendReplyPK6AEDescPS_ + 38
17  com.apple.AE                  	0x00007fff904fe9f7 aeProcessAppleEvent + 250
18  com.apple.HIToolbox           	0x00007fff95799af9 AEProcessAppleEvent + 102
19  com.apple.AppKit              	0x00007fff8bfd71a9 _DPSNextEvent + 1247
20  com.apple.AppKit              	0x00007fff8bfd6861 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 135
21  com.apple.AppKit              	0x00007fff8bfd319d -[NSApplication run] + 470
22  com.apple.AppKit              	0x00007fff8c251b88 NSApplicationMain + 867
23  com.*.Rockheads    	0x0000000100002437 main + 146 (main.mm:29)
24  com.*.Rockheads    	0x0000000100001ed4 start + 52

Thread 1 Crashed:: Dispatch queue: com.apple.libdispatch-manager
0   libsystem_kernel.dylib        	0x00007fff935707e6 kevent + 10
1   libdispatch.dylib             	0x00007fff934085be _dispatch_mgr_invoke + 923
2   libdispatch.dylib             	0x00007fff9340714e _dispatch_mgr_thread + 54

Thread 2:
0   libsystem_kernel.dylib        	0x00007fff93570192 __workq_kernreturn + 10
1   libsystem_c.dylib             	0x00007fff90698594 _pthread_wqthread + 758
2   libsystem_c.dylib             	0x00007fff90699b85 start_wqthread + 13

Thread 3:
0   libsystem_kernel.dylib        	0x00007fff93570192 __workq_kernreturn + 10
1   libsystem_c.dylib             	0x00007fff90698594 _pthread_wqthread + 758
2   libsystem_c.dylib             	0x00007fff90699b85 start_wqthread + 13

Thread 4:
0   libsystem_kernel.dylib        	0x00007fff93570192 __workq_kernreturn + 10
1   libsystem_c.dylib             	0x00007fff90698594 _pthread_wqthread + 758
2   libsystem_c.dylib             	0x00007fff90699b85 start_wqthread + 13

Thread 5:: com.apple.appkit-heartbeat
0   libsystem_kernel.dylib        	0x00007fff9356fe42 __semwait_signal + 10
1   libsystem_c.dylib             	0x00007fff9064cdea nanosleep + 164
2   libsystem_c.dylib             	0x00007fff9064cbb5 usleep + 53
3   com.apple.AppKit              	0x00007fff8c20dc73 -[NSUIHeartBeat _heartBeatThread:] + 1727
4   com.apple.Foundation          	0x00007fff8f80f74e -[NSThread main] + 68
5   com.apple.Foundation          	0x00007fff8f80f6c6 __NSThread__main__ + 1575
6   libsystem_c.dylib             	0x00007fff906968bf _pthread_start + 335
7   libsystem_c.dylib             	0x00007fff90699b75 thread_start + 13

Thread 1 crashed with X86 Thread State (64-bit):
  rax: 0x0000000000000004  rbx: 0x00007fff7c75d1e0  rcx: 0x0000000101c97528  rdx: 0x0000000000000000
  rdi: 0x0000000000000003  rsi: 0x0000000000000000  rbp: 0x0000000101c976a0  rsp: 0x0000000101c97528
   r8: 0x0000000000000001   r9: 0x0000000101c97668  r10: 0x0000000101c97538  r11: 0xffffff80002d8220
  r12: 0x00007fff7c75c540  r13: 0x0000000000000000  r14: 0x00007fff7c75d270  r15: 0x0000000101c97668
  rip: 0x00007fff935707e6  rfl: 0x0000000000000247  cr2: 0xffffff80dcc35004
Logical CPU: 0
Hopefully someone can help with this. I've been using Ogre3D on Windows for a while now and love it. Really hoping to be able to use it on OS X.

Thanks
0 x

User avatar
masterfalcon
OGRE Team Member
OGRE Team Member
Posts: 4270
Joined: Sun Feb 25, 2007 4:56 am
Location: Bloomington, MN
Contact:

Re: SampleBrowser is crashing in fullscreen on OSX in 64-bit

Post by masterfalcon » Sat May 26, 2012 2:44 am

Stay tuned, I'll be posting a new dependencies package that has this fixed later tonight.
0 x

Leott
Gnoblar
Posts: 2
Joined: Sun Mar 18, 2012 11:42 pm

Re: SampleBrowser is crashing in fullscreen on OSX in 64-bit

Post by Leott » Sat May 26, 2012 2:04 pm

Excellent, it's working beautifully. Thank you very much.
0 x

Post Reply