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 frequently when I try to delete something from a duplicated map layout. #52079

Closed
2 tasks
boonits opened this issue Mar 3, 2023 · 8 comments · Fixed by #54907
Closed
2 tasks
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Crash/Data Corruption Print Layouts Related to QGIS Print Layouts, Atlas or Reporting frameworks

Comments

@boonits
Copy link

boonits commented Mar 3, 2023

What is the bug or the crash?

User Feedback

This happens frequently. When I duplicate a map, and then try to delete anything from the copy (i.e., a polyline, some text), it's a coin toss if it crashes or not.

Report Details

Python Stack Trace

Windows fatal exception: access violation

Current thread 0x00003628 (most recent call first):
<no Python frame>

Stack Trace


QGraphicsItem::dragMoveEvent :
QGraphicsEffectSource::draw :
QgsLayoutEffect::draw :
QGraphicsScene::drawItems :
QGraphicsScene::drawItems :
QGraphicsView::paintEvent :
QgsLayoutView::paintEvent :
QWidget::event :
QFrame::event :
QGraphicsView::viewportEvent :
QCoreApplicationPrivate::sendThroughObjectEventFilters :
QApplicationPrivate::notify_helper :
QApplication::notify :
QgsApplication::notify :
QCoreApplication::notifyInternal2 :
QWidgetPrivate::drawWidget :
QWidgetPrivate::paintSiblingsRecursive :
QWidgetPrivate::drawWidget :
QWidgetPrivate::paintSiblingsRecursive :
QWidgetPrivate::drawWidget :
QWidgetPrivate::paintSiblingsRecursive :
QWidgetPrivate::drawWidget :
QWidgetPrivate::paintSiblingsRecursive :
QWidgetPrivate::drawWidget :
QWidgetPrivate::moveRect :
QWidget::event :
QApplicationPrivate::notify_helper :
QApplication::notify :
QgsApplication::notify :
QCoreApplication::notifyInternal2 :
QCoreApplicationPrivate::sendPostedEvents :
QGraphicsScene::~QGraphicsScene :
QObject::event :
QGraphicsScene::event :
QApplicationPrivate::notify_helper :
QApplication::notify :
QgsApplication::notify :
QCoreApplication::notifyInternal2 :
QCoreApplicationPrivate::sendPostedEvents :
qt_plugin_query_metadata :
QEventDispatcherWin32::processEvents :
qt_plugin_query_metadata :
QEventLoop::exec :
QCoreApplication::exec :
main :
BaseThreadInitThunk :
RtlUserThreadStart :

QGIS Info
QGIS Version: 3.28.3-Firenze
QGIS code revision: c12bcb2
Compiled against Qt: 5.15.3
Running against Qt: 5.15.3
Compiled against GDAL: 3.6.2
Running against GDAL: 3.6.2

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

Steps to reproduce the issue

  1. Create a map
  2. Add polylines, legends, text etc.
  3. Duplicate the map
  4. Open duplicated map
  5. Try to delete something (e.g.,, a polyline)
  6. QGIS crashes

Versions

3.28

Supported QGIS version

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

New profile

  • I tried with a new QGIS profile

Additional context

No response

@boonits boonits added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Mar 3, 2023
@agiudiceandrea agiudiceandrea added Crash/Data Corruption Print Layouts Related to QGIS Print Layouts, Atlas or Reporting frameworks labels Mar 3, 2023
@agiudiceandrea
Copy link
Contributor

agiudiceandrea commented Mar 3, 2023

Thanks for reporting. Have you tried if the issue does occur also using a new QGIS user profile? Please provide a sample project and layer(s) with which the issue does occur.

@agiudiceandrea agiudiceandrea added the Feedback Waiting on the submitter for answers label Mar 3, 2023
@github-actions
Copy link

