QGIS Crashes and Performance Issues: Fixes

QGIS Crashes and Performance Issues: Fixes

At a training session some years ago, a participant raised her hand and asked, with admirable politeness, whether QGIS was “supposed to take eleven minutes to open one map”. I looked at her screen. Her project contained forty layers, a dozen of which were national-scale Shapefiles stored on a network drive, three were web services that were slowly timing out, one was a 6 GB raster with no overviews, and every layer was labeled with a rule-based style containing a geometry generator. QGIS was not slow. QGIS was doing a heroic amount of work, in the worst possible way, and it had been doing so every time she panned the map.

That is the typical story. In my experience, nine out of ten complaints about QGIS being slow or unstable trace back to how the data and the project are set up, not to the software itself. And most of the remaining complaints trace back to a handful of specific causes: a misbehaving plugin, a graphics driver, a damaged file or a version bug. All of these can be diagnosed with a methodical approach, and nearly all can be fixed.

In this guide I’ll show you how to tell a crash from a freeze from plain slowness, how to find the cause using a simple process of elimination, the fixes for the most common problems (data, styling, settings, plugins, memory, rendering, printing, systems and drivers), and how to report a real bug so that it gets fixed. It is a deep dive into the ninth item of Top 10 Most Common GIS Errors and How to Fix Them.

A note on versions: menus, option names and defaults change between QGIS releases. I describe the ideas and the typical locations. If something has moved in your version, search the options dialog for the setting’s name.

Diagram: Slow QGIS projects are usually fixed by changing data formats, rendering, the project or the environment.
Slow QGIS projects are usually fixed by changing data formats, rendering, the project or the environment.

First, Name the Problem Precisely

“QGIS is broken” is not a diagnosis. The cure depends on which of these you are experiencing.

What you experienceWhat it isWhere to look first
The window disappears, and the program closes, sometimes with a crash reportA crashPlugins, data, drivers, memory, the specific operation
The window stays but “Not responding”, and nothing happensA freeze or hangA long operation, a network timeout, a locked file or heavy rendering
The program works, but panning, zooming or opening is sluggishSlow renderingData format, indexes, symbology, layer count, remote layers
An operation (a tool, an export, a join) takes far too longSlow processingGeometry validity, memory layers, data size, algorithm choice
The program becomes slower over time, and memory growsA memory problemMany layers, huge rasters, memory layers, leaks in plugins
Specific layers fail to draw or loadA data or driver issueThe layer’s source, the format, the connection
An error message appears, and QGIS continuesAn error, not a crashRead the message, and the Log Messages panel

Write down: what you were doing, the exact message, how often it happens and whether it happens with all data or only with one project or layer. That last question is the most useful one.


The Golden Method: Isolate and Bisect

Whatever the problem, the fastest route to the cause is to remove variables until it disappears, and then add them back one by one. Professionals call it bisection, and it works for crashes, freezes and slowness alike.

Step 1: Is it the project, or QGIS?

  1. Start QGIS with a new, empty project. Does it start quickly and stay stable?
  2. Load a single layer, the one you suspect, and see whether the problem returns.
  3. If the empty QGIS is fine but your project is not, the cause is in the project: a particular layer, style or setting.

Step 2: Is it a plugin?

Plugins run code inside QGIS, and a faulty one can crash or slow it.

  • Start QGIS without plugins. From the command line, QGIS accepts the option --noplugins:
qgis --noplugins

(On Windows, run it from the OSGeo4W shell, or add the option to a shortcut. Paths vary by installation.)

  • Or disable them from the Plugin Manager: Plugins > Manage and Install Plugins > Installed, untick all the third-party plugins, restart QGIS, and re-enable them one at a time, restarting each time, until the problem returns.
  • Be suspicious of experimental plugins and of plugins that haven’t been updated for your version.
  • Check for plugin updates, since many crashes are fixed quickly by their authors.

Step 3: Is it your settings or profile?

QGIS stores your settings, plugins and customizations in a user profile. A damaged profile can cause odd behavior.

  • Create a fresh profile: Settings > User Profiles > New Profile, switch to it, restart, and test. If the problem vanishes, the old profile is the cause.
  • You can reset your settings by renaming the profile folder while QGIS is closed. Find it from Settings > User Profiles > Open Active Profile Folder. QGIS will create a clean one on the next start. Keep the old one, so you can copy useful things back, such as styles and plugin settings.

Step 4: Is it the data?

