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 makeGraph is called. #26061

Closed
qgib opened this issue Feb 21, 2018 · 3 comments
Closed

QGIS crashes when makeGraph is called. #26061

qgib opened this issue Feb 21, 2018 · 3 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Crash/Data Corruption High Priority Plugins

Comments

@qgib
Copy link
Contributor

qgib commented Feb 21, 2018

Author Name: Tommie Jones (Tommie Jones)
Original Redmine Issue: 18170
Affected QGIS version: 2.14.3
Redmine category:c++_plugins


I have a plugin that runs the following code

        layer = self.iface.activeLayer()
        director = QgsLineVectorLayerDirector( layer, -1, '', '', '', 3 )
        properter = QgsDistanceArcProperter()
        director.addProperter( properter )
        builder = QgsGraphBuilder( layer.crs() )
        tiedPoints  = director.makeGraph( builder, [] )
        #graph = builder.graph()
        #vn = graph.vertexCount()
        #print(u"the graph has"+str(vn)+u" points")

When the function makeGraph is called then the qgis crashes


Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

VM Regions Near 0:
--> 
    __TEXT                 000000010b76b000-000000010b98e000 [ 2188K] r-x/rwx SM=COW  /Applications/QGIS.app/Contents/MacOS/QGIS

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   org.qgis.qgis2_core           	0x000000010d2cadde QgsGeometry::wkbType() const + 4
1   org.qgis.qgis2_networkanalysis	0x000000012096021a QgsLineVectorLayerDirector::makeGraph(QgsGraphBuilderInterface*, QVector<QgsPoint> const&, QVector<QgsPoint>&) const + 656
2   _networkanalysis.so           	0x00000001247734a2 meth_QgsLineVectorLayerDirector_makeGraph(_object*, _object*) + 203
3   org.python.python             	0x0000000121017a0b PyEval_EvalFrameEx + 13400
4   org.python.python             	0x00000001210143c1 PyEval_EvalCodeEx + 1583
5   org.python.python             	0x0000000120fb92e5 0x120f91000 + 164581
6   org.python.python             	0x0000000120f9b202 PyObject_Call + 99
7   org.python.python             	0x0000000120fa5ff5 0x120f91000 + 86005
8   org.python.python             	0x0000000120f9b202 PyObject_Call + 99
9   org.python.python             	0x0000000121019e83 PyEval_CallObjectWithKeywords + 165
10  sip.so                        	0x00000001212add03 sip_api_invoke_slot_ex + 785
11  QtCore.so                     	0x00000001213d124c PyQtProxy::invokeSlot(qpycore_slot const

@qgib
Copy link
Contributor Author

qgib commented Feb 22, 2018

Author Name: Alexander Bruy (@alexbruy)


QGIS 2.14 is too old. Please test on latest 2.18 and/or master.

@qgib
Copy link
Contributor Author

qgib commented Feb 25, 2018

Author Name: Giovanni Manghi (@gioman)


  • crashes_corrupts_data was changed from 0 to 1
  • priority_id was changed from Normal to High
  • status_id was changed from Open to Feedback

@qgib
Copy link
Contributor Author

qgib commented May 16, 2018

Author Name: Alexander Bruy (@alexbruy)


Closed for the lack of feedback. Please reopen if necessary.


  • status_id was changed from Feedback to Closed

@qgib qgib closed this as completed May 16, 2018
@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! High Priority Plugins Crash/Data Corruption labels May 25, 2019
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 High Priority Plugins
Projects
None yet
Development

No branches or pull requests

1 participant