|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
need some help with mapnik viewer crash (c++/win32)Hello, I've been trying to get the viewer working to no avail...
First of all, the python code works fine (both the non-XML and XML tutorial code). Using the latest 0.6.1 Win32 binaries, Visual Studio .Net 2003. 1. When I run C++ code on the same XML file as the python script, the viewer crashes. In Debug mode it reports that there is "Damage after normal block" (heap corruption) I've traced the crash to the following line: boost::shared_ptr<mapnik::Map> map(new mapnik::Map(width,height)); In particular, it's the "new mapnik::Map(width, height));" statement that causes the crash. Stepping through in debug mode didn't get me anywhere. If I instead say mapnik::Map map(width, height); then there is no error. Attaching Windows Debugger to the viewer process results in the following: mapnik!mapnik::Map::Map+0x96: Missing image name, possible paged-out or corrupt data. 2. I know that the viewer doesn't even try to load the XML/shape files yet, but in debug mode I see this: 'viewer.exe': Loaded 'C:\mapnik_0_6_1\lib\mapnik\input\shape.input', No symbols loaded. 'viewer.exe': Unloaded 'C:\mapnik_0_6_1\lib\mapnik\input\shape.input' It's unloading the shape.input file... will this be a problem? As a side note, rundemo.cpp also crashes, but on the following line: m.insert_style("provinces",provpoly_style); I am starting to wonder whether I've set up third party libs correctly... or maybe it's an issue with linking to the mapnik lib. I tried compiling mapnik from source, but abandoned the idea after running into many missing dependencies and "inconsistent DLL-linkage" problems. Please let me know if anyone has any ideas as to why this might be happening in my build. _______________________________________________ Mapnik-users mailing list Mapnik-users@... https://lists.berlios.de/mailman/listinfo/mapnik-users |
|
|
Re: need some help with mapnik viewer crash (c++/win32)Andrey,
These errors are with the Mapnik 0.6.1 windows binaries along with your source compiled Viewer code and source compiled depedencies? What problems did you run into trying to compile Mapnik from scratch and how did you go about it? I've not built the Viewer on windows previously, but others may have. You should consider filing a ticket with more details on the Mapnik Trac site. Dane On Sep 17, 2009, at 9:42 AM, Andrey Ostapchenko wrote: > Hello, I've been trying to get the viewer working to no avail... > > First of all, the python code works fine (both the non-XML and XML > tutorial code). Using the latest 0.6.1 Win32 binaries, Visual > Studio .Net 2003. > > 1. When I run C++ code on the same XML file as the python script, > the viewer crashes. In Debug mode it reports that there is "Damage > after normal block" (heap corruption) > > I've traced the crash to the following line: > boost::shared_ptr<mapnik::Map> map(new mapnik::Map(width,height)); > > In particular, it's the "new mapnik::Map(width, height));" statement > that causes the crash. Stepping through in debug mode didn't get me > anywhere. > > If I instead say mapnik::Map map(width, height); then there is no > error. > > Attaching Windows Debugger to the viewer process results in the > following: > mapnik!mapnik::Map::Map+0x96: > Missing image name, possible paged-out or corrupt data. > > > 2. I know that the viewer doesn't even try to load the XML/shape > files yet, but in debug mode I see this: > 'viewer.exe': Loaded 'C:\mapnik_0_6_1\lib\mapnik\input\shape.input', > No symbols loaded. > 'viewer.exe': Unloaded 'C:\mapnik_0_6_1\lib\mapnik\input\shape.input' > It's unloading the shape.input file... will this be a problem? > > As a side note, rundemo.cpp also crashes, but on the following line: > m.insert_style("provinces",provpoly_style); > > > I am starting to wonder whether I've set up third party libs > correctly... or maybe it's an issue with linking to the mapnik lib. > I tried compiling mapnik from source, but abandoned the idea after > running into many missing dependencies and "inconsistent DLL- > linkage" problems. Please let me know if anyone has any ideas as to > why this might be happening in my build. > > > > _______________________________________________ > Mapnik-users mailing list > Mapnik-users@... > https://lists.berlios.de/mailman/listinfo/mapnik-users _______________________________________________ Mapnik-users mailing list Mapnik-users@... https://lists.berlios.de/mailman/listinfo/mapnik-users |
| Free embeddable forum powered by Nabble | Forum Help |