Step 5: Is it the software version or the installation?

  • Check the version in Help > About, which also lists the versions of the libraries (GDAL, PROJ, GEOS, Qt and Python) that QGIS uses. These matter for bug reports.
  • Try another QGIS version, such as the current Long Term Release or a recent point release, installed side by side. If the problem is specific to your version, a newer one may fix it.
  • A broken or mixed installation (for example, leftover files from older versions, or a Python environment that interferes) causes trouble. A clean reinstall, with the standard installer, helps.

Step 6: Is it the computer?

  • Watch the memory and disk usage while it happens (Task Manager, Activity Monitor or a system monitor).
  • Check disk space, and the health of the disk.
  • Check the graphics driver, which is a surprising cause of crashes, especially in 3D views and with certain rendering settings.
  • Check antivirus and sync tools, which scan files while QGIS reads them.

Reading the Evidence: Logs, Messages and Crash Reports

  • Log Messages panel: View > Panels > Log Messages. It records warnings and errors from QGIS, plugins and data providers, in tabs. Open it before you reproduce the problem. Messages from the data provider tab often reveal the exact cause of a layer failure.
  • The Python console: errors raised by plugins and scripts appear there, and in a pop-up when something fails.
  • The crash report: if QGIS crashes, it may show a dialog with a stack trace (a list of the functions that were running) and offer to copy or report it. Save this text. It is the single most valuable piece of evidence for a bug report. Look at its first lines, which often name the plugin or library involved.
  • Developer and profiling tools: recent QGIS versions include a Developer Tools panel (look in View > Panels) with a profiler, which shows where time is spent loading and rendering, and a query logger that records requests to databases and services. These are excellent for finding which layer or step is slow.
  • Rendering time: QGIS can show how long each layer takes to draw. A single slow layer often accounts for most of the delay.

Fixes for Slow Rendering

When panning and zooming are slow, QGIS is redrawing layers, and one or several layers are expensive. Find the slow ones (switch layers off one by one, or use the profiler), and then apply these fixes.

1. Use a better data format

ogr2ogr -f GPKG data.gpkg roads.shp -nln roads

2. Create spatial indexes

A spatial index lets QGIS read only the features in the visible area. GeoPackage and PostGIS layers normally have one. For formats without one, create it with the Processing tool Create spatial index. In a database, make sure the geometry column has a GIST index. See Spatial SQL Cheat Sheet.

3. Don’t draw more than you need

  • Use scale-dependent visibility. In the layer properties (Rendering), show detailed layers only when zoomed in.
  • Filter the layer with a provider filter (Query Builder) to load only the features you need, such as one region or one class.
  • Clip big datasets to your study area first. See Buffer, Clip, Intersect, Union: Overlay Tools Explained.
  • Use simplification for display. In the layer’s Rendering settings, you can enable geometry simplification, which draws a lighter version of complex shapes while panning and zooming.

4. Simplify the symbology and labeling

Complicated styling is the most frequent hidden cause of slow maps.

  • Rule-based styles with many rules and expressions are evaluated for every feature on every redraw.
  • Geometry generators and data-defined overrides with heavy expressions are expensive.
  • Effects such as drop shadows, blur and blending modes cost a lot.
  • Labels are costly, especially for dense layers, with many rules and complex placement. Limit labels to the scales and layers where they matter.
  • Semi-transparent layers require extra work.
  • Fix: simplify, remove unnecessary rules, test the cost of each effect, and consider pre-computing values into attributes rather than evaluating expressions live. For design guidance, see Cartography Principles: Designing Maps That Communicate and Color Theory for Maps.

5. Handle rasters properly

  • Build overviews (pyramids) so that QGIS can draw a coarse version when zoomed out. In QGIS, use the raster layer’s Pyramids tab or the Processing tool for overviews, or use GDAL:
gdaladdo -r average big_image.tif 2 4 8 16 32

6. Reduce on-the-fly reprojection

Each layer in a different CRS from the project is reprojected every time it draws. For large layers, that costs. Reproject them permanently to the project’s CRS. See Layer Not Aligning? Solving CRS Mismatch Problems.

7. Be careful with remote and network layers

  • Web services (WMS, WMTS, XYZ tiles, WFS): every pan sends requests to a remote server. A slow server, a poor connection or too many web layers can freeze rendering. Use fewer web layers, cache them, or switch them off while you work. See Intro to Web GIS APIs and OGC Standards (WMS, WFS, WMTS).
  • Data on network drives or cloud-sync folders are much slower than local disks, and unreliable. Work on a local copy.
  • Database layers: use estimated metadata and avoid resolving column types for large tables, with the connection options in the QGIS database settings (for PostgreSQL: Use estimated table metadata and Don’t resolve type of unrestricted columns). Make sure that views have a defined unique ID column and are properly indexed underneath.

