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

setParallelRenderingEnabled with multiple canvas using api #57960

Closed
2 tasks
bowb opened this issue Jul 2, 2024 · 0 comments · Fixed by #57961
Closed
2 tasks

setParallelRenderingEnabled with multiple canvas using api #57960

bowb opened this issue Jul 2, 2024 · 0 comments · Fixed by #57961
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter!

Comments

@bowb
Copy link

bowb commented Jul 2, 2024

What is the bug or the crash?

SEGFAULT in custom app with the following stack trace:

#2 0x00007f75a3f3a853 in qMapLessThanKey (key2=..., key1=...) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qmap.h:69
#3 QMap<QString, QString>::insert (this=0x7f75a57660d8 <QgsGeos::isValid(QString*, bool, QgsGeometry*) const::translatedErrors>, akey=..., avalue=...) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qmap.h:713
#4 0x00007f75a4991385 in QgsGeos::isValid (this=this@entry=0x7f74f4a7b210, errorMsg=errorMsg@entry=0x7f74f4a7b2c0, allowSelfTouchingHoles=allowSelfTouchingHoles@entry=false, errorLoc=errorLoc@entry=0x0)
at ../../src/core/geometry/qgsgeos.cpp:1978
#5 0x00007f75a49d0d08 in QgsSurface::isValid (this=0x55badcee3c40, error=..., flags=...) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qflags.h:145
#6 0x00007f75a490cb52 in QgsPalLabeling::prepareGeometry (geometry=..., context=..., ct=..., clipGeometry=..., mergeLines=) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qflags.h:121
#7 0x00007f75a491098c in QgsPalLayerSettings::registerFeatureWithDetails (this=this@entry=0x55bad9020260, f=..., context=..., obstacleGeometry=..., symbol=symbol@entry=0x55badcd56aa0)
at ../../src/core/labeling/qgslabellinesettings.h:114

Steps to reproduce the issue

I am using QGIS in a custom application with 2 canvas and using setParallelRenderingEnabled in each of them. I am getting a random SEGFAULT when loading up and initializing the application.

it appears that the insert into static QgsStringMap translatedErrors; is having issues in qgsgeos.cpp.

Is multiple canvas usage in a single application supported using ParallelRendering?

Versions

3.26.3

Supported QGIS version

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

New profile

Additional context

No response

@bowb bowb added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Jul 2, 2024
nyalldawson added a commit to nyalldawson/QGIS that referenced this issue Jul 2, 2024
qgis-bot pushed a commit that referenced this issue Jul 3, 2024
qgis-bot pushed a commit that referenced this issue Jul 3, 2024
lbartoletti pushed a commit that referenced this issue Jul 3, 2024
lbartoletti pushed a commit that referenced this issue Jul 3, 2024
elpaso pushed a commit to elpaso/QGIS that referenced this issue Jul 11, 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!
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant