Bug report #17937

No reason given when failing to load file

Added by Johannes Kroeger almost 6 years ago. Updated over 4 years ago.

Affected QGIS version:master Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:25833


1. Prepare garbage data

$ dd if=/dev/urandom of=random bs=1M count=1
1+0 records in
1+0 records out
1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.0470943 s, 22.3 MB/s

2. Try to load it in QGIS

$ qgis-git random

3. QGIS shows a red message above the recent project list, saying "CRITICAL Layer is not valid : The layer /tmp/random is not a valid layer and can not be added to the map. Reason: ". The same message (plus a timestamp) is available in the messages log.

There is no reason given.


#1 Updated by Giovanni Manghi over 4 years ago

  • Status changed from Open to Feedback

Please check if this issue is still valid on QGIS 3.4.5 or 3.6.

Also available in: Atom PDF