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

crash opening a map with UTF-8 character type #26643

Closed
qgib opened this issue Apr 18, 2018 · 1 comment
Closed

crash opening a map with UTF-8 character type #26643

qgib opened this issue Apr 18, 2018 · 1 comment
Labels
Attribute Table Bug Either a bug report, or a bug fix. Let's hope for the latter! Crash/Data Corruption

Comments

@qgib
Copy link
Contributor

qgib commented Apr 18, 2018

Author Name: Alden Nascimento (Alden Nascimento)
Original Redmine Issue: 18756
Affected QGIS version: 3.0.1
Redmine category:attribute_table


Using a layer I noticed that the characters in the attribute table display incorrectly, so I set the character type for UTF-8, which corrected the display problem.

After closing the application and opening the same project again resulted in the following error, which caused the crash in the application:

Um erro ocorreu enquanto executava o código Python:

AttributeError: 'QUrl' object has no attribute 'setEncodedUrl'
Traceback (most recent call last):
File "C:/Users/administrator/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qgiscloud\qgiscloudplugindialog.py", line 670, in update_local_layers
self.update_local_data_sources(local_layers, local_raster_layers)
File "C:/Users/administrator/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qgiscloud\qgiscloudplugindialog.py", line 734, in update_local_data_sources
table_name_item = QTableWidgetItem(self.launder_pg_name(table_name).decode('utf-8'))
File "C:/Users/administrator/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qgiscloud\qgiscloudplugindialog.py", line 823, in launder_pg_name
input_string = input_string.decode('utf-8')
AttributeError: 'str' object has no attribute 'decode'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:/Users/administrator/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qgiscloud\error_report_dialog.py", line 78, in __reportError
url.setEncodedUrl("mailto:support@qgiscloud.com?subject=%s&body=%s" % (
AttributeError: 'QUrl' object has no attribute 'setEncodedUrl'

Versão do Python: 3.6.0 (v3.6.0:41df79263a11, Dec 23 2016, 08:06:12) [MSC v.1900 64 bit (AMD64)]
Versão do QGIS: 3.0.1-Girona Girona, a86bec2

Caminho do Python:
C:/Program Files/QGIS 3.0/apps/qgis/./python
C:/Users/administrator/AppData/Roaming/QGIS/QGIS3\profiles\default/python
C:/Users/administrator/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins
C:/Program Files/QGIS 3.0/apps/qgis/./python/plugins
C:\Program Files\QGIS 3.0\bin\python36.zip
C:\Program Files\QGIS 3.0\apps\Python36\DLLs
C:\Program Files\QGIS 3.0\apps\Python36\lib
C:\Program Files\QGIS 3.0\bin
C:\Program Files\QGIS 3.0\apps\Python36
C:\Program Files\QGIS 3.0\apps\Python36\lib\site-packages
C:/Users/administrator/AppData/Roaming/QGIS/QGIS3\profiles\default/python
C:/Users/administrator/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\go2streetview
C:\Users\administrator\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\go2streetview\res
C:\Users\administrator\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins
C:\Users\administrator\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins
C:\Users\administrator\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins\shapetools\ext-libs

Good Luck!

Thanks

@qgib
Copy link
Contributor Author

qgib commented Apr 18, 2018

Author Name: Nyall Dawson (@nyalldawson)


This bug is in the qgis cloud plugin and needs to be filed with that plugin's author.


  • resolution was changed from to invalid
  • status_id was changed from Open to Rejected

@qgib qgib closed this as completed Apr 18, 2018
@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Attribute Table 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
Attribute Table Bug Either a bug report, or a bug fix. Let's hope for the latter! Crash/Data Corruption
Projects
None yet
Development

No branches or pull requests

1 participant