The QGIS project highly values your report and would love to see it addressed. However, this issue has been left in feedback mode for the last 14 days and is being automatically marked as "stale".
If you would like to continue with this issue, please provide any missing information or answer any open questions. If you could resolve the issue yourself meanwhile, please leave a note for future readers with the same problem and close the issue.
In case you should have any uncertainty, please leave a comment and we will be happy to help you proceed with this issue.
If there is no further activity on this issue, it will be closed in a week.

@github-actions github-actions bot added stale Uh oh! Seems this work is abandoned, and the PR is about to close. and removed stale Uh oh! Seems this work is abandoned, and the PR is about to close. labels Mar 18, 2023
@github-actions
Copy link

github-actions bot commented Apr 2, 2023

The QGIS project highly values your report and would love to see it addressed. However, this issue has been left in feedback mode for the last 14 days and is being automatically marked as "stale".
If you would like to continue with this issue, please provide any missing information or answer any open questions. If you could resolve the issue yourself meanwhile, please leave a note for future readers with the same problem and close the issue.
In case you should have any uncertainty, please leave a comment and we will be happy to help you proceed with this issue.
If there is no further activity on this issue, it will be closed in a week.

@github-actions github-actions bot added the stale Uh oh! Seems this work is abandoned, and the PR is about to close. label Apr 2, 2023
@github-actions
Copy link

While we hate to see this happen, this issue has been automatically closed because it has not had any activity in the last 42 days despite being marked as feedback. If this issue should be reconsidered, please follow the guidelines in the previous comment and reopen this issue.
Or, if you have any further questions, there are also further support channels that can help you.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Apr 30, 2023
@thbaumann
Copy link
Contributor

The bug still exists (testet up to QGIS 3.32 )

  1. open the attached sample project
    testproject.zip
  2. duplicate the print layout
  3. in the opened duplicated layout zoom in ( ! )
  4. click on the textfield with the content "DELETE ME" and delete it
  5. QGIS crashes

grafik

@github-actions github-actions bot removed the stale Uh oh! Seems this work is abandoned, and the PR is about to close. label Aug 1, 2023
@agiudiceandrea agiudiceandrea reopened this Aug 1, 2023
@agiudiceandrea agiudiceandrea removed the Feedback Waiting on the submitter for answers label Aug 1, 2023
@nyalldawson nyalldawson self-assigned this Oct 3, 2023
@nyalldawson
Copy link
Collaborator

This is almost certainly https://bugreports.qt.io/browse/QTBUG-58501

nyalldawson added a commit to nyalldawson/QGIS that referenced this issue Oct 4, 2023
nyalldawson added a commit to nyalldawson/QGIS that referenced this issue Oct 4, 2023
nyalldawson added a commit that referenced this issue Oct 5, 2023
nyalldawson added a commit to nyalldawson/QGIS that referenced this issue Oct 10, 2023
This was only used to handle blend mode rendering of items, and
causes crashes which cannot be worked around. We have to kill it
and move to manual handling of blend modes for the items

Fixes qgis#52079, likely many other crashes in layouts
nyalldawson added a commit to nyalldawson/QGIS that referenced this issue Oct 11, 2023
This was only used to handle blend mode rendering of items, and
causes crashes which cannot be worked around. We have to kill it
and move to manual handling of blend modes for the items

Fixes qgis#52079, likely many other crashes in layouts
nyalldawson added a commit that referenced this issue Oct 19, 2023
This was only used to handle blend mode rendering of items, and
causes crashes which cannot be worked around. We have to kill it
and move to manual handling of blend modes for the items

Fixes #52079, likely many other crashes in layouts
@Mozlo
Copy link

Mozlo commented Sep 26, 2024

soooooo....... did we get a solution?

@nyalldawson nyalldawson removed their assignment Sep 26, 2024
@nyalldawson
Copy link
Collaborator

@Mozlo this is fixed, just upgrade to a newer version

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 Print Layouts Related to QGIS Print Layouts, Atlas or Reporting frameworks
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants