z411 / trackma

Open multi-site list manager for Unix-like systems. (ex-wMAL)
https://z411.github.io/trackma
GNU General Public License v3.0
761 stars 82 forks source link

Crashing on qt interface #696

Open y0shir opened 1 year ago

y0shir commented 1 year ago

Trackma now crashes when i try to start it

Trackma-qt v0.8.5
Engine: Trackma v0.8.5 - using account REDACTED(mal).
Engine: Reading config files...
Data: Initializing...
libmal: Initializing...
Data: Using libmal (anime)
Data: Processing queue...
libmal: Adding item Scrapped Princess...
Traceback (most recent call last):
  File "/home/REDACTED/.local/lib/python3.11/site-packages/trackma/ui/qt/mainwindow.py", line 1319, in ws_changed_show
    self.view.model().sourceModel().update(show['id'], is_playing)
  File "/home/REDACTED/.local/lib/python3.11/site-packages/trackma/ui/qt/models.py", line 130, in update
    row = self.id_map[showid]
          ^^^^^^^^^^^
AttributeError: 'ShowListModel' object has no attribute 'id_map'

I'm using debian testing

molkoback commented 1 year ago

Seems like there's a pending change (libmal: Adding item Scrapped Princess...) and it crashes the Qt version by calling ShowListModel.update() before the show list has been set. Try running trackma (cli version) so the changes will be applied and then see if the Qt version works.

y0shir commented 1 year ago

It worked

alsoGAMER commented 11 months ago

Same issue here

Trackma v0.8.5  Copyright (C) 2012-2020  z411
This program comes with ABSOLUTELY NO WARRANTY; for details type `about'
This is free software, and you are welcome to redistribute it
under certain conditions; see the COPYING file for details.

--- Accounts ---
Available accounts:
1: alsoGAMER (anilist)
2: alsoGAMER (kitsu)
3: alsoGAMER (mal)
Input account number ([r#]emember, [a]dd, [c]ancel, [d]elete, [q]uit): 3
Initializing engine...
Engine: Trackma v0.8.5 - using account alsoGAMER(mal).
Engine: Reading config files...
Data: Initializing...
libmal: Initializing...
Data: Using libmal (anime)
libmal: Downloading list (page 1)...
Traceback (most recent call last):
File "/usr/local/bin/trackma", line 8, in <module>
sys.exit(main())
File "/usr/local/lib/python3.10/dist-packages/trackma/ui/cli.py", line 1065, in main
main_cmd.start()
File "/usr/local/lib/python3.10/dist-packages/trackma/ui/cli.py", line 179, in start
self.engine.start()
File "/usr/local/lib/python3.10/dist-packages/trackma/engine.py", line 249, in start
(self.api_info, self.mediainfo) = self.data_handler.start()
File "/usr/local/lib/python3.10/dist-packages/trackma/data.py", line 178, in start
self.download_data()
File "/usr/local/lib/python3.10/dist-packages/trackma/data.py", line 548, in download_data
self.showlist = self.api.fetch_list()
File "/usr/local/lib/python3.10/dist-packages/trackma/lib/libmal.py", line 286, in fetch_list
'my_status': item['list_status']['status'],
KeyError: 'status'
molkoback commented 11 months ago

https://github.com/z411/trackma/issues/696#issuecomment-1640739565 This is a different libmal related issue. You should make a new thread.