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 crashes when move tool is active and non-vector layer is selected #55492

Closed
2 tasks done
PavlosDem99 opened this issue Dec 3, 2023 · 3 comments · Fixed by #55981
Closed
2 tasks done

QGIS crashes when move tool is active and non-vector layer is selected #55492

PavlosDem99 opened this issue Dec 3, 2023 · 3 comments · Fixed by #55981
Assignees
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Crash/Data Corruption

Comments

@PavlosDem99
Copy link

PavlosDem99 commented Dec 3, 2023

What is the bug or the crash?

When I am in editing mode of a feature and then try to choose any raster layer, QGIS crashes.

Steps to reproduce the issue

QGIS_Crashes.mp4

Versions

QGIS version
3.34.0-Prizren
QGIS code revision
ffbdd67
Qt version
5.15.3
Python version
3.9.5
GDAL/OGR version
3.7.2
PROJ version
9.3.0
EPSG Registry database version
v10.094 (2023-08-08)
GEOS version
3.12.0-CAPI-1.18.0
SQLite version
3.41.1
PDAL version
2.5.5
PostgreSQL client version
15.2
SpatiaLite version
5.1.0
QWT version
6.1.6
QScintilla2 version
2.13.4
OS version
Windows 10 Version 2009

Active Python plugins
dimensioning
0.2
ee_plugin
0.0.6
go2streetview
8.7
HCMGIS
23.11.23
ImageServerConnector
2.1.1
mapswipetool_plugin
1.2
oneatlas-qgis-plugin-1_0_1
1.3.0
profiletool
4.2.6
qgis-maptiler-plugin
3.2
qgis_resource_sharing
1.0.0
qgis_stac
1.1.1
QuickWKT
3.1
quick_map_services
0.19.34
SemiAutomaticClassificationPlugin
8.1.5
speckle-qgis
2.17.0-rc
visualist
0.8
db_manager
0.1.20
processing
2.12.99

Supported QGIS version

  • I'm running a supported QGIS version according to the roadmap.

New profile

Additional context

No response

@PavlosDem99 PavlosDem99 added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Dec 3, 2023
@agiudiceandrea
Copy link
Contributor

agiudiceandrea commented Dec 3, 2023

@PavlosDem99, thanks for reporting. Please provide all the info requested in the issue report ("In the QGIS Help menu -> About, click in the table, Ctrl+A and then Ctrl+C. Finally paste here. Do not make a screenshot.") and please change the issue report title to a more meaningful one.
Have you actually tried if the issue occurs also using a new QGIS user profile without any external plugin installed?

@agiudiceandrea agiudiceandrea added the Feedback Waiting on the submitter for answers label Dec 3, 2023
@uclaros uclaros removed the Feedback Waiting on the submitter for answers label Dec 4, 2023
@uclaros
Copy link
Contributor

uclaros commented Dec 4, 2023

Can confirm, QgsMapToolMoveFeature::cadCanvasMoveEvent does not check if vlayer is nullptr.
Probably introduced with #51445

@uclaros uclaros changed the title QGIS crashes QGIS crashes when move tool is active and non-vector layer is selected Dec 4, 2023
@PavlosDem99 PavlosDem99 changed the title QGIS crashes when move tool is active and non-vector layer is selected QGIS crashes when edit tool is active and trying to select a layer simultaneously Dec 4, 2023
@PavlosDem99 PavlosDem99 changed the title QGIS crashes when edit tool is active and trying to select a layer simultaneously QGIS crashes when move tool is active and non-vector layer is selected Dec 4, 2023
@PavlosDem99
Copy link
Author

I updated the issue message with QGIS. Also, I changed profile user and the same thing is happening.

@rouault rouault self-assigned this Jan 24, 2024
rouault added a commit to rouault/QGIS that referenced this issue Jan 24, 2024
nyalldawson pushed a commit that referenced this issue Jan 24, 2024
qgis-bot pushed a commit that referenced this issue Jan 24, 2024
nyalldawson pushed a commit that referenced this issue Jan 25, 2024
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! Crash/Data Corruption
Projects
None yet
4 participants