IRONSOFTWAREHOME

Crash, Hang, or Blank PDF on Linux with a Debugger Attached

Curtis Chau
Curtis Chau
Updated: July 3, 2026

On Linux, attaching a debugger to your application can leave IronPDF hung, returning a blank PDF, or crashing silently. It happens whenever a debugger is attached, regardless of the Linux distribution or .NET version.

IronPDF renders through CEF (Chromium Embedded Framework), which by default spawns separate, sandboxed subprocesses to handle rendering. On Linux those subprocesses are locked down so they cannot be traced with ptrace, and a process can have only one tracer at a time. Attaching a debugger collides with the way Chromium launches its sandboxed child processes, so the renderer subprocesses hang. Your application sees that as a hang, a blank PDF, or a silent crash.

Solution

Recommended: enable single-process mode. Set it during application startup, before your first IronPDF operation:

IronPdf.Installation.SingleProcess = true;

Single-process mode keeps rendering in the main process, so there is no sandboxed child for the debugger to collide with.

Because that setting disables CEF's process isolation and is less stable under load, keep it out of production. Scope it to debug builds so it never ships in a release:

#if DEBUG
IronPdf.Installation.SingleProcess = true;
#endif
C#
Warning: Single-process mode disables CEF's process isolation and is less stable under load. Remove it or exclude it from release builds before deploying.
Curtis Chau
Technical Writer

Curtis Chau holds a Bachelor’s degree in Computer Science (Carleton University) and specializes in front-end development with expertise in Node.js, TypeScript, JavaScript, and React. Passionate about crafting intuitive and aesthetically pleasing user interfaces, Curtis enjoys working with modern frameworks and creating well-structured, visually appealing manuals.

...
Read More

Ready to Get Started?

Nuget Downloads 20,389,208Version:2026.8just released

Get your free 30-day Trial Key instantly.
No credit card or account creation required

Try IronPDF for Free

Get Set Up in 5 Minutes

C# PDF DLL

Download DLL

Download Now

or download Windows Installer here.

  1. Download and unzip IronPDF to a location such as ~/Libs within your Solution directory
  2. In Visual Studio Solution Explorer, right click References. Select Browse, "IronPdf.dll"
C# NuGet Library for PDF

Install with NuGet

                  Install-Package IronPdf
                
nuget.org/packages/IronPdf/
  1. In Solution Explorer, right-click References, Manage NuGet Packages
  2. Select Browse and search "IronPdf"
  3. Select the package and install
Key in blue circle

Get your free 30-day Trial Key instantly.

bullet_checkedNo credit card or account creation required
  • Logo Aetna
  • Logo NASA
  • Logo GE
  • Logo Porsche
  • Logo USDA
  • Logo Qatar
Join Millions of Engineers who’ve tried IronPDF
Book your free Live Demo
Booking Badge related to IronPDF Product Demo

Trusted by Millions of Engineers Worldwide

Iron Software's customer logos
Get Your No-Obligation Consult
Complete the form below or email sales@ironsoftware.com
Your details will always be kept confidential.
Trusted by Millions of Engineers Worldwide
Iron Software's customer logos
Get your free 30-day Trial Key instantly.
No credit card or account creation required