Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QGIS Crash on add or remove usb drive #28101

Closed
qgib opened this issue Oct 30, 2018 · 13 comments
Closed

QGIS Crash on add or remove usb drive #28101

qgib opened this issue Oct 30, 2018 · 13 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Build/Install Related to compiling or installing QGIS Crash/Data Corruption High Priority Regression Something which used to work, but doesn't anymore

Comments

@qgib
Copy link
Contributor

qgib commented Oct 30, 2018

Author Name: Patrick Lough (Patrick Lough)
Original Redmine Issue: 20280
Affected QGIS version: 3.4.0
Redmine category:build/install


User Feedback

Ejecting or adding USB Drive crashes QGIS 3.4 with clean profile on Windows 10

Report Details

Crash ID: 46bdfc53c9e65ba01bf6e65f60a8fdcad5a2dd77

Stack Trace

QgsWinNative::initializeMainWindow :
QAbstractEventDispatcher::filterNativeEvent :
CallWindowProcW :
CallWindowProcW :
GetMenuState :
KiUserCallbackDispatcher :
NtUserPeekMessage :
PeekMessageW :
PeekMessageW :
QEventDispatcherWin32::processEvents :
qt_plugin_query_metadata :
QEventLoop::exec :
QCoreApplication::exec :
main :
BaseThreadInitThunk :
RtlUserThreadStart :

QGIS Info
QGIS Version: 3.4.0-Madeira
QGIS code revision: 4a4b62e
Compiled against Qt: 5.11.2
Running against Qt: 5.11.2
Compiled against GDAL: 2.3.2
Running against GDAL: 2.3.2

System Info
CPU Type: x86_64
Kernel Type: winnt
Kernel Version: 10.0.17134


Related issue(s): #28160 (duplicates), #28194 (duplicates), #28320 (duplicates), #28354 (duplicates), #28363 (duplicates), #29096 (duplicates)
Redmine related issue(s): 20339, 20374, 20500, 20534, 20543, 21278


@qgib
Copy link
Contributor Author

qgib commented Oct 30, 2018

Author Name: Pavel Popoca Cruz (Pavel Popoca Cruz)


It also happens on Windows 8.1, and Ubuntu 18.04. Not only with flashdrives, but with any storage units' change: external HDD, or even CD/DVD.

@qgib
Copy link
Contributor Author

qgib commented Oct 31, 2018

Author Name: Giovanni Manghi (@gioman)


How replicate?
eject/add a drive while QGIS is working?


  • category_id was changed from GUI to Build/Install
  • status_id was changed from Open to Feedback
  • priority_id was changed from Normal to High
  • crashes_corrupts_data was changed from 0 to 1

@qgib
Copy link
Contributor Author

qgib commented Oct 31, 2018

Author Name: Pavel Popoca Cruz (Pavel Popoca Cruz)


Yes, that's precisely how it happens

@qgib
Copy link
Contributor Author

qgib commented Oct 31, 2018

Author Name: Giovanni Manghi (@gioman)


Confirmed, does not happens on 2.18


  • status_id was changed from Feedback to Open
  • regression was changed from 0 to 1

@qgib
Copy link
Contributor Author

qgib commented Oct 31, 2018

Author Name: Pedro Venâncio (Pedro Venâncio)


Confirmed also here:

Crash ID: 0528813285224215fe95252f0a8bedbd2cda0b4b

Stack Trace

QgsNative::openFileExplorerAndSelectFile :
QAbstractEventDispatcher::filterNativeEvent :
CallWindowProcW :
CallWindowProcW :
GetMenuState :
KiUserCallbackDispatcher :
NtUserPeekMessage :
PeekMessageW :
PeekMessageW :
QEventDispatcherWin32::processEvents :
qt_plugin_query_metadata :
QEventLoop::exec :
QCoreApplication::exec :
QgsHandleBadLayers::qt_metacall :
BaseThreadInitThunk :
RtlUserThreadStart :

QGIS Info
QGIS Version: 3.4.0-Madeira
QGIS code revision: 73134b4c3e
Compiled against Qt: 5.11.2
Running against Qt: 5.11.2
Compiled against GDAL: 2.3.2
Running against GDAL: 2.3.2

System Info
CPU Type: x86_64
Kernel Type: winnt
Kernel Version: 10.0.17134

No problem using QGIS 3.4 with the USB drive inserted. Data can be used from USB drive, and exported to it, without any problem.

The crash only happens in the insert or eject of the USB drive, with the QGIS 3.4 open, even if it has no data inserted.

To reproduce:

  1. Open QGIS 3.4;
    2.1 Insert a USB drive -> Crash happens;
    2.2 Evejt an already inserted USB drive -> Crash happens.

@qgib
Copy link
Contributor Author

qgib commented Oct 31, 2018

Author Name: Pedro Venâncio (Pedro Venâncio)


Ejecting the USB device without safely remove hardware, also crashes QGIS 3.4.

No problem with QGIS 2.18.25 on same machine.

@qgib
Copy link
Contributor Author

qgib commented Nov 1, 2018

Author Name: Nyall Dawson (@nyalldawson)


Applied in changeset fd5a1c8.


  • status_id was changed from Open to Closed
  • done_ratio was changed from 0 to 100

@qgib qgib closed this as completed Nov 1, 2018
@qgib
Copy link
Contributor Author

qgib commented Nov 11, 2018

Author Name: Jürgen Fischer (@jef-n)


@qgib
Copy link
Contributor Author

qgib commented Feb 24, 2019

Author Name: Jürgen Fischer (@jef-n)


@qgib
Copy link
Contributor Author

qgib commented Feb 24, 2019

Author Name: Jürgen Fischer (@jef-n)


@qgib
Copy link
Contributor Author

qgib commented Feb 24, 2019

Author Name: Jürgen Fischer (@jef-n)


@qgib
Copy link
Contributor Author

qgib commented Feb 24, 2019

Author Name: Jürgen Fischer (@jef-n)


@qgib
Copy link
Contributor Author

qgib commented Feb 24, 2019

Author Name: Jürgen Fischer (@jef-n)


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Build/Install Related to compiling or installing QGIS Crash/Data Corruption High Priority Regression Something which used to work, but doesn't anymore
Projects
None yet
Development

No branches or pull requests

1 participant