Vst-plugin, crash when quit host, latest tip:


#1

First-chance exception at 0x7685c83b in Cubase6.exe: 0x0000087A: 0x87a.

call stack:

[code] kernel32.dll!7685c83b()
[Frames below may be incorrect and/or missing, no symbols loaded for kernel32.dll]
kernel32.dll!7685c83b()
dxgi.dll!64e09bf2()
dxgi.dll!64e0861b()
dxgi.dll!64e08592()
dxgi.dll!64e03cac()
dxgi.dll!64e1c88d()
dxgi.dll!64e06a62()
dxgi.dll!64e0720c()
dxgi.dll!64e0722f()
dxgi.dll!64e071d1()
dxgi.dll!64e1ca80()
d3d10_1core.dll!659b96e9()
d2d1.dll!64faa413()
d2d1.dll!64fa4404()
d2d1.dll!64fa515e()
d2d1.dll!64fa51c3()
d2d1.dll!64fa27e7()
d2d1.dll!64fa1ca4()
d2d1.dll!64f91b71()
d2d1.dll!64f92336()

xxxxxxx.dll!juce::ComSmartPtr::release() Line 97 + 0x26 bytes C++
xxxxxxx.dll!juce::ComSmartPtr::operator=(ID2D1Factory * const newP=0x00000000) Line 50 C++
xxxxxxx.dll!juce::Direct2DFactories::~Direct2DFactories() Line 64 C++
xxxxxxx.dll!juce::Direct2DFactories::getInstance'::2’::`dynamic atexit destructor for ‘instance’’() + 0x13 bytes C++
xxxxxxx.dll!doexit(int code=0, int quick=0, int retcaller=1) Line 591 C
xxxxxxx.dll!_cexit() Line 427 + 0xb bytes C
xxxxxxx.dll!_CRT_INIT(void * hDllHandle=0x5d4d0000, unsigned long dwReason=0, void * lpreserved=0x00000000) Line 168 C
xxxxxxx.dll!__DllMainCRTStartup(void * hDllHandle=0x5d4d0000, unsigned long dwReason=0, void * lpreserved=0x00000000) Line 340 + 0x11 bytes C
xxxxxxx.dll!_DllMainCRTStartup(void * hDllHandle=0x5d4d0000, unsigned long dwReason=0, void * lpreserved=0x00000000) Line 281 + 0x11 bytes C[/code]


#2

do you have an idea, since which change/commit in the modules rep. this problem can happen, cause need a stable configuration for my costumer right now…


#3

Looks like the Direct2D stuff that’s used for font layout… You can disable that with the JUCE_USE_DIRECTWRITE flag, but I don’t think there’s a problem with the DirectWrite code itself - it looks more like you’ve got some kind of weird static initialisation situation going on.

In the stack trace, it looks like something in your codebase is calling exit() before the program has actually finished initialising, which is very odd… Do you have some kind of static object whose constructor calls exit() ?


#4

thanks, deactivating DIRECTWRITE seems to be helpful. Funny enough i don’t get any helpful stack-traces on my Vista/32 bit machine, only on my Vista/64 system (debugging 32-bit software)

I’m just using the normal vst-wrapper 32bit (nothing special), maybe somebody can crosscheck this issue…


#5

wow this was my post no. 500 :lol: