EXC_BAD_ACCESS on MacOS window close

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
Devon7
Posts: 9
Joined: Sun Apr 27, 2014 6:41 pm

EXC_BAD_ACCESS on MacOS window close

Post by Devon7 »

Typing Clover-Q quits the HelloWorld demo normally but
typing Clover-W or clicking the close-window button
(little red button leftmost on the title bar) bombs.

Code: Select all

[Session started at 2014-05-01 11:54:17 -0400.]
GNU gdb 6.3.50-20050815 (Apple version gdb-1515) (Sat Jan 15 08:33:48 UTC 2011)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin".Setting environment variable "NO_EM_RESTART" to null value.
Setting environment variable "XRE_PROFILE_LOCAL_PATH" to null value.
Setting environment variable "XRE_PROFILE_NAME" to null value.
Setting environment variable "XUL_APP_FILE" to null value.
Setting environment variable "XRE_START_OFFLINE" to null value.
Setting environment variable "XRE_BINARY_PATH" to null value.
Setting environment variable "MOZ_LAUNCHED_CHILD" to null value.
Setting environment variable "XRE_PROFILE_PATH" to null value.
Setting environment variable "MOZ_CRASHREPORTER_RESTART_ARG_2" to null value.
tty /dev/ttys001
Loading program into debugger…
Program loaded.
run
[Switching to process 984]
Running…
Irrlicht Engine version 1.9.0
Darwin Kernel Version 10.8.0: Tue Jun  7 16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386
Loaded mesh: ../../media/sydney.md2
Loaded texture: /Users/devon/hack/irrlicht-1.9.0/media/sydney.bmp
Program received signal:  “EXC_BAD_ACCESS”.
sharedlibrary apply-load-rules all
(gdb) bt
#0  0x00007fff81dfbf0c in objc_msgSend ()
#1  0x00000001002354db in irr::CIrrDeviceMacOSX::closeDevice (this=0x100a11760) at /Users/devon/hack/irrlicht-1.9.0/source/Irrlicht/MacOSX/../MacOSX/CIrrDeviceMacOSX.mm:555
#2  0x0000000100235708 in irr::CIrrDeviceMacOSX::~CIrrDeviceMacOSX (this=0x100a11760) at /Users/devon/hack/irrlicht-1.9.0/source/Irrlicht/MacOSX/../MacOSX/CIrrDeviceMacOSX.mm:541
#3  0x0000000100227b68 in irr::IReferenceCounted::drop (this=0x100a118b0) at IReferenceCounted.h:134
#4  0x0000000100003b5e in main () at /Users/devon/hack/irrlicht-1.9.0/source/Irrlicht/MacOSX/../../../examples/01.HelloWorld/main.cpp:229
(gdb) 
Nadro
Posts: 1648
Joined: Sun Feb 19, 2006 9:08 am
Location: Warsaw, Poland

Re: EXC_BAD_ACCESS on MacOS window close

Post by Nadro »

It's already fixed in ogl-es branch where we use NSOpenGL context manager. It will be merged with trunk.
Library helping with network requests, tasks management, logger etc in desktop and mobile apps: https://github.com/GrupaPracuj/hermes
Post Reply