Bug report #20581

QGis 3.4 reproducible crash while in idle state

Added by Juan Manuel Perez almost 6 years ago. Updated almost 6 years ago.

Status:Closed
Priority:High
Assignee:Julien Cabieces
Category:Processing/Core
Affected QGIS version:3.5(master) Regression?:No
Operating System:Windows 7 64 bits Easy fix?:No
Pull Request or Patch supplied:Yes Resolution:
Crashes QGIS or corrupts data:Yes Copied to github as #:28401

Description

It seems some operations may lead to a delayed crash in QGis.
I've attached a sample plugin to reproduce this delayed crash (tested with QGis 3.4.1 64 bits for Windows):
  • Open QGis 3.4. No need to open any project nor file.
  • Install attached plugin into QGis 3.4
  • Open Processing ToolBox. There you will find a new 'Alg Crash Group', expand it, then double-click on 'Alg Crash' within this group. The Dialog for launching 'Alg Crash' will open.
  • On the dialog for 'Alg Crash' algorithm:
    • you will find a 'Kind of crash' pulldown. Select the second option '60 seconds after file write combined with sinkParameter populated from shapefile'
    • you may leave 'Output layer' untouched.
    • Press 'Run'
  • The Log tab will gain focus, and there you will see a message in red stating "Wait for exactly 60 seconds, then you will see Qgis crashing"
  • Wait 60 seconds, and QGis will crash

alg_crash.zip (4.48 KB) Juan Manuel Perez, 2018-11-21 04:12 PM

alg_crash(ready for install from zip).zip (5.06 KB) Juan Manuel Perez, 2018-11-22 10:12 AM

Associated revisions

Revision e948120b
Added by Julien Cabieces almost 6 years ago

Correct crash when read from ogr file in thread (QgsProcessing for instance)

fixes #20581

Revision 9ea7f1ef
Added by Julien Cabieces almost 6 years ago

Correct crash when read from ogr file in thread (QgsProcessing for instance)

fixes #20581

(cherry picked from commit e948120b7bf42b26eed432c2e2e0b43272c3b8fe)

History

#1 Updated by Juan Manuel Perez almost 6 years ago

Just a correction: '60 seconds after file write combined with sinkParameter populated from shapefile' is the first, not the second, option in the pulldown.

#2 Updated by Giovanni Manghi almost 6 years ago

  • Status changed from Open to Feedback

Try on qgis master.

#3 Updated by Juan Manuel Perez almost 6 years ago

Just tried on QGIS Desktop 3.5.0 with GRASS 7.4.2 (Nightly).
The crash persists there.
Just uploaded new zip version, ready for use with 'Install from zip' (previous version required you to copy the zip contents manually into plugins directory)

#4 Updated by Nyall Dawson almost 6 years ago

  • Status changed from Open to Feedback

Can you test with 3.4.2 please?

#5 Updated by Juan Manuel Perez almost 6 years ago

Ok! I didn't quite see the point of this test, knowing that "3.5.0 with GRASS 7.4.2 (Nightly)" crashed too, but I've just downloaded 3.4.2, installed, and tested the crash, and effectively it crashes.
So far, the versions tested showing this reproducible crash are:
- 3.4.1
- 3.4.2
- 3.5.0 (nightly)

#6 Updated by Giovanni Manghi almost 6 years ago

  • Status changed from Feedback to Open
  • Affected QGIS version changed from 3.4.1 to 3.5(master)

#7 Updated by Julien Cabieces almost 6 years ago

  • Assignee set to Julien Cabieces

#8 Updated by Julien Cabieces almost 6 years ago

  • Pull Request or Patch supplied changed from No to Yes

Proposed PR https://github.com/qgis/QGIS/pull/8988 for both problems

#9 Updated by Julien Cabieces almost 6 years ago

Two PR for each issue:
- https://github.com/qgis/QGIS/pull/8988 for vector layer read
- https://github.com/qgis/QGIS/pull/9019 for python print

#10 Updated by Julien Cabieces almost 6 years ago

  • % Done changed from 0 to 100
  • Status changed from Open to Closed

Also available in: Atom PDF