Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crashing on qt interface #696

Open
y0shir opened this issue Jul 3, 2023 · 4 comments
Open

Crashing on qt interface #696

y0shir opened this issue Jul 3, 2023 · 4 comments
Assignees

Comments

@y0shir
Copy link

y0shir commented Jul 3, 2023

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
Copy link
Contributor

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
Copy link
Author

y0shir commented Jul 4, 2023

It worked

@y0shir y0shir closed this as completed Jul 4, 2023
@y0shir y0shir reopened this Jul 4, 2023
@alsoGAMER
Copy link
Contributor

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
Copy link
Contributor

#696 (comment) This is a different libmal related issue. You should make a new thread.

@z411 z411 self-assigned this Aug 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants