Orthanc crashing on "large" rdsr-objects in Windows

Issue #1021 new
Luuk created an issue

Manual installation in Windows of OpenREM 1.0.0b

After sending a 215 kb RDSR-object to the orthanc instance, it crashes while performing the lua-script on line:

local instance_tags = ParseJson(RestApiGet('/instances/' .. instanceId .. '/simplified-tags'))

Splitting the line in 2 lines

instance_tags = RestApiGet('/instances/' .. instanceId .. '/simplified-tags')
local instance_tags = ParseJson(instance_tags)

it crashes on the “ParseJson” part.

In the Windows event-viewer the following can be found:

Faulting application name: Orthanc.exe, version: 1.12.0.3, time stamp: 0x65ba398d
Faulting module name: ntdll.dll, version: 10.0.20348.2400, time stamp: 0x9c244209
Exception code: 0xc0000374
Fault offset: 0x0000000000103579
Faulting process id: 0x1aac
Faulting application start time: 0x01daa831505c9253
Faulting application path: C:\Program Files\Orthanc Server\Orthanc.exe
Faulting module path: C:\Windows\SYSTEM32\ntdll.dll
Report Id: 4ec7d3d7-43db-4695-ab10-a93d05579d40
Faulting package full name:
Faulting package-relative application ID:

Exception code 0xc0000374 in ntdll.dll seems to indicate a Heap Corruption Exception (Heap Corruption Exception 0xC0000374 | Microsoft Learn)

Comments (1)

  1. Luuk reporter

    I don’t know if there is any way of preventing the heap memory error in LUA. However, I “installed” the python plugin in the Orthanc and created a small python script that does the same as the lua script (or at least the main functionality for now). So far, that doesn’t seem to crash the Orthanc instance. But more testing might be needed.

  2. Log in to comment