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-dev crashes after PyQt5 QComboBox.clear() #25964

Closed
qgib opened this issue Feb 9, 2018 · 9 comments
Closed

QGIS-dev crashes after PyQt5 QComboBox.clear() #25964

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

Comments

@qgib
Copy link
Contributor

qgib commented Feb 9, 2018

Author Name: Ondrej Remes (Ondrej Remes)
Original Redmine Issue: 18068
Affected QGIS version: 2.99(master)
Redmine category:python_bindings_/_sipify


Hello, when i can clear item list in QComboBox used in custom attribute form, Qgis crashes without debug informations! Same situation occurs when i can remove items by QComboBox.removeItem() calling.


@qgib
Copy link
Contributor Author

qgib commented Feb 10, 2018

Author Name: Nyall Dawson (@nyalldawson)


Can you share the form?


  • status_id was changed from Open to Feedback

@qgib
Copy link
Contributor Author

qgib commented Feb 10, 2018

Author Name: Ondrej Remes (Ondrej Remes)


okey, in attachment.


  • 12138 was configured as vloz_kere.ui

@qgib
Copy link
Contributor Author

qgib commented Feb 10, 2018

Author Name: Alessandro Pasotti (@elpaso)


Cannot reproduce on master/linux with Qt 5.9.3

@qgib
Copy link
Contributor Author

qgib commented Feb 11, 2018

Author Name: Ondrej Remes (Ondrej Remes)


I'm sending part of code:

def vloz_kere(dialog, layer, feature):
  global myDialog
  myDialog = dialog
  fTAXON = dialog.findChild(QComboBox, "TAXON")
	fTAXON.editTextChanged.connect(refresh_combo)


def refresh_combo():
	fTAXON = myDialog.findChild(QComboBox, "TAXON")
	if fTAXON.count() is None or fTAXON.count() == 0 :
		pass
	else:
		fTAXON.clear() 
	for key, value in druh.items():
		if str(fTAXON.currentText()) in value:
			fTAXON.addItem(value)

I try add condition for first use (fTAXON.count() is None or 0) but problem is not finished. Qgis frozes and be shutdown with no debug infrormations.

@qgib
Copy link
Contributor Author

qgib commented Feb 11, 2018

Author Name: Ondrej Remes (Ondrej Remes)


The problem occurs after start attribute form when i try type something in combobox, cursor is freeze for 3 - 4 seconds and the application crashes.

@qgib
Copy link
Contributor Author

qgib commented Feb 11, 2018

Author Name: Denis Rouzaud (@3nids)


  • assigned_to_id removed Denis Rouzaud

@qgib
Copy link
Contributor Author

qgib commented Mar 4, 2018

Author Name: Giovanni Manghi (@gioman)


  • status_id was changed from Feedback to Open
  • version was changed from master to 2.99(master)
  • crashes_corrupts_data was changed from 0 to 1

@qgib
Copy link
Contributor Author

qgib commented Jan 20, 2019

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


Please test with QGIS 3.4 - QGIS 2.18 reached it's end of life.


  • status_id was changed from Open to Feedback

@qgib
Copy link
Contributor Author

qgib commented Feb 10, 2019

Author Name: Nyall Dawson (@nyalldawson)


  • resolution was changed from to no timely feedback
  • status_id was changed from Feedback to Closed

@qgib qgib closed this as completed Feb 10, 2019
@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! High Priority PyQGIS Related to the PyQGIS API 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 PyQGIS Related to the PyQGIS API
Projects
None yet
Development

No branches or pull requests

1 participant