[osgeo4w-dev] [osgeo4w] #158: textreplace memory error

OSGeo4W trac_osgeo4w at osgeo.org
Tue Mar 9 18:05:25 EST 2010


#158: textreplace memory error
-------------------+--------------------------------------------------------
Reporter:  maphew  |       Owner:  osgeo4w-dev at lists.osgeo.org
    Type:  defect  |      Status:  new                        
Priority:  major   |   Component:  Installer                  
 Version:          |    Keywords:  apt                        
-------------------+--------------------------------------------------------
 Installing [wiki:pkg-sip sip] with [wiki:pkg-apt apt] the computer appears
 to hang during postinstall at the textreplace stage. Cpu usage is low,
 around 12%, and python.exe memory use climbs slowly but inevitably until
 it errors out tens of minutes later.
 {{{
 C:\>apt install sip
 D:\o4w\cache/http%3a%2f%2fdownload.osgeo.org%2fosgeo4w/./release/python/sip/sip-
 4.8.2-2.tar.bz2

 76266867c6089ccea2e58edbba6db3b7  sip-4.8.2-2.tar.bz2 - remote
 76266867c6089ccea2e58edbba6db3b7  sip-4.8.2-2.tar.bz2 - local
 installing sip 4.8.2-2

 C:\OSGeo4W>set OSGEO4W_ROOT=C:\\OSGeo4W

 C:\OSGeo4W>textreplace -std -t apps\Python25\Lib\site-
 packages\sipconfig.py
 Traceback (most recent call last):
   File "d:\code\o4w\apt\apt.py", line 1064, in <module>
     __main__.__dict__[command] ()
   File "d:\code\o4w\apt\apt.py", line 166, in install
     do_install ()
   File "d:\code\o4w\apt\apt.py", line 427, in do_install
     post_install ()
   File "d:\code\o4w\apt\apt.py", line 841, in post_install
     lst.append(out)
 MemoryError
 }}}

 I've encountered this once or twice before but didn't pause to document
 it. I don't recall if it's always with the same package, or even always
 textreplace (a vague recollection of dll-dupes). Running textreplace
 manually on sipconfig.py.tmpl from o4w shell returns in seconds.

 Host system is win7x64. Same results with apt from svn and package.

-- 
Ticket URL: <http://trac.osgeo.org/osgeo4w/ticket/158>
OSGeo4W <http://trac.osgeo.org/osgeo4w>
OSGeo4W is the Windows installer for the OSGeo stack.


More information about the osgeo4w-dev mailing list