8. Use the rendering options

In Settings > Options > Rendering, check settings such as:

  • Render layers in parallel using many CPU cores, and the number of cores.
  • Use render caching where possible, to speed up redraws.
  • Enable feature simplification by default.
  • Map update interval for refresh during rendering.

Test the effect of each change. Defaults are generally sensible, but a high-core-count machine may benefit from tuning.

9. Check the Browser panel

If QGIS is slow at startup or while scrolling the Browser panel, it may be scanning huge folders or network locations. Remove problem folders from the browser, and in Settings > Options > Data Sources, adjust the setting that controls scanning of items so that it only checks file extensions rather than file contents.


Fixes for Slow Processing and Tools

When a tool, export or join takes forever:

  • Check validity first. Overlay and dissolve tools slow down, or fail, on invalid geometries. Run Check validity and Fix geometries. See How to Fix Invalid Geometry Errors.
  • Check the CRS: mixed systems cause errors and extra reprojection.
  • Clip the inputs to the area of interest before heavy operations.
  • Use spatial indexes and local, indexed formats.
  • Avoid selecting “selected features only” with a huge number of features if you don’t need it.
  • Simplify the problem: test on a small subset first.
  • Use the right algorithm: some tools exist in several versions (native, GDAL, GRASS, SAGA) with different speeds. Try an alternative.
  • Write outputs to a file, not to memory, when they are large. Temporary scratch layers live in RAM, which is fast for small data, but can exhaust memory with big data. Save big intermediate results to disk.
  • Close the attribute tables and big layer views while processing, which keeps the interface from updating constantly.
  • Check the Processing options in Settings > Options > Processing: the setting for invalid feature filtering (skip, stop or do not filter) and the output folder.
  • Move heavy work to a database or a script. See Spatial SQL Cheat Sheet and Geospatial Development & Automation: The Ultimate Guide.
  • Use a model or a script to repeat steps without the interface. See Automating Workflows with ModelBuilder and QGIS Processing.

Attribute tables and joins

  • Huge attribute tables are slow to open. Use filters, Show Selected Features, or a smaller subset.
  • Virtual fields and expression-based joins are recalculated often. Convert them to real fields once they are final.
  • Joins on unindexed fields are slow. Join in a database, or index the key.

Fixes for Crashes

A crash is a more serious event. These are the usual suspects, in rough order of frequency.

1. A plugin

Bisect the plugins as described above. If a specific plugin is the cause, update it, report the problem to its author, and find an alternative. See Best GIS Plugins for QGIS.

2. Corrupted or unusual data

A damaged file, a malformed geometry or a strange attribute can crash the library that reads it.

3. Memory exhaustion

Very large rasters, huge selections, big in-memory layers, many loaded layers and 3D views can use all the RAM, and the operating system or QGIS then terminates.

  • Watch memory usage during the action that triggers the crash.
  • Use a 64-bit version, with enough RAM and swap space. (Modern QGIS is 64-bit, but check old installations.)
  • Reduce the load: fewer layers, clipped data, overviews, tiled rasters.
  • Use file-based outputs instead of memory layers for big data.
  • Close other heavy applications.
  • Tune GDAL’s cache with environment variables, such as GDAL_CACHEMAX, in Settings > Options > System > Environment, if you understand the trade-offs. Don’t set it larger than your free memory.

4. Graphics drivers and 3D

QGIS uses your graphics system, especially for 3D map views and some rendering options.

  • Update the graphics driver from the manufacturer.
  • Test without 3D views, and with simpler rendering.
  • On laptops with two graphics chips, try forcing QGIS to use the other one.
  • High-DPI and scaling settings on some systems cause interface issues. Try changing the display scaling.
  • On some Linux desktop setups, windowing system differences (for example, Wayland versus X11) can cause instability. Check the QGIS documentation and community advice for your distribution, and test the alternative session type.

5. Printing and layout exports

Crashes during export are often due to size and complexity.

  • Reduce the resolution (DPI) of the export.
  • Check the size of the output: a very large page at a high DPI needs a huge amount of memory.
  • Simplify the layout: fewer overlapping transparent layers and effects.
  • Rasterize or vectorize parts differently, with the layout’s export options.
  • Export in parts, or to PDF and then convert.
  • Check fonts: a damaged font can crash text rendering. Test with a different font.
  • Update QGIS, since layout bugs are often fixed in point releases.

