# Exported standalone apps crash on Windows 10

**URL:** <https://forum.cabbageaudio.com/t/exported-standalone-apps-crash-on-windows-10/3100>\
**Category:** Cabbage Stew\
**Created:** [23 February 2022 10:49 UTC](https://forum.cabbageaudio.com/t/exported-standalone-apps-crash-on-windows-10/3100 "2022-02-23T10:49:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kvpr](https://forum.cabbageaudio.com/letter_avatar_proxy/v4/letter/k/6bbea6/32.png) [@kvpr](https://forum.cabbageaudio.com/u/kvpr)\
**Post date:** [23 February 2022 10:49 UTC](https://forum.cabbageaudio.com/t/exported-standalone-apps-crash-on-windows-10/3100/1 "2022-02-23T10:49:14Z")

</div>

All exported standalone apps crash for me on launch.

Running Windows 10 Pro Version 10.0.19042 Build 19042.

GUI doesn’t even load. If I run from a command prompt, I get as far as:

> 0dBFS level = 32768.0  
> –Csound version 6.16 (double samples) Jun 12 2021  
> [commit: 49c8f7a674d0c25d3c78f63ceeb79d77c48e3e25]  
> libsndfile-1.0.31

then nothing. Some WinDbg info from the DrumPads.csd example exported as an .exe. Thanks for any info 🙂

This dump file has an exception of interest stored in it.  
The stored exception information can be accessed via .ecxr.  
(2e94.10ec): Unknown exception - code c0000602 (first/second chance not available)  
For analysis of this file, run !analyze -v  
KERNELBASE!RaiseFailFastException+0x152:  
00007ffe`4d3fb382 0f1f440000 nop dword ptr [rax+rax] 0:000> .ecxr rax=000000f0c51edd20 rbx=000000f0c51ee240 rcx=000000f0c51edd20 rdx=0000000000000000 rsi=0000000000000000 rdi=000000f0c51edd20 rip=00007ffe4d3fb382 rsp=000000f0c51edc40 rbp=0000000000000001 r8=0000000000000000 r9=0000000000000000 r10=000000f0c51ee3a0 r11=000000f0c51ee240 r12=0000000000000001 r13=0000000000000000 r14=0000000000000000 r15=0000000000000000 iopl=0 nv up ei pl nz na po nc cs=0033 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00000204 KERNELBASE!RaiseFailFastException+0x152: 00007ffe`4d3fb382 0f1f440000 nop dword ptr [rax+rax]  
0:000\> !analyze -v

* * *

- 

```
                                                                        *

```

- 

```
                   Exception Analysis *

```

- 

```
                                                                        *

```

* * *

KEY\_VALUES\_STRING: 1

```
Key : Analysis.CPU.mSec
Value: 7561

Key : Analysis.DebugAnalysisManager
Value: Create

Key : Analysis.Elapsed.mSec
Value: 126821

Key : Analysis.Init.CPU.mSec
Value: 687

Key : Analysis.Init.Elapsed.mSec
Value: 14781

Key : Analysis.Memory.CommitPeak.Mb
Value: 156

Key : Timeline.Process.Start.DeltaSec
Value: 7

Key : WER.OS.Branch
Value: vb_release

Key : WER.OS.Timestamp
Value: 2019-12-06T14:06:00Z

Key : WER.OS.Version
Value: 10.0.19041.1

Key : WER.Process.Version
Value: 2.8.0.0

```

FILE\_IN\_CAB: DrumMachine.exe.11924.dmp

NTGLOBALFLAG: 0

PROCESS\_BAM\_CURRENT\_THROTTLED: 0

PROCESS\_BAM\_PREVIOUS\_THROTTLED: 0

APPLICATION\_VERIFIER\_FLAGS: 0

CONTEXT: (.ecxr)  
rax=000000f0c51edd20 rbx=000000f0c51ee240 rcx=000000f0c51edd20  
rdx=0000000000000000 rsi=0000000000000000 rdi=000000f0c51edd20  
rip=00007ffe4d3fb382 rsp=000000f0c51edc40 rbp=0000000000000001  
r8=0000000000000000 r9=0000000000000000 r10=000000f0c51ee3a0  
r11=000000f0c51ee240 r12=0000000000000001 r13=0000000000000000  
r14=0000000000000000 r15=0000000000000000  
iopl=0 nv up ei pl nz na po nc  
cs=0033 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00000204  
KERNELBASE!RaiseFailFastException+0x152:  
00007ffe`4d3fb382 0f1f440000 nop dword ptr [rax+rax]  
Resetting default scope

EXCEPTION\_RECORD: (.exr -1)  
ExceptionAddress: 00007ffe4d3fb382 (KERNELBASE!RaiseFailFastException+0x0000000000000152)  
ExceptionCode: c0000602  
ExceptionFlags: 00000001  
NumberParameters: 0

PROCESS\_NAME: DrumMachine.exe

ERROR\_CODE: (NTSTATUS) 0xc0000602 - {Fail Fast Exception} A fail fast exception occurred. Exception handlers will not be invoked and the process will be terminated immediately.

EXCEPTION\_CODE\_STR: c0000602

STACK\_TEXT:  
000000f0`c51edc40 00007ffe`4d3fb382 KERNELBASE!RaiseFailFastException+0x152  
000000f0`c51ee220 00007ffe`4dc687eb combase!CrashProcessWithWERReport+0x3f  
000000f0`c51ee2f0 00007ffe`4db67622 combase!DecrementMTAUsageHelper+0x14a  
000000f0`c51ee340 00007ffe`4db6748e combase!CDllHost::MTAUninitializeApartmentOnly+0x12  
000000f0`c51ee370 00007ffe`4db673ed combase!CDllHost::ClientCleanupFinish+0x6d  
000000f0`c51ee3a0 00007ffe`4db671e6 combase!DllHostProcessUninitialize+0xc6  
000000f0`c51ee3e0 00007ffe`4db344cc combase!ApartmentUninitialize+0x150  
000000f0`c51ee460 00007ffe`4db2b817 combase!wCoUninitialize+0x1bb  
000000f0`c51ee4c0 00007ffe`4db2c1cb combase!CoUninitialize+0xeb  
000000f0`c51ee5b0 00007ffe`4f25c955 ole32!OleUninitialize+0x45  
000000f0`c51ee5e0 00007ffe`2536eb87 widgets!csoundModuleDestroy+0x39767  
000000f0`c51ee610 00007ffe`4d8042d6 ucrtbase!\<lambda\_f03950bc5685219e0bcd2087efbe011e\>::operator+0xa6  
000000f0`c51ee660 00007ffe`4d8041fb ucrtbase!\_\_crt\_seh\_guarded\_call::operator+0x3b  
000000f0`c51ee690 00007ffe`4d8041b4 ucrtbase!execute\_onexit\_table+0x34  
000000f0`c51ee6c0 00007ffe`2536cf61 widgets!csoundModuleDestroy+0x37b41  
000000f0`c51ee700 00007ffe`2536d086 widgets!csoundModuleDestroy+0x37c66  
000000f0`c51ee760 00007ffe`4f9a9a1d ntdll!LdrpCallInitRoutine+0x61  
000000f0`c51ee7d0 00007ffe`4f9fa9cb ntdll!LdrpProcessDetachNode+0x107  
000000f0`c51ee8a0 00007ffe`4f9fa427 ntdll!LdrpUnloadNode+0x3f  
000000f0`c51ee8f0 00007ffe`4f99fd0a ntdll!LdrpDecrementModuleLoadCountEx+0x72  
000000f0`c51ee920 00007ffe`4f99fc84 ntdll!LdrUnloadDll+0x94  
000000f0`c51ee950 00007ffe`4d305d3e KERNELBASE!FreeLibrary+0x1e  
000000f0`c51ee980 00007ffd`fe13e158 csound64!csoundCloseLibrary+0xe8  
000000f0`c51ee9b0 00007ffd`fe006576 csound64!csoundStop+0x1336  
000000f0`c51ee9e0 00007ffd`fe00351e csound64!csoundDestroy+0xee  
000000f0`c51eea10 00007ff7`4251e8f7 DrumMachine!Csound::~Csound+0x27  
000000f0`c51eea40 00007ff7`4251ebb1 DrumMachine!Csound::operator=+0xc1  
000000f0`c51eea80 00007ff7`42552192 DrumMachine!Csound::operator=+0x336a2  
000000f0`c51eead0 00007ff7`4254e95e DrumMachine!Csound::operator=+0x2fe6e  
000000f0`c51eeb10 00007ff7`4254e9da DrumMachine!Csound::operator=+0x2feea  
000000f0`c51eeb40 00007ff7`4276b4da DrumMachine!Csound::operator=+0x24c9ea  
000000f0`c51eeb90 00007ff7`427726a1 DrumMachine!Csound::operator=+0x253bb1  
000000f0`c51ef4a0 00007ff7`42771a36 DrumMachine!Csound::operator=+0x252f46  
000000f0`c51ef670 00007ff7`4274a846 DrumMachine!Csound::operator=+0x22bd56  
000000f0`c51ef700 00007ff7`426e3591 DrumMachine!Csound::operator=+0x1c4aa1  
000000f0`c51ef770 00007ff7`423c70de DrumMachine!Csound::GetCsound+0x181e  
000000f0`c51ef7a0 00007ff7`423c6360 DrumMachine!Csound::GetCsound+0xaa0  
000000f0`c51ef7d0 00007ff7`423c627d DrumMachine!Csound::GetCsound+0x9bd  
000000f0`c51ef8d0 00007ff7`423c8983 DrumMachine!Csound::GetCsound+0x30c3  
000000f0`c51ef9c0 00007ff7`423ca4c8 DrumMachine!Csound::GetCsound+0x4c08  
000000f0`c51efa90 00007ff7`423ca57e DrumMachine!Csound::GetCsound+0x4cbe  
000000f0`c51efad0 00007ff7`426e7dc9 DrumMachine!Csound::operator=+0x1c92d9  
000000f0`c51efb30 00007ff7`4262dcc3 DrumMachine!Csound::operator=+0x10f1d3  
000000f0`c51efb60 00007ff7`426e8527 DrumMachine!Csound::operator=+0x1c9a37  
000000f0`c51efbc0 00007ff7`425ab2fb DrumMachine!Csound::operator=+0x8c80b  
000000f0`c51efbf0 00007ff7`425aa13e DrumMachine!Csound::operator=+0x8b64e  
000000f0`c51efc30 00007ffe`4d9f7034 kernel32!BaseThreadInitThunk+0x14  
000000f0`c51efc60 00007ffe`4f9e2651 ntdll!RtlUserThreadStart+0x21

SYMBOL\_NAME: widgets!csoundModuleDestroy+39767

MODULE\_NAME: widgets

IMAGE\_NAME: widgets.dll

STACK\_COMMAND: .ecxr ; kb ; \*\* Pseudo Context \*\* Pseudo \*\* Value: c \*\* ; kb

FAILURE\_BUCKET\_ID: FAIL\_FAST\_EXCEPTION\_c0000602\_widgets.dll!csoundModuleDestroy

OS\_VERSION: 10.0.19041.1

BUILDLAB\_STR: vb\_release

OSPLATFORM\_TYPE: x64

OSNAME: Windows 10

FAILURE\_ID\_HASH: {dcb830ce-312a-4a95-a17b-ff35b2464abc}

Followup: MachineOwner

---

<div class="post-metadata">

**Author:** ![rorywalsh](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/rorywalsh/32/165_2.png) [@rorywalsh](https://forum.cabbageaudio.com/u/rorywalsh)\
**Post date:** [23 February 2022 11:52 UTC](https://forum.cabbageaudio.com/t/exported-standalone-apps-crash-on-windows-10/3100/2 "2022-02-23T11:52:02Z")

</div>

Thanks, what version of Cabbage are you running?

[edit] I just tried the latest beta version and it’s works fine for me. Can you [try](https://dev.azure.com/rorywalsh/cabbage/_build/results?buildId=2228&view=artifacts&pathAsName=false&type=publishedArtifacts)? Click the three dots on the right of the Installer link, and download the latest installer for Windows.

---

<div class="post-metadata">

**Author:** ![kvpr](https://forum.cabbageaudio.com/letter_avatar_proxy/v4/letter/k/6bbea6/32.png) [@kvpr](https://forum.cabbageaudio.com/u/kvpr)\
**Post date:** [23 February 2022 12:10 UTC](https://forum.cabbageaudio.com/t/exported-standalone-apps-crash-on-windows-10/3100/3 "2022-02-23T12:10:02Z")

</div>

Thanks for the quick reply. I was using version 2.8.0. Just downloaded the latest beta and can confirm that it does export standalone Windows apps correctly 🙂
