Corrupt history.dat pickle prevents explorer from starting

Bug #814151 reported by Brady D
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar Explorer
Fix Released
Medium
Martin Packman

Bug Description

So I double click the bazaar explorer icon today and nothing happens. I open task manager and click it again..i see the bazaar explorer process open and close immediately. I restart my computer. I uninstall python, bzr, and bazaar explorer. I reinstall using the standalone package for Windows. Currently I get this error:

C:\Users\xxxxxxxx>bzr explorer
bzr: ERROR: exceptions.KeyError: '\x00'

Traceback (most recent call last):
  File "bzrlib\commands.pyo", line 927, in exception_to_return_code
  File "bzrlib\commands.pyo", line 1127, in run_bzr
  File "bzrlib\commands.pyo", line 692, in run_argv_aliases
  File "bzrlib\commands.pyo", line 714, in run
  File "bzrlib\cleanup.pyo", line 135, in run_simple
  File "bzrlib\cleanup.pyo", line 165, in _do_with_cleanups
  File "C:/Program Files (x86)/Bazaar/plugins\explorer\lib\commands.py", line 162, in run
  File "C:/Program Files (x86)/Bazaar/plugins\explorer\lib\explorer.py", line 231, in __init__
  File "C:/Program Files (x86)/Bazaar/plugins\explorer\lib\explorer.py", line 549, in init_history
  File "C:/Program Files (x86)/Bazaar/plugins\explorer\lib\history_manager.py", line 36, in __init__

  File "C:/Program Files (x86)/Bazaar/plugins\explorer\lib\history_manager.py", line 47, in _load
  File "pickle.pyo", line 1370, in load
  File "pickle.pyo", line 858, in load
KeyError: '\x00'

bzr 2.3.4 on python 2.6.6 (Windows-7-6.1.7601-SP1)
arguments: ['bzr', 'explorer']
plugins: bzrtools[2.3.1], colo[0.2.1], explorer[1.1.4], fastimport[0.10.0],
    launchpad[2.3.4], loom[2.2.1dev], netrc_credential_store[2.3.4],
    news_merge[2.3.4], pipeline[1.1.0], qbzr[0.20.1], rewrite[0.6.2dev],
    svn[1.0.5dev], upload[1.0.0], xmloutput[0.8.7.dev]
encoding: 'cp1252', fsenc: 'mbcs', lang: None

*** Bazaar has encountered an internal error. This probably indicates a
    bug in Bazaar. You can help us fix it by filing a bug report at
        https://bugs.launchpad.net/bzr/+filebug
    including this traceback and a description of the problem.

Related branches

Revision history for this message
Martin Packman (gz) wrote :

It looks like history.dat got corrupted somehow. As it's only a recent locations cache, just removing it should make explorer work again. It's not clear from the failure what caused the problem in the first place, uploading the file (which should contain some paths and timestamps from your local disk) may be helpful.

Find history.dat at the BZR_CONFIG location (which running `bzr version` will tell you where to find) inside a directory called 'explorer', likely %APPDATA%\bazaar\2.0\explorer\history.dat on windows.

affects: bzr → bzr-explorer
Changed in bzr-explorer:
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Brady D (bdestefanis) wrote :

deleting %APPDATA%\bazaar\2.0\explorer\history.dat per suggestion of IRC user mgz seems to have resolved this issue. Thanks!

Revision history for this message
Brady D (bdestefanis) wrote :

please find attached original history.dat file...

Revision history for this message
Martin Packman (gz) wrote :

Just had millun on IRC with the same basic problem, but with EOFError raised, probably related to running out of disk space previously.

summary: - bazaar explorer no longer opens
+ Corrupt history.dat pickle prevents explorer from starting
Martin Packman (gz)
Changed in bzr-explorer:
assignee: nobody → Martin Packman (gz)
status: Confirmed → In Progress
Martin Packman (gz)
Changed in bzr-explorer:
status: In Progress → Fix Released
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.