6. Project problems

A project that crashes on opening may contain a problematic layer or setting.

  • Open QGIS first, and drag the project in with the Browser panel, or start with --noplugins.
  • Handle bad layers: QGIS offers a dialog for layers that can’t be found. Use it to remove or repoint them rather than letting QGIS keep trying.
  • Look inside the project file: a .qgz is a compressed archive. Unzipping it exposes the .qgs (XML) file, which you can inspect or edit in a text editor, to remove a problematic layer or setting. Work on a copy.
  • Use the backup: QGIS keeps a backup of the previous version of a project when you save. Check the project folder.
  • Rebuild: if all else fails, create a new project and add layers one at a time, restoring styles from saved style files. This is also a good moment to simplify.

7. Antivirus, permissions and file locks

  • Antivirus can interfere with QGIS reading and writing files. Add exclusions for the QGIS profile folder and your data folders, if your organization allows.
  • Permissions problems cause failures when saving. Check that you can write to the folders.
  • Locks and sync: see Lock Files and Corrupted Geodatabases: Recovery Guide.

8. Paths and special characters

  • Very long paths (on Windows) and unusual characters in folder names have caused problems with some tools. Use short, simple paths without special characters for important work.
  • Spaces are usually fine in QGIS itself, but troublesome for scripts and command lines.

9. A genuine bug

If the crash is reproducible with a clean profile, no plugins and a small dataset, you may have found a genuine bug. Report it. See below.


Startup and Installation Problems

  • QGIS won’t start: try a fresh profile, --noplugins and another version. Check that nothing else (a firewall or antivirus) blocks it.
  • Missing Python modules or provider errors: the installation may be incomplete or mixed. Reinstall with the standard installer, and avoid installing packages into QGIS’s Python with a different tool unless you know what you are doing.
  • Conflicts with other GIS software: multiple installations of GDAL or PROJ on the system path can confuse QGIS. Keep environments tidy. (Using separate environments is a good habit; see Python for GIS: Getting Started.)
  • Missing datum grids or CRS problems: warnings at startup or when loading layers may relate to PROJ data files. Check the documentation for how to install them.
  • After an upgrade, things break: try a fresh profile, and read the release notes. Plugins may need updates.
  • Install only from the official sources for your operating system.

Memory, Layers and Housekeeping

A QGIS project that has grown over years becomes slow for the same reason a desk does. Clean it.

  • Remove layers you don’t use. Each one costs time and memory.
  • Group and toggle visibility rather than keeping everything on.
  • Save temporary results to files, and delete the scratch layers.
  • Store your layers in local, efficient formats, organized in one place.
  • Use relative paths so that projects move easily.
  • Save styles into the data (GeoPackage can store them) or in style files.
  • Archive old versions.
  • Restart QGIS now and then during long sessions, particularly after heavy processing.
  • Keep QGIS and plugins up to date, but upgrade between projects, not in the middle of a deadline, and test first.
  • For production work, prefer a Long Term Release, which is more stable than the newest one.

A Worked Example: The Eleven-Minute Map

Problem: a project takes eleven minutes to open and redraws slowly.

  1. Name it: slow startup and slow rendering, no crash. The project has 40 layers.
  2. Bisect: open QGIS with an empty project (fast). Add layers in groups of five. Startup time jumps at the third group.
  3. Find the culprits: the third group contains three web services, a 6 GB raster and two network-drive Shapefiles. The profiler shows these five layers account for nearly all the time.
  4. Fix the data:
    • Copy the national Shapefiles to a local disk, convert them to a GeoPackage with a spatial index, and clip to the region of interest. Load time drops from minutes to seconds.
    • Build overviews for the 6 GB raster, and convert it to a tiled, compressed COG. It now draws instantly when zoomed out.
    • Reproject it once to the project CRS.
  5. Fix the services: switch the three web layers off by default, and keep only the one basemap that is needed. Replace one with a local tile file.
  6. Fix the styling: replace a rule-based style with 60 rules and a geometry generator by a simple categorized style, pre-computing the key attribute. Limit labels to scales below 1:25,000.
  7. Set scale-dependent visibility on the detailed layers.
  8. Clean up: remove eight unused layers, save the project and restart.
  9. Result: the project opens in under 20 seconds, and panning is smooth. Nothing was wrong with QGIS.

How to Report a Bug

