deepseek-ai/deepseek-harness · error · Error
CoCreateInstance(FileOpenDialog) failed: HRESULT 0x${(create
Error message
CoCreateInstance(FileOpenDialog) failed: HRESULT 0x${(created >>> 0).toString(16)} What it means
Error "CoCreateInstance(FileOpenDialog) failed: HRESULT 0x${(created >>> 0).toString(16)}" thrown in deepseek-ai/deepseek-harness.
Source
Thrown at packages/host/directory-picker-native/src/win32-dialog-bindings.ts:144
// legacy 5.1 tree over a cosmetic concern.
return
}
for (const context of DPI_AWARENESS_CONTEXTS) {
if (setContext(context) !== null) return
}
// Unreachable in practice (SYSTEM_AWARE is accepted wherever the symbol
// exists); if a host ever refuses everything, the dialog still works —
// just without a DPI opt-in.
},
coInitializeSta: () => coInitializeEx(null, COINIT_APARTMENTTHREADED) as number,
coUninitialize: () => {
coUninitialize()
},
currentThreadId: () => getCurrentThreadId() as number,
createFolderDialog: (): Win32FolderDialog => {
const out = Buffer.alloc(pointerSize)
const created = coCreateInstance(CLSID_FILE_OPEN_DIALOG, null, CLSCTX_INPROC_SERVER, IID_IFILE_OPEN_DIALOG, out) as number
if (created < 0) throw new Error(`CoCreateInstance(FileOpenDialog) failed: HRESULT 0x${(created >>> 0).toString(16)}`)
const dialog = koffi.decode(out, 'void *')
return {
setOptions: options => method(dialog, SLOT_SET_OPTIONS, protoSetOptions)(options),
setTitle: title => method(dialog, SLOT_SET_TITLE, protoSetTitle)(title),
show: () => method(dialog, SLOT_SHOW, protoShow)(null),
resultPath: () => {
const itemOut: unknown[] = [null]
const gotItem = method(dialog, SLOT_GET_RESULT, protoGetResult)(itemOut)
if (gotItem < 0) return { hr: gotItem }
const item = itemOut[0]
try {
const nameOut: unknown[] = [null]
const gotName = method(item, SLOT_GET_DISPLAY_NAME, protoGetDisplayName)(SIGDN_FILESYSPATH, nameOut)
if (gotName < 0) return { hr: gotName }
const path = readUtf16(koffi, nameOut[0])
coTaskMemFree(nameOut[0])
return { hr: gotName, path }
} finally {View on GitHub (pinned to b150a551b8)
When it happens
Trigger: Thrown at packages/host/directory-picker-native/src/win32-dialog-bindings.ts:144 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of deepseek-ai/deepseek-harness@b150a551b8 (2026-08-24).
Data as JSON: /api/errors/16667e59347f283f.
Report an issue: GitHub.