Internal error during commit. MemoryError

Bug #359201 reported by Karsten Sorensen
6
Affects Status Importance Assigned to Milestone
Bazaar
New
Undecided
Unassigned

Bug Description

Tried commit with a number of Perl scripts, with regular expressions. Got same error.
Then I removed the Perl scripts from the list of files to be added. The dump below is the result.
I have seen problems with qdiff if there is a Perl script. Hence, the removal of the scripts.

********************************** Error Dump ****************************************************
WIL-WKS-306> bzr commit -m "Added mag_calc."
Committing to: C:/Documents and Settings/ksorensen.SYSTEMS/My Documents/Work/aobd_optra/
aborting commit write group: MemoryError()
bzr: ERROR: exceptions.MemoryError:

Traceback (most recent call last):
  File "bzrlib\commands.pyo", line 716, in exception_to_return_code
  File "bzrlib\commands.pyo", line 911, in run_bzr
  File "bzrlib\commands.pyo", line 547, in run_argv_aliases
  File "bzrlib\builtins.pyo", line 2789, in run
  File "bzrlib\decorators.pyo", line 192, in write_locked
  File "bzrlib\workingtree_4.pyo", line 226, in commit
  File "bzrlib\decorators.pyo", line 192, in write_locked
  File "bzrlib\mutabletree.pyo", line 228, in commit
  File "bzrlib\commit.pyo", line 367, in commit
  File "bzrlib\commit.pyo", line 667, in _update_builder_with_changes
  File "bzrlib\commit.pyo", line 814, in _populate_from_inventory
  File "bzrlib\commit.pyo", line 858, in _record_entry
  File "bzrlib\repository.pyo", line 450, in record_entry_contents
  File "bzrlib\repository.pyo", line 512, in _add_text_to_weave
  File "bzrlib\knit.pyo", line 900, in add_lines
  File "bzrlib\knit.pyo", line 910, in _add
MemoryError

bzr 1.13 on python 2.5.2 (win32)
arguments: ['c:\\Program Files\\Bazaar\\bzr.exe', 'commit', '-m', 'Added mag_calc.']
encoding: 'cp1252', fsenc: 'mbcs', lang: None
plugins:
  bzrtools C:\Program Files\Bazaar\plugins\bzrtools [1.13]
  difftools C:\Program Files\Bazaar\plugins\difftools [unknown]
  gtk C:\Documents and Settings\ksorensen.SYSTEMS\Application Data\bazaar\2.0\plugins\gtk [0.95.0.final.1]
  launchpad C:\Program Files\Bazaar\plugins\launchpad [unknown]
  netrc_credential_store C:\Program Files\Bazaar\plugins\netrc_credential_store [unknown]
  qbzr C:\Documents and Settings\ksorensen.SYSTEMS\Application Data\bazaar\2.0\plugins\qbzr [0.9.9]
  svn C:\Program Files\Bazaar\plugins\svn [0.5.3]
*** Bazaar has encountered an internal error.
    Please report a bug at https://bugs.launchpad.net/bzr/+filebug
    including this traceback, and a description of what you
    were doing when the error occurred.
WIL-WKS-306>

Revision history for this message
Karsten Sorensen (ksorensen) wrote :

This was running on Windows 2000 5.00.2195 Service Pack 4.
Dell PWS650 (Xeon) with 2G of RAM.

Revision history for this message
Karsten Sorensen (ksorensen) wrote :

Found problem.

A very large text file was being committed.
Unfortunately, I am not able to determine the size of the file. When that file was removed, it should not have been committed, the commit and the diff works properly.

It may just be that bzr does not fail gracefully with a very large file.

Thanks.

Revision history for this message
Stas Fomin (stas-fomin) wrote :

Analogous bug with big text file:
---------------------------------------------------------------------------------------
D:\temp\bzr-bug>bzr init
Created a standalone tree (format: pack-0.92)

D:\temp\bzr-bug>bzr add
adding fars.sql

D:\temp\bzr-bug>bzr commit -m "Initial commit"
Committing to: D:/temp/bzr-bug/
aborting commit write group: MemoryError()
bzr: ERROR: exceptions.MemoryError:

Traceback (most recent call last):
  File "bzrlib\commands.pyo", line 716, in exception_to_return_code
  File "bzrlib\commands.pyo", line 911, in run_bzr
  File "bzrlib\commands.pyo", line 547, in run_argv_aliases
  File "bzrlib\builtins.pyo", line 2789, in run
  File "bzrlib\decorators.pyo", line 192, in write_locked
  File "bzrlib\workingtree_4.pyo", line 226, in commit
  File "bzrlib\decorators.pyo", line 192, in write_locked
  File "bzrlib\mutabletree.pyo", line 228, in commit
  File "bzrlib\commit.pyo", line 367, in commit
  File "bzrlib\commit.pyo", line 667, in _update_builder_with_changes
  File "bzrlib\commit.pyo", line 814, in _populate_from_inventory
  File "bzrlib\commit.pyo", line 858, in _record_entry
  File "bzrlib\repository.pyo", line 450, in record_entry_contents
  File "bzrlib\repository.pyo", line 512, in _add_text_to_weave
  File "bzrlib\knit.pyo", line 900, in add_lines
  File "bzrlib\knit.pyo", line 973, in _add
  File "bzrlib\knit.pyo", line 1908, in _record_to_data
MemoryError

bzr 1.13 on python 2.5.2 (win32)
arguments: ['C:\\app\\bzr\\bzr.EXE', 'commit', '-m', 'Initial commit']
encoding: 'cp1251', fsenc: 'mbcs', lang: 'en-us'
plugins:
  bzrtools C:\app\bzr\plugins\bzrtools [1.13]
  launchpad C:\app\bzr\plugins\launchpad [unknown]
  netrc_credential_store C:\app\bzr\plugins\netrc_credential_store [unknown]
  qbzr C:\app\bzr\plugins\qbzr [0.9.8]
  svn C:\app\bzr\plugins\svn [0.5.3]
*** Bazaar has encountered an internal error.
    Please report a bug at https://bugs.launchpad.net/bzr/+filebug
    including this traceback, and a description of what you
    were doing when the error occurred.

D:\temp\bzr-bug>bzr version
Bazaar (bzr) 1.13
  Python interpreter: C:\app\bzr\python25.dll 2.5.2
  Python standard library: C:\app\bzr\lib\library.zip
  bzrlib: C:\app\bzr\lib\library.zip\bzrlib
  Bazaar configuration: C:\Documents and Settings\stas\Application Data\bazaar\2.0
  Bazaar log file: D:\USERS\TESTER\.bzr.log

Copyright 2005, 2006, 2007, 2008, 2009 Canonical Ltd.
http://bazaar-vcs.org/
---------------------------------------------------------------------------------------

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.