Page MenuHome

Blender crashes with no speakers pluggedin
Closed, InvalidPublic

Description

I got my speakers broken so unplugged them from system.
From then Blender started crashing while opening.
To make it open again I had to plugin the headphones.
I'm able to repeat this by simply plugging and unplugging headphones:
headphones plugged in blender starts
headphones not plugged in blender crashes

Machine details:
OS: Windows 7 Ultimate, 64 Bit ( Service Pack 1 )
Video: NVIDIA GeForce GTX 480
Audio: Internal Realtek High Definition Audio ( Don't know exactly which chip is mounted ! )

Blender Version: 2.59.2 R40335M ( Scon build )

I builded the same revision with Visual Studio and CMake and launched debug to see where the error was,
but with this build the bug doesn't appear... only the Scons Build crashes without speakers or headphone plugged in

Here the Windows crash log:

Faulting application name: blender.exe, version: 2.5.9.0, time stamp: 0x4e7629ac
Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000
Exception code: 0xc0000005
Fault offset: 0x0000000080009a20
Faulting process id: 0x1d24
Faulting application start time: 0x01cc766503b790b0
Faulting application path: X:\BlenderSVN\install\blender25-win64-vc\blender.exe
Faulting module path: unknown
Report Id: 437bc090-e258-11e0-b732-005056c00008

Details

Type
Bug

Event Timeline

Did you test our official releases from http://www.blender.org/download/get-blender/ ? Also, if you need fresh version of Blender, you'd better test builds from http://builder.blender.org/download/ which uses almost the same settings as release builds. Such kind of problems can easily be caused by incorrect setup in build environment or compiler's issue.

Yes I did
downloaded official 64bit release ( 2.59.0 r39307 )
launched with headphones unplugged and any speakers plugged in too

Crashes as the build I made with Scons

Just as a guess I think is something related to Joerg Mueller's GSOC 3D Audio...
just because is the only major thing related to audio changed recently i think

>>if you need fresh version of Blender, you'd better test builds from
I'm a coder ( it's my day job from a really long time actually ... artist just for passion )

I just prefer to build my fresh versions of blender :)

Thanks for the quick response

I did some research and some tests...

I was totally wrong: Joerg Mueller's GSOC 3D Audio does have nothing to do with the bug !
I apologize with Joerg !

I've found some forum on Ogre were someone was having similar problems:
http://www.ogre3d.org/addonforums/viewtopic.php?f=19&t=11781

But it does not seems to be the exact same case. The strange thing is that it happens only building with Scons, not with CMake
I also noticed that the actual Scons version in Blender doesn't really supports VS 2010.
And I have installed both vs 2008 and vs 2010... maybe this makes Scons engine confused... I'm just speculating

Since I can't make a degug build with scons ( there's some error which causes linker to not find vc09.pdb )
I debugged it with GDB and it crashes when initializing OpenAL audio:
Last call to blender code is the call to ALOpenDevice in wrap_oal.dll

I simply solved building with CMake and not with Scons

I hope this could help when someone get into this

Again
Thanks

Do scons and cmake have the same sound system backends enabled? In the user preferences, under system, it shows them. Maybe cmake somehow compiles without openal? Could you verify the builds from http://builder.blender.org, if those work we can be pretty such the next release will not have this issue.

yes, both Scons and CMake have the same sound system enabled ( SDL and ApenAL ), having as default OpenAL

I downloaded latest versions from http://builder.blender.org... blender-2.59-r40442-win(64 and 32) and... they work !
But win32 version as OpenAL ( and does not present at all the problem )
While Win64 does not have OpenAL.. so doesn't present the problem either

BUT... I just recompiled it with scons, finished compiling just now.. launched without speakers plugged in... and... it's working !!
Another bug gone!

I wonder what was causing the problem...
anyways I'm happy is gone..
building with CMake and vs is so annoying if you are not actually developing but just compiling !

And, just to be sure I have not make a stupid bug report ( which will be an embarrassing thing for a coder ! ),
I just double checked the official 2.59 release without speakers and it crashed... avoiding me the shame :)

Thanks

So, I guess the bug dissapeared? :P I think this should be closed now.