Bug report #17937

No reason given when failing to load file

Added by Johannes Kroeger almost 7 years ago. Updated over 5 years ago.

Status:Feedback
Priority:Normal
Assignee:-
Category:Unknown
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

Description

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.

History

#1 Updated by Giovanni Manghi over 5 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