'bzr explore' unexpectedly throwing MS Visual C++ runtime error at startup

Bug #516968 reported by David Roberts
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar Explorer
Fix Released
Critical
Ian Clatworthy

Bug Description

[This may NOT be an Explorer issue at base, but here seems a good place to log it.]

WinXP, with bzr-2.1.0rc1-1-setup.exe installer has been running
happily for several days. This morning, on trying to run bzr-explorer,
I get a Microsoft Visual C++ runtime error. The console reports
"QVariant::load(QDataStream &s): type list unknown to QVariant."
Nothing is written in .bzr.log

I've tried uninstalling Bzr via Add/Remove programs, and then
re-installed from the bzr-2.1.0rc1-1-setup.exe installer that was
saved on my system from the previous install. No improvement.

Other tools from the qbzr suite seem to run correctly, so it isn't
that the Qt support is completely dead.

Calm logic leads to the unpleasant conclusion that if I've removed and
re-installed bzr and friends then the problem must be elsewhere in my
system. But where and how/why has it got broken?

Recent history is that with the previous running installed version I
did bzr branch lp:bzr-explorer, then made that branch the live plugin.
'bzr explore' then ran ONCE and I confirmed that I had r405 of explorer.
Re-running gives the error reported above. Even after a clean start
from the binary setup.exe installer.

Any ideas, please?

Revision history for this message
Alexander Belchenko (bialix) wrote :

Can you provide us your explorer.conf?

Changed in bzr-explorer:
status: New → Incomplete
importance: Undecided → Critical
milestone: none → 1.0.0beta
Revision history for this message
Alexander Belchenko (bialix) wrote :

we have to test that upgrading explorer from 0.11 to 1.0 won't break the things

Revision history for this message
David Roberts (smartgpx) wrote :

It seems this may have been triggered by changing preferences in Tools/Options.

Simon Kersey observed on the Bazaar ML that deleteing explorer.conf allows Explorer to start up again.

Revision history for this message
Ian Clatworthy (ian-clatworthy) wrote : Re: [Bug 516968] [NEW] 'bzr explore' unexpectedly throwing MS Visual C++ runtime error at startup

David Roberts wrote:
> Public bug reported:
>
> [This may NOT be an Explorer issue at base, but here seems a good place
> to log it.]
>
> WinXP, with bzr-2.1.0rc1-1-setup.exe installer has been running
> happily for several days. This morning, on trying to run bzr-explorer,
> I get a Microsoft Visual C++ runtime error. The console reports
> "QVariant::load(QDataStream &s): type list unknown to QVariant."
> Nothing is written in .bzr.log

I'd like like to know whether I can trap this at the Python level. Could
you try with -Derror and see if a stacktrace comes out?

Ian C.

Revision history for this message
David Roberts (smartgpx) wrote :

Tried with bzr-explorer r406

steps to reproduce

Tools/Options/Appearance/contents: change 'kind-specific' to 'classic'

 [note: during this run, console reports "QVariant::load: unable to load type 430." several times

on restart, fails as reported.

> bzr -Derror explore ( or > bzr explore -Derror ) does not produce any additional logging.

this is .bzr.log -

Thu 2010-02-04 11:14:44 +0000
0.062 bazaar version: 2.1.0rc1
0.062 bzr arguments: [u'explore', u'-Derror']
0.078 looking for plugins in C:/Documents and Settings/djr/Application Data/bazaar/2.0/plugins
0.078 looking for plugins in C:/localapp/Program Files/Bazaar/plugins
0.157 encoding stdout as sys.stdout encoding 'cp850'

Thu 2010-02-04 11:17:39 +0000
0.079 bazaar version: 2.1.0rc1
0.079 bzr arguments: [u'-Derror', u'explorer']
0.094 looking for plugins in C:/Documents and Settings/djr/Application Data/bazaar/2.0/plugins
0.094 looking for plugins in C:/localapp/Program Files/Bazaar/plugins
0.172 encoding stdout as sys.stdout encoding 'cp850'

Revision history for this message
David Roberts (smartgpx) wrote :

This is the content of explorer\explorer.conf saved by the previous 'steps to reproduce'
With this file in place bzr-explorer will not start.

[Preferences]
advanced-commands-terminal=false
app-suite=qbzr
bags-to-blacklist=@Variant(\0\0\0\x7f\0\0\0\x5list\0)
bind-branches-by-default=false
clothes-to-wear=@Variant(\0\0\0\x7f\0\0\0\x5list\0)
custom-dialog-branch=true
custom-dialog-checkout=true
custom-dialog-init=true
custom-dialog-switch=true
location-selector-style=tabs
status-auto-refresh=true
toolbar-contents=classic
toolbar-style=text-under-icon
toolbox-on-repository-view=false
toolbox-on-status-view=true
toolbox-on-welcome-view=false
workingtree-default-to-edit=false
workingtree-style=qbrowse
workspace-model=feature-branches

[ .conf file ENDS DJR ]

Revision history for this message
David Roberts (smartgpx) wrote :

If EITHER of the lines containing @Variant...list is present in the .conf file, the startup bug is triggered.

If BOTH of the lines containing @Variant...list are removed, explorer starts normally.

Revision history for this message
Alexander Belchenko (bialix) wrote : Re: [Bug 516968] Re: 'bzr explore' unexpectedly throwing MS Visual C++ runtime error at startup

David Roberts пишет:
> This is the content of explorer\explorer.conf saved by the previous 'steps to reproduce'
> With this file in place bzr-explorer will not start.
>
> [Preferences]
> advanced-commands-terminal=false
> app-suite=qbzr
> bags-to-blacklist=@Variant(\0\0\0\x7f\0\0\0\x5list\0)
> bind-branches-by-default=false
> clothes-to-wear=@Variant(\0\0\0\x7f\0\0\0\x5list\0)

Ian, I think we should use our own serializer here and don't rely on QT
one. Bencode seems good enough for this preferences, and it supports
many type of data. Why not use it?

Revision history for this message
Ian Clatworthy (ian-clatworthy) wrote :

Fixed in rev 407

Changed in bzr-explorer:
assignee: nobody → Ian Clatworthy (ian-clatworthy)
status: Incomplete → Fix Released
Revision history for this message
David Roberts (smartgpx) wrote :

CONFIRM that this appears to fix the bug I reported.

But is this correct?

"clothes-to-wear=Bazaar support|Register on Launchpad"

Revision history for this message
David Roberts (smartgpx) wrote :

Sorry - ignore prev. comment - I can see now where this is configured and the default selections are reflected here OK.

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.