Bug 75 - [MapLab3]MapEdit hang when loading a map
: [MapLab3]MapEdit hang when loading a map
Status: ASSIGNED
: MapLab
Preview
: 3.0
: PC Linux
: P2 normal
: ---
Assigned To:
:
:
:
:
:
  Show dependency treegraph
 
Reported: 2003-10-22 10:19 by
Modified: 2003-10-22 12:50 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2003-10-22 10:19:43
MapEdit hang when loading a map (tutorial)


Steps to reproduce:

1. Select File menu
2. Open map
3. Browse and select tutorial.map
--->MapEdit try to load the map without success.

see http://www2.dmsolutions.ca/netbin/nsavard/bugmapopen_image1.png

You can see in the error log file below that there is a MapServer error when
loading the symbol file.  Also note that MapEdit does not find the preview.map
file. I checked in the given directory and the file is there.

If I do a reload in the browser, a pop up window comes out with a message saying
that the ".qix" files can not be opened.  But the map is successfully opened
with an empty object browser (see the following image).

see http://www2.dmsolutions.ca/netbin/nsavard/bugmapopen_image2.png

If I do a reload again, the map is opened correctly with the object browser
filled in (see the following image).

see http://www2.dmsolutions.ca/netbin/nsavard/bugmapopen_image3.png

I worked on Redhat 7.2 and Netscape 7.02.  I tried this on Redhat 8 and Mozilla 1.





The php error log file contains:
[22-Oct-2003 09:47:33] PHP Warning:  MapServer Error in msLoadSymbolFile():
(./etc/symbols.sym)
 in /usr2/home/nsavard/proj/maplab3/htdocs/common/wrapper/map_session.php on
line 215[22-Oct-2003 09:47:33] PHP Warning:  Failed to open map file
/tmp/sess_3f968a54657ac/preview.map in
/usr2/home/nsavard/proj/maplab3/htdocs/common/wrapper/map_session.php
on line 215
[22-Oct-2003 09:47:42] PHP Warning:  MapServer Error in msLoadSymbolFile():
(./etc/symbols.sym)
 in
/usr2/home/nsavard/proj/chameleon-1.1_20031016/htdocs/common/wrapper/map_session.php
on line 215
[22-Oct-2003 09:47:42] PHP Warning:  Failed to open map file
/home/nsavard/proj/maplab3///tutorial//tutorial.map in
/usr2/home/nsavard/proj/chameleon-1.1_20031016/htdocs/common/wrapper/map_session.php
on line 215
[22-Oct-2003 09:47:42] PHP Fatal error:  Call to a member function on a
non-object in
/usr2/home/nsavard/proj/chameleon-1.1_20031016/htdocs/common/wrapper/drawmap.php on
line 370
[22-Oct-2003 09:47:43] PHP Warning:  MapServer Error in msLoadSymbolFile():
(./etc/symbols.sym)
 in
/usr2/home/nsavard/proj/chameleon-1.1_20031016/htdocs/common/wrapper/map_session.php
on line 215
[22-Oct-2003 09:47:43] PHP Warning:  Failed to open map file
/home/nsavard/proj/maplab3///tutorial//tutorial.map in
/usr2/home/nsavard/proj/chameleon-1.1_20031016/htdocs/common/wrapper/map_session.php
on line 215
[22-Oct-2003 09:47:43] PHP Fatal error:  Call to a member function on a
non-object in
/usr2/home/nsavard/proj/chameleon-1.1_20031016/htdocs/common/wrapper/drawmap.php on
line 370       

------------------------------------
Pop up window message:

 Warning(s)

    * Unable to open spatial index for
/usr2/home/nsavard/proj/maplab3/tutorial/./data/land_fn.qix. In most cases you
can safely ignore this message, otherwise check file names and permissions.
    * Unable to open spatial index for
/usr2/home/nsavard/proj/maplab3/tutorial/./data/drain_fn.qix. In most cases you
can safely ignore this message, otherwise check file names and permissions.
    * Unable to open spatial index for
/usr2/home/nsavard/proj/maplab3/tutorial/./data/province.qix. In most cases you
can safely ignore this message, otherwise check file names and permissions.
    * Unable to open spatial index for
/usr2/home/nsavard/proj/maplab3/tutorial/./data/fedlimit.qix. In most cases you
can safely ignore this message, otherwise check file names and permissions.
    * Unable to access map
[/home/nsavard/proj/maplab3///tutorial//tutorial.map]. Check to see that the
file exists and/or that the path and filename are spelled correctly
------- Comment #1 From 2003-10-22 10:50:32 -------
Additional information:  I used chameleon extracted from the cvs source
repositery under exp_1_1 branch.  I checked out October 16 october 2003.  I
extracted MapLab3 from the cvs October 14th 2003.
------- Comment #2 From 2003-10-22 11:54:14 -------
Try changing the map file to have an absolute path. Many recent unix
installations of mapserver 
(including my local one) seem to need an absolute path. You will likely get
similar errors related to 
the font file if you don't make that an absolute path too.
------- Comment #3 From 2003-10-22 12:50:32 -------
It fixed the problem but we have to document this.