Opened 4 years ago

Last modified 7 months ago

#2805 new defect

wxGUI: attribute table opening bug when driver is undefined

Reported by: neteler Owned by: grass-dev@…
Priority: normal Milestone: 7.6.2
Component: wxGUI Version: svn-trunk
Keywords: attribute, db.connect Cc:
CPU: Unspecified Platform: Linux

Description

Today one of our users got this crash:

Traceback (most recent call last):
  File "/home/ANDREA/src/grass71/dist.x86_64-unknown-linux-
gnu/gui/wxpython/lmgr/frame.py", line 1767, in
OnShowAttributeTable

selection = selection)
  File "/home/ANDREA/src/grass71/dist.x86_64-unknown-linux-
gnu/gui/wxpython/dbmgr/manager.py", line 109, in __init__

self.CreateDbMgrPage(parent = self, pageName =
'manageLayer')
  File "/home/ANDREA/src/grass71/dist.x86_64-unknown-linux-
gnu/gui/wxpython/dbmgr/base.py", line 730, in
CreateDbMgrPage

self.pages[pageName] = DbMgrLayersPage(parent = parent,
parentDbMgrBase = self)
  File "/home/ANDREA/src/grass71/dist.x86_64-unknown-linux-
gnu/gui/wxpython/dbmgr/base.py", line 2494, in __init__

parentDialog = self)
  File "/home/ANDREA/src/grass71/dist.x86_64-unknown-linux-
gnu/gui/wxpython/dbmgr/base.py", line 2722, in __init__

self.defaultTables =
self._getTables(self.defaultConnect['driver'],
KeyError
:
'driver'

I discovered that for unknown reasons no DB connection was defined:

db.connect -p
ERROR: Database connection not defined. Run db.connect.

Hopefully easy to catch with a try-except condition?

Change History (6)

comment:1 Changed 4 years ago by neteler

Milestone: 7.0.3

Ticket retargeted after milestone closed

comment:2 Changed 4 years ago by neteler

Milestone: 7.0.4

Ticket retargeted after 7.0.3 milestone closed

comment:3 Changed 4 years ago by martinl

Milestone: 7.0.47.0.5

comment:4 Changed 3 years ago by neteler

Milestone: 7.0.57.0.6

comment:5 Changed 21 months ago by neteler

Milestone: 7.0.67.0.7

comment:6 Changed 7 months ago by martinl

Milestone: 7.0.77.6.2

Still relevant.

Note: See TracTickets for help on using tickets.