Opened 8 years ago

Last modified 5 years 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 by neteler, 8 years ago

Milestone: 7.0.3

Ticket retargeted after milestone closed

comment:2 by neteler, 8 years ago

Milestone: 7.0.4

Ticket retargeted after 7.0.3 milestone closed

comment:3 by martinl, 8 years ago

Milestone: 7.0.47.0.5

comment:4 by neteler, 8 years ago

Milestone: 7.0.57.0.6

comment:5 by neteler, 6 years ago

Milestone: 7.0.67.0.7

comment:6 by martinl, 5 years ago

Milestone: 7.0.77.6.2

Still relevant.

Note: See TracTickets for help on using tickets.