Ticket #103 (new defect)

Opened 4 months ago

Last modified 8 weeks ago

strange 64 bit problem ?

Reported by: cbalint Owned by: artem
Priority: normal Milestone: 1.0.0
Component: Shapefile Input Driver Version: 0.5.0
Severity: Major Keywords:
Cc: Patch Needs Improvement: no
Needs Docmentation: no Has Patch?: yes
Design Decision Needed: no

Description

Running any tests which implicitly calls the shape.input driver, return errors and fails, it doesn't matter I call Shapefile() in python API or i use c++ API (tryed provided rundemo.cpp / rundemo.py samples), it happen on Fedora 9, x86_64 arch:

Test on python API:


# python rundemo.py wrong file code DEBUG 00002f00 /nTraceback (most recent call last):

File "rundemo.py", line 59, in <module>

provpoly_lyr.datasource = Shapefile(file='../data/boundaries', encoding='latin1')

File "/usr/lib64/python2.5/site-packages/mapnik/init.py", line 72, in Shapefile

return CreateDatasource?(keywords)

RuntimeError?: wrong file code


Test on C++ API: # ./rundemo ../data/

running demo ...

wrong file code DEBUG 00002f00 /n### std::exception: wrong file code


I've used for debug the attached patch. Obviously something else than value 9994 is returned.

I've used these packages: http://openrisc.rdsor.ro/mapnik.spec http://openrisc.rdsor.ro/mapnik-0.5.1-3.fc9.src.rpm

USed following, with some fedora specific compile flags, but olso tryed without fedora compile flags (simply commented out $RPM_OPT_FLAGS).

//cristian.

Attachments

mapnik-0.5.1-debug.patch (349 bytes) - added by cbalint 4 months ago.
debug used for test the output result

Change History

Changed 4 months ago by cbalint

debug used for test the output result

Changed 8 weeks ago by springmeyer

  • priority set to normal

Changed 8 weeks ago by springmeyer

  • has_patch unset
  • milestone changed from 0.5.0 to 1.0.0
  • patch_need_improvement unset
  • need_documentation unset
  • design_decision_needed unset

Changed 8 weeks ago by springmeyer

  • has_patch set
Note: See TracTickets for help on using tickets.