Opened 9 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


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/", line 1767, in

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

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

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

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

self.defaultTables =

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


comment:4 by neteler, 8 years ago


comment:5 by neteler, 6 years ago


comment:6 by martinl, 5 years ago


Still relevant.

Note: See TracTickets for help on using tickets.