If you’ve isolated a real bug, reporting it well gets it fixed, for you and for everyone else.

  1. Check that it’s new. Search the project’s issue tracker for similar reports, and ask in a community forum.
  2. Update first: check that the bug exists in the latest release of your series.
  3. Reduce it to the smallest reproducible case: a clean profile, no plugins, a small dataset.
  4. Collect the details: QGIS version and build, operating system, the full About information, and the Log Messages.
  5. Describe the steps exactly, numbered, with what you expected and what happened.
  6. Attach a sample project and small data that reproduces the problem, with permission to share it. Anonymize or synthesize sensitive data.
  7. Include the crash stack trace, if there is one.
  8. Be polite and patient. Maintainers are often volunteers.
  9. Report plugin problems to the plugin’s author, using the link in the plugin’s metadata.
  10. Say thanks, and follow up, testing a fix if one is offered.

If you can’t reproduce the problem reliably, say so. Even partial information helps others to recognize a pattern.


Prevention: A Healthy QGIS Setup

  • Use a stable release for production, and keep a second installation for testing new versions.
  • Use few, trusted plugins, and update them.
  • Store data locally, in GeoPackage or a database, with spatial indexes.
  • Keep projects tidy: a reasonable number of layers, simple styles, scale-dependent display and relative paths.
  • Build overviews and use tiled formats for rasters.
  • Back up your projects and profiles, with a copy of the profile folder.
  • Keep your graphics drivers and operating system updated.
  • Have enough RAM and a fast disk (an SSD makes a large difference).
  • Document your standard setup for the team: version, plugins, settings, folder structure.
  • Use scripts and models for heavy, repeated tasks, rather than clicking through them.
  • Test before deadlines, not during them.

Quick Reference: Symptom and Fix

SymptomLikely causeFirst fix
Slow startupMany layers, remote layers, big browser folders, pluginsRemove unused layers, disable remote layers, start with --noplugins
Slow panning and zoomingLarge unindexed vector layers, heavy styles, rasters without overviewsGeoPackage with spatial index, simplify symbology, build overviews
Freezes when loading a layerNetwork drive, web service timeout, locked or corrupted fileCopy locally, switch off web layers, check the file
Crashes when opening a projectA bad layer or pluginStart without plugins, handle bad layers, inspect the project file
Crashes in the 3D viewGraphics driverUpdate the driver, test without 3D
Crash on layout exportHuge or complex exportLower the DPI, simplify, export in parts
Tool takes foreverInvalid geometries, huge inputs, memory layersFix geometries, clip inputs, write to disk
Memory grows until it crashesGiant rasters, large scratch layersOverviews and tiling, file-based outputs, fewer layers
Layer fails to drawData or driver issueCheck the Log Messages and test in another tool
Strange behavior after an upgradeProfile or plugin incompatibilityFresh profile, update plugins

Common Mistakes

  • Blaming QGIS before examining the data and the project.
  • Loading big data directly from network drives or cloud-sync folders.
  • Using Shapefiles or GeoJSON for very large layers.
  • Leaving rasters without overviews.
  • Stacking effects, rule sets and expressions in the symbology.
  • Keeping dozens of web layers on at once.
  • Installing many plugins and never testing them one by one.
  • Ignoring the Log Messages panel and crash reports.
  • Fixing several things at once, so that you don’t know which one worked.
  • Upgrading in the middle of a deadline.
  • Not saving the crash trace and vague bug reports.
  • Processing on invalid geometry.
  • Never cleaning the project, and never restarting.
  • Running critical work on a machine that is too small.

Final Thoughts

QGIS is a large, complex program built by volunteers, companies and public institutions, and it deserves credit for how stable it is. When it misbehaves, the problem is usually one of a short list of things you control: the data format, the layer count, the styling, a plugin, a driver. The method for finding it is the one used by every good technician: change one thing at a time, and measure.

Next time QGIS slows down, don’t suffer in silence. Open the Log Messages panel and the profiler, switch layers off one by one and find the slowest. In ten minutes you will probably know what to fix, and you will have learned something about your data that no manual teaches.

Where to go next: continue with Shapefile Limitations and Encoding Problems (Field Names, UTF-8), and review the foundations in QGIS Beginner’s Guide and Best GIS Plugins for QGIS.

Rachid Khouri

Rachid Khouri

Rachid Khouri is a CAD, BIM and GIS professional, Autodesk Authorized Developer, trainer and technical author with more than 30 years of experience, working with AutoCAD since 1992. He founded GISauthority.com to share practical guidance on GIS and spatial technologies.