MemoryError in commit

Bug #423378 reported by Arngrimur
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
New
Undecided
Unassigned

Bug Description

bzr: ERROR: exceptions.MemoryError:

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 857, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 797, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 499, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.5/site-packages/bzrlib/builtins.py", line 2290, in run
    exclude=safe_relpath_files(tree, exclude))
  File "/usr/lib/python2.5/site-packages/bzrlib/decorators.py", line 192, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/workingtree_4.py", line 242, in commit
    result = WorkingTree3.commit(self, message, revprops, *args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/decorators.py", line 192, in write_locked
    result = unbound(self, *args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/mutabletree.py", line 197, in commit
    revprops=revprops, *args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/commit.py", line 384, in commit
    self.rev_id = self.builder.commit(self.message)
  File "/usr/lib/python2.5/site-packages/bzrlib/repository.py", line 141, in commit
    self.repository.commit_write_group()
  File "/usr/lib/python2.5/site-packages/bzrlib/repository.py", line 942, in commit_write_group
    self._commit_write_group()
  File "/usr/lib/python2.5/site-packages/bzrlib/repofmt/pack_repo.py", line 1801, in _commit_write_group
    return self._pack_collection._commit_write_group()
  File "/usr/lib/python2.5/site-packages/bzrlib/repofmt/pack_repo.py", line 1643, in _commit_write_group
    if not self.autopack():
  File "/usr/lib/python2.5/site-packages/bzrlib/repofmt/pack_repo.py", line 1209, in autopack
    self._execute_pack_operations(pack_operations)
  File "/usr/lib/python2.5/site-packages/bzrlib/repofmt/pack_repo.py", line 1223, in _execute_pack_operations
    _packer_class(self, packs, '.autopack').pack()
  File "/usr/lib/python2.5/site-packages/bzrlib/repofmt/pack_repo.py", line 585, in pack
    return self._create_pack_from_packs()
  File "/usr/lib/python2.5/site-packages/bzrlib/repofmt/pack_repo.py", line 718, in _create_pack_from_packs
    self._copy_text_texts()
  File "/usr/lib/python2.5/site-packages/bzrlib/repofmt/pack_repo.py", line 682, in _copy_text_texts
    self.new_pack.text_index, readv_group_iter, total_items))
  File "/usr/lib/python2.5/site-packages/bzrlib/repofmt/pack_repo.py", line 803, in _copy_nodes_graph
    write_index, output_lines, pb, readv_group_iter, total_items):
  File "/usr/lib/python2.5/site-packages/bzrlib/repofmt/pack_repo.py", line 841, in _do_copy_nodes_graph
    pos, size = writer.add_bytes_record(raw_data, names)
  File "/usr/lib/python2.5/site-packages/bzrlib/pack.py", line 155, in add_bytes_record
    self.write_func(serialised_record)
  File "/usr/lib/python2.5/site-packages/bzrlib/pack.py", line 132, in write_func
    self._write_func(bytes)
  File "/usr/lib/python2.5/site-packages/bzrlib/repofmt/pack_repo.py", line 294, in _write_data
    bytes = ''.join(_buffer[0])
MemoryError

bzr 1.6.1 on python 2.5.2 (linux2)
arguments: ['/usr/bin/bzr', 'commit', '-m', "Deleitng files in wrong way. Shou\xc3\xb6d be moved but I don't car :)"]
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_US.UTF-8'
plugins:
  bzrtools /usr/lib/python2.5/site-packages/bzrlib/plugins/bzrtools [1.6.0]
  launchpad /usr/lib/python2.5/site-packages/bzrlib/plugins/launchpad [unknown]

The error is likely to be from the text to -m flag. '\xc3\xb6d ' = 'ö'

Revision history for this message
Arngrimur (arngrimurbjarnason) wrote :

The bug is not from the swedish 'ö'. I can repeat the bug without it.

Martin Pool (mbp)
summary: - Using swedish letters å,ä,ö in message at commit causes memory exception
+ MemoryError in commit
Revision history for this message
John A Meinel (jameinel) wrote : Re: [Bug 423378] Re: MemoryError in commit

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Martin Pool wrote:
> *** This bug is a duplicate of bug 109114 ***
> https://bugs.launchpad.net/bugs/109114
>
> ** Summary changed:
>
> - Using swedish letters å,ä,ö in message at commit causes memory exception
> + MemoryError in commit
>

This actually isn't during commit, but during autopack, if I read the
traceback correctly.

John
=:->

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkqfLMwACgkQJdeBCYSNAANsogCfT/P/0KP8DS9UjWIBRF0KK7ch
pgYAnixn3xKm+AUHWFkZto/qhJ2UootE
=/HXN
-----END PGP SIGNATURE-----

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.