ERROR_INSUFFICIENT_RESOURCE_FOR_SPECIFIED_SHARED_SECTION_SIZE [BSoD Fix]
Ensure you restart your computer after following these steps
4 min. read
Published on
Read our disclosure page to find out how can you help Windows Report sustain the editorial team. Read more
The ERROR_INSUFFICIENT_RESOURCE_FOR_SPECIFIED_SHARED_SECTION_SIZE with error code 781 (0x30D) and description The Desktop heap encountered an error while allocating session memory. There is more information in the system event log that appears when your operating system encounters a problem allocating session memory for the desktop heap. You might encounter the error due to incorrect configuration or memory exhaustion.
The desktop heap is a critical system resource used by the Windows operating system to manage user interface elements. First, review the event logs to gain more insight into the problem, then restart your computer.
How can I get rid of ERROR_INSUFFICIENT_RESOURCE_FOR_SPECIFIED_SHARED_SECTION_SIZE?
1. Increase the desktop heap size
- Press Windows + R to open the Run window.
- Type regedit and click OK to launch the Registry Editor window.
- Before making any changes, you should first backup the registry files. Go to File>Export and save the .reg file in the desired location.
- Navigate to this path: Computer\
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\SubSystems
- On the right pane, locate an entry named Windows, then double-click it to open the Edit String window.
- In the Value Data field, copy the entry to a notepad and look for SharedSection.
- You will see three values: the first is for the non-interactive desktop heap, the second is for the interactive desktop heap, and the third refers to the maximum desktop heap size for the interactive session.
- On the notepad, change the second value to a larger value, like 3072 or 4096. Depending on your system’s memory, you can choose a higher number. Then, paste the new entry under Value Data.
- Click OK to save the changes.
- Restart your computer to let the changes take effect.
2. Increase the Page File Size
- Press Windows + I to open the Settings app.
- Select System from the left pane and click About.
- Click Advanced system settings.
- On the Advanced tab, look for Performance section and click Settings.
- On the Performance Options window, navigate to the Advanced tab.
- Under Virtual memory, click Change.
- Remove the checkmark next to Automatically manage paging file size for all drives.
- Choose Custom size.
- For the Initial size, you can set the 1.5x of your physical RAM, and for the Maximum size, you can set the 3x size of your physical RAM.
- Click Set.
- Click OK, then reboot your PC to apply the settings and check if you see ERROR_INSUFFICIENT_RESOURCE_FOR_SPECIFIED_SHARED_SECTION_SIZE.
3. Update or reinstall device drivers
- Press Windows + R to open the Run window.
- Type devmgmt.msc and click OK to open the Device Manager app.
- Expand each system component category one by one and look for a driver that has yellow triangle with an exclamation mark inside.
- Once located, right-click it and select Update driver from the context menu.
- Click Search automatically for drivers.
Windows will try to install the best driver version available for your device. If it fails, you can head to the device manufacturer’s website and manually install the latest driver. Alternatively, you can download and install a third-party driver updater tool to ensure the device drivers stay up-to-date.
If updating the drivers didn’t help, try reinstalling the drivers using the following steps:
- Launch the Device Manager app, locate the problematic driver, then right-click the driver and select Uninstall device from the context menu.
- Click Uninstall to confirm.
- Go to Action, then select Scan for hardware changes from the drop-down menu.
Reinstalling the drivers can help you fix other BSoD errors like Page_fault_in_nonpaged_area error and ERROR_PAGEFILE_QUOTA_EXCEEDED
If you often see these issues related to system memory, adding more physical RAM to your computer or server could fix the resource allocation issues.
To conclude, you can get rid of the ERROR_INSUFFICIENT_RESOURCE_FOR_SPECIFIED_SHARED_SECTION_SIZE by increasing the virtual memory, changing the value of the desktop heap, or updating or reinstalling the graphics driver.
Do you think we missed a step that helped you fix the issue? Feel free to mention them in the comments section below.
User forum
0 messages