[postgis-users] Mezogis is closing when using a database

"Daniela Stärke" daniela.staerke at gmx.de
Tue Jul 3 09:35:34 PDT 2007


Hi Alex,

wow I probably found a bug, I am amazed. 

OK I made a new database which some geometrical form in it and tried to  start it with mezzogis. But as expected I received the same messages as before.

In the appendix of this email you find the dump-data of my database. It is just a simple one.

Here are the neccessary information to start the database:

the user: testuser ,
password: das ,
database: neutest ,
port: 5340

thanks for your help

Daniela
 
> daniela,
> 
> it really seems to be a bug in mezogis, and you quite clearly described
> it.
> 
> somehow, the name of a column gets being used in an incorrect way.
> 
> i would take a look at the code later, and a subset of your data would
> be necessary.
> 
> cheers,
> 
> alex
> 
> Daniela Stärke wrote:
> > Hi alex,
> > 
> > there is a connection to the db available. I also had reinstalled
> Mezogis at the beginning of this week. On my linux I have this versions of gtk
> 1.2.10 as well as gtk2 2.10.6.
> > 
> > loading the db is without problems, but when I want to start it, whether
> with doubleclick, the SQL-commant "SELECT * FROM...." i get first this:
> > 
> > 
> > /usr/local/lib/python2.5/site-packages/mezoGISlib/_canvas.py:524:
> GtkWarning: Using Cairo rendering requires the drawable argument to
> > have a specified colormap. All windows have a colormap,
> > however, pixmaps only have colormap by default if they
> > were created with a non-NULL window argument. Otherwise
> > a colormap must be set on them with gdk_drawable_set_colormap
> >   self.ctx = self.pixmap.cairo_create()
> > 
> > 
> > 
> > and then the part, which was in my last post.
> > 
> > 
> > But I found out, that when I select not all columns of the db, the
> colums are printed.
> > Just when I want to use the column "color_map" I receive the message
> above.
> > 
> > 
> > I also checked the source code, but I don't know, what to do with it, or
> in it.
> > 
> > 
> > Do you have any idea???
> > 
> > bye
> > 
> > Daniela
> > 
> > 
> > 
> > 
>> >> hi daniela,
> >>
> >> this also shows an incompatibility of mezogis with your installed gtk.
> >>
> >> should you think it's helpful, i have reinstalled latest mezogis and
> i'd
> >> give a try to connect toyour db, if possible.
> >>
> >> alex
> >>
> >> Daniela Stärke wrote:
> >>> Thank you alex for your help.
> >>>
> >>> I commented the part of the cursor collection out, and now MezoGIS is
> >> not closing when opening the DB (:D:D:D), but now I receive the
> following
> >> messages  (:(:(:()    :
> >>> Traceback (most recent call last):
> >>>   File
> "/usr/local/lib/python2.5/site-packages/mezoGISlib/_pane_db.py",
> >> line 522, in __on_doubleclick
> >>>     ##self.pgbutler.runQuery('SELECT * FROM %s'%table.getSQL())
> >>>   File
> "/usr/local/lib/python2.5/site-packages/mezoGISlib/_guicore.py",
> >> line 397, in runQuery
> >>>     #self.showResults(cursor, query, layer, resultset, tablelist)
> >>>   File
> "/usr/local/lib/python2.5/site-packages/mezoGISlib/_guicore.py",
> >> line 431, in showResults
> >>>     #mapview = openMapView(layer.resultset)
> >>>   File
> >> "/usr/local/lib/python2.5/site-packages/mezoGISlib/_guiwindows.py",
> line 33, in openMapView
> >>>     #m = MapWindow(resultset)
> >>>   File
> >> "/usr/local/lib/python2.5/site-packages/mezoGISlib/_guiwindows.py",
> line 139, in __init__
> >>>     #self.canvas = MapCanvas()
> >>>   File "/usr/local/lib/python2.5/site-packages/mezoGISlib/_canvas.py",
> >> line 86, in __init__
> >>>     #self.__createNewCanvas()
> >>>   File "/usr/local/lib/python2.5/site-packages/mezoGISlib/_canvas.py",
> >> line 524, in __createNewCanvas
> >>>     #self.ctx = self.pixmap.cairo_create()
> >>> cairo.Error: NULL pointer
> >>>
> >>> I also tried the same strategy like before, but this will not really
> >> work, because I get then the same massage.
> >>> So has anyone any idea???
> >>>
> >>> Thanks in advance.
> >>>
> >>> Daniela
> >>>
> >>>> hi daniela,
> >>>>
> >>>> i have previously played with mezogis a little.
> >>>>
> >>>> it might be, that under the condition of your work mezogis tried to
> >> open
> >>>>  a non existing cursor.
> >>>>
> >>>> as a start point, i'd remove the calling code to the cursor
> collection
> >>>> and inquire further.
> >>>>
> >>>> hth,
> >>>>
> >>>> alex
> >>>>
> >>>> Daniela Stärke wrote:
> >>>>> Thanks for the information. I downloaded the newest version of wxGTK
> >>>> (2.8.4), but the problem is still there.
> >>>>> After trying to open a geo-database with MezoGIS the program is
> still
> >>>> closing and on the shell there is this,
> >>>>> /usr/local/lib/python2.5/site-packages/mezoGISlib/_guiwindows.py:80:
> >>>> GtkWarning: gdk_colormap_get_screen: assertion `GDK_IS_COLORMAP
> (cmap)'
> >> failed
> >>>>>   CursorCollection.xpm["hand-open"])
> >>>>>
> >>>>> two times printed.
> >>>>>
> >>>>> I had the idea, that I could look in the source code of
> _guiwindows.py
> >>>> to see if there might be something missing or so, but in line 80
> there
> >> is no
> >>>> 'gdk_colormap_get_screen' or 'GDK_IS_COLORMAP' written. Just the
> >>>> CursorCollection.
> >>>>> Is it possible, that the method 'gdk_colormap_get_screen'is not jet
> >>>> written???
> >>>>> Because when I use the search-function of the vim-editor I receive
> the
> >>>> message, that there is no 'gdk_colormap_get_screen' or
> >> 'GDK_IS_COLORMAP'
> >>>>> I really need some help.
> >>>>>
> >>>>> Thank you in advance for your attention in this matter.
> >>>>>
> >>>>>
> >>>>> Daniela

-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: danis_test_db.sql
Type: text/x-sql
Size: 1980882 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20070703/53f9f430/attachment.bin>


More information about the postgis-users mailing list