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

Windows 11 notification crash #259

Closed
iamkroot opened this issue Oct 13, 2023 · 15 comments
Closed

Windows 11 notification crash #259

iamkroot opened this issue Oct 13, 2023 · 15 comments
Labels
bug Something isn't working upstream Bug in a dependency

Comments

@iamkroot
Copy link
Owner

          https://bit.ly/3QbHbdD

with the new push

Originally posted by @panaris in #257 (comment)

@iamkroot
Copy link
Owner Author

@panaris Let's continue here

@iamkroot iamkroot added bug Something isn't working needs-more-info Awaiting more info from the user's end labels Oct 13, 2023
@iamkroot
Copy link
Owner Author

I think there is some bug where old code is still showing up for some reason. I suggest

  1. Stop the scrobbler with trakts stop
  2. Run pipx uninstall trakt-scrobbler
  3. Run pipx install git+https://github.com/iamkroot/trakt-scrobbler.git@master
  4. Start scrobbler with trakts start

@panaris
Copy link

panaris commented Oct 15, 2023

Good call. that was indeed the problem. everything went right despite the strange errors.
https://bit.ly/3rQGAEK
WNDPROC return value cannot be converted to LRESULT
Apart from this everything is right except the scrobbler for mpc-be can't start because of this: (from the logs)
https://bit.ly/45zhV5g
And a minor thing about the button in the notification is that it didnt copy the trakt code correctly (i think it missed the letters and copied only the numbers)

@iamkroot
Copy link
Owner Author

Looks like a bug in the dependency we use to create notifications jithurjacob/Windows-10-Toast-Notifications#117

There's some fixes for it but the repo is inactive. We will probably need to change to a more maintained library.
For now, you should be able to avoid this error by disabling all notifications from the config.

@iamkroot iamkroot added upstream Bug in a dependency and removed needs-more-info Awaiting more info from the user's end labels Oct 24, 2023
@panaris
Copy link

panaris commented Oct 24, 2023

I also noticed that scrobble starts successfully but does not end when I stop watching or when the media ends, so it does not mark it as watched in trakt.
Many errors bellow:
GaAm71q

@iamkroot
Copy link
Owner Author

This seems to be related to the notifier issue- the traceback shows it errors out somewhere inside Win10Toast.

@panaris
Copy link

panaris commented Oct 26, 2023

it's possible, because it shows no notifs other than the initial trakt one

@iamkroot iamkroot changed the title Pydantic error in latest master Windows 11 notification crash Nov 20, 2023
@iamkroot
Copy link
Owner Author

Update: I'm looking into using a more up-to-date library for notifications on windows. Either desktop-notifier (that we already use for linux/mac) or win11toast. Both need us to set an App ID so Windows can show notifs. This link seems to be the closest to what we have.

@panaris
Copy link

panaris commented Nov 20, 2023

https://pypi.org/project/Windows-Toasts/

this works for sure. i know because i follow closely another project

https://github.com/marticliment/WingetUI

iamkroot added a commit that referenced this issue Nov 22, 2023
Needs more debugging to find the root cause. Is this a python bug?

See #259 (comment)
@iamkroot
Copy link
Owner Author

@panaris Try reinstalling the master branch again. I've pushed a fix for this using desktop-notifier.

@panaris
Copy link

panaris commented Nov 22, 2023

yes, it works now except button does nothing. i'll report any other issue i find

@iamkroot
Copy link
Owner Author

Please create a bug report for that!
(It is surprising, since the button JustWorks TM for me)

@panaris
Copy link

panaris commented Nov 22, 2023

yes, button doesnt work but click works fine (except the console opening for a millisecond)

@ymyogev
Copy link

ymyogev commented Nov 24, 2023

Getting this error when I do step 3 @iamkroot , what am I missing?
Sorry, not a Python-head

ERROR: Error [WinError 2] The system cannot find the file specified while executing command git version
ERROR: Cannot find command 'git' - do you have 'git' installed and in your PATH?
Cannot determine package name from spec 'git+https://github.com/iamkroot/trakt-scrobbler.git@master'. Check package
spec for errors.

I think there is some bug where old code is still showing up for some reason. I suggest

3. Run `pipx install git+https://github.com/iamkroot/trakt-scrobbler.git@master`

@panaris
Copy link

panaris commented Nov 25, 2023

do you have git installed? https://git-scm.com/book/en/v2/Getting-Started-Installing-Git

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working upstream Bug in a dependency
Projects
None yet
Development

No branches or pull requests

3 participants