thg crash on session restore under KDE
After restarting my system, having left thg open when I shutdown, I got a crash report. As instructed, I'm submitting it here. I realize this is an old version. I did not try to launch the program; this was part of the session restore. When I launch thg from the menu it starts fine.
This is on Debian GNU/Linux 11 (bullseye, aka oldstable) under KDE Plasma 5.20.5, KDE Frameworks 5.78.0, and Qt 5.15.2. 64 bit Intel.
Maybe expected options are with -- and it's only getting -?
#!python
** Mercurial version (5.6.1). TortoiseHg version (5.6.1)
** Command: -session 10c7da726c000171489673100000049140017_1715018996_333696 -name thg
** CWD: /home/ross
** Encoding: UTF-8
** Extensions loaded:
** Python version: 3.9.2 (default, Feb 28 2021, 17:03:44) [GCC 10.2.1 20210110]
** System: Linux barley 5.10.0-28-amd64 #1 SMP Debian 5.10.209-2 (2024-01-31) x86_64
** Qt-5.15.2 PyQt-5.15.2 QScintilla-2.11.6
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/tortoisehg/hgqt/run.py", line 289, in _parse
args = fancyopts.fancyopts(args, globalopts, options)
File "/usr/lib/python3/dist-packages/mercurial/fancyopts.py", line 367, in fancyopts
opts, args = parse(args, shortlist, namelist)
File "/usr/lib/python3/dist-packages/mercurial/pycompat.py", line 493, in getoptb
return _getoptbwrapper(getopt.getopt, args, shortlist, namelist)
File "/usr/lib/python3/dist-packages/mercurial/pycompat.py", line 330, in _getoptbwrapper
opts, args = orig(args, shortlist, namelist)
File "/usr/lib/python3.9/getopt.py", line 95, in getopt
opts, args = do_shorts(opts, args[0][1:], shortopts, args[1:])
File "/usr/lib/python3.9/getopt.py", line 195, in do_shorts
if short_has_arg(opt, shortopts):
File "/usr/lib/python3.9/getopt.py", line 211, in short_has_arg
raise GetoptError(_('option -%s not recognized') % opt, opt)
getopt.GetoptError: option -s not recognized
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/tortoisehg/hgqt/run.py", line 342, in _runcatch
return runcommand(ui, args)
File "/usr/lib/python3/dist-packages/tortoisehg/hgqt/run.py", line 368, in runcommand
cmd, func, args, options, cmdoptions, alias = _parse(ui, args)
File "/usr/lib/python3/dist-packages/tortoisehg/hgqt/run.py", line 291, in _parse
raise error.CommandError(None, stringutil.forcebytestr(inst))
mercurial.error.CommandError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/tortoisehg/hgqt/run.py", line 138, in dispatch
return _runcatch(u, args)
File "/usr/lib/python3/dist-packages/tortoisehg/hgqt/run.py", line 349, in _runcatch
if inst.args[0]:
IndexError: tuple index out of range