Let untangle the different problem and make this bug report only about the stack trace. Bug #1983294 seems to be addressed and bug #1972115 will track the requested changed workflow.
** Description changed: - When totem crashes and I try to report the crash with ubuntu-bug, one of - two things happens: - - 1) Sometimes after the dialog pops up and I click the "Send" button, - ubuntu-bug immediately exits without doing anything: - - jik@jik5:~$ ubuntu-bug /var/crash/_usr_bin_totem.1000.crash - jik@jik5:~$ - - 2) Sometimes I get a stack trace before it exits: + When totem crashes and I try to report the crash with ubuntu-bug, + sometimes I get a stack trace: jik@jik5:~$ ubuntu-bug /var/crash/_usr_bin_totem.1000.crash ERROR: hook /usr/share/apport/package-hooks/source_totem.py crashed: Traceback (most recent call last): - File "/usr/lib/python3/dist-packages/apport/report.py", line 228, in _run_hook - symb['add_info'](report, ui) - File "/usr/share/apport/package-hooks/source_totem.py", line 9, in add_info - response = ui.choice("How would you describe the issue?", ["The totem interface is not working correctly", "No sound is being played", "Some audio files or videos are not being played correctly"], False) + File "/usr/lib/python3/dist-packages/apport/report.py", line 228, in _run_hook + symb['add_info'](report, ui) + File "/usr/share/apport/package-hooks/source_totem.py", line 9, in add_info + response = ui.choice("How would you describe the issue?", ["The totem interface is not working correctly", "No sound is being played", "Some audio files or videos are not being played correctly"], False) AttributeError: 'NoneType' object has no attribute 'choice' - jik@jik5:~$ - - Either way, my browser doesn't open to launchpad as it should after - ubuntu-bug posts a report. - - This makes it difficult, to say the least, to report a totem crash - properly. + jik@jik5:~$ ProblemType: Bug DistroRelease: Ubuntu 22.04 Package: totem-common 42.0-1ubuntu1 ProcVersionSignature: Ubuntu 5.15.0-43.46-generic 5.15.39 Uname: Linux 5.15.0-43-generic x86_64 ApportVersion: 2.20.11-0ubuntu82.1 Architecture: amd64 CasperMD5CheckResult: unknown CurrentDesktop: ubuntu:GNOME Date: Wed Aug 3 10:35:28 2022 InstallationDate: Installed on 2019-01-02 (1308 days ago) InstallationMedia: Ubuntu 18.10 "Cosmic Cuttlefish" - Release amd64 (20181017.3) LogAlsaMixer: - Simple mixer control 'Line',0 - Capabilities: cvolume cvolume-joined cswitch cswitch-joined - Capture channels: Mono - Limits: Capture 0 - 15 - Mono: Capture 15 [100%] [15.00dB] [on] + Simple mixer control 'Line',0 + Capabilities: cvolume cvolume-joined cswitch cswitch-joined + Capture channels: Mono + Limits: Capture 0 - 15 + Mono: Capture 15 [100%] [15.00dB] [on] PackageArchitecture: all SourcePackage: totem UpgradeStatus: Upgraded to jammy on 2022-02-20 (163 days ago) ** Summary changed: - Can't report totem crash with ubuntu-bug + _run_hook called with ui=None -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to apport in Ubuntu. https://bugs.launchpad.net/bugs/1983481 Title: _run_hook called with ui=None Status in apport package in Ubuntu: New Bug description: When totem crashes and I try to report the crash with ubuntu-bug, sometimes I get a stack trace: jik@jik5:~$ ubuntu-bug /var/crash/_usr_bin_totem.1000.crash ERROR: hook /usr/share/apport/package-hooks/source_totem.py crashed: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/apport/report.py", line 228, in _run_hook symb['add_info'](report, ui) File "/usr/share/apport/package-hooks/source_totem.py", line 9, in add_info response = ui.choice("How would you describe the issue?", ["The totem interface is not working correctly", "No sound is being played", "Some audio files or videos are not being played correctly"], False) AttributeError: 'NoneType' object has no attribute 'choice' jik@jik5:~$ ProblemType: Bug DistroRelease: Ubuntu 22.04 Package: totem-common 42.0-1ubuntu1 ProcVersionSignature: Ubuntu 5.15.0-43.46-generic 5.15.39 Uname: Linux 5.15.0-43-generic x86_64 ApportVersion: 2.20.11-0ubuntu82.1 Architecture: amd64 CasperMD5CheckResult: unknown CurrentDesktop: ubuntu:GNOME Date: Wed Aug 3 10:35:28 2022 InstallationDate: Installed on 2019-01-02 (1308 days ago) InstallationMedia: Ubuntu 18.10 "Cosmic Cuttlefish" - Release amd64 (20181017.3) LogAlsaMixer: Simple mixer control 'Line',0 Capabilities: cvolume cvolume-joined cswitch cswitch-joined Capture channels: Mono Limits: Capture 0 - 15 Mono: Capture 15 [100%] [15.00dB] [on] PackageArchitecture: all SourcePackage: totem UpgradeStatus: Upgraded to jammy on 2022-02-20 (163 days ago) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apport/+bug/1983481/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp