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

Spotifylyrics.exe opens and closes immediately on Windows 10 #21

Closed
EvilLink opened this issue Mar 22, 2020 · 45 comments
Closed

Spotifylyrics.exe opens and closes immediately on Windows 10 #21

EvilLink opened this issue Mar 22, 2020 · 45 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@EvilLink
Copy link

I use Windows 10 Version 1909, when I open the app it closes immediately, it shows in task manager list but vanishes. There's no error message or anything else.

@SimonIT SimonIT added the bug Something isn't working label Mar 22, 2020
@SimonIT
Copy link
Owner

SimonIT commented Mar 22, 2020

Do you tried to install Visual C++ Redistributable for Visual Studio 2015 as mentioned in the readme?

@EvilLink
Copy link
Author

Yeah, I have it installed.

@SimonIT SimonIT added the help wanted Extra attention is needed label Mar 22, 2020
@SimonIT
Copy link
Owner

SimonIT commented Mar 22, 2020

Then I have no clue why it doesn't work. By doing a quick research I couldn't find any problems with pyinstaller on windows.
Alternatively you can install python and clone the repository.

@EvilLink
Copy link
Author

Now I've tried the 1.40 version and it opened normally... But when I try to open the 1.50, happens what I said before...

@SimonIT
Copy link
Owner

SimonIT commented Mar 22, 2020

Hmm, the only difference is that I generated 1.40 on my own computer with Windows 1909 and 1.50 on travis which is a Windows Server, version 1809

@kleytondread
Copy link

I would create one ticket but my problem is similar to EvilLink, except that mine doesn't even start the .exe file in version 1.50, though it executes the 1.40 version normally (actually there is a problem with version 1.40 -- the reason why I tried the update -- it takes a good 30-50 seconds to start the application). So I don't know what could be the cause either, since last version runs it but the latest does not.

@SimonIT
Copy link
Owner

SimonIT commented Apr 23, 2020

So strange.
Can you both write some Details about your Windows version? Maybe we can find the problem this way

@kleytondread
Copy link

@SimonIT here is my 'about' on the windows version, sorry, it is all in pt-BR, if you don't understand something just let me know.
Also if you need some other detail about my windows let me know, I'll be happy to help you.

Capturar

@kleytondread
Copy link

ps: I noticed my windows version is not updated. i'm trying to update now, and I'll report back to you once I install it and reboot my pc.ç

@SimonIT
Copy link
Owner

SimonIT commented Apr 23, 2020

Hm, the only differences to mine are a newer version (I got version 1909 and build 18363.815) and an Intel processor. I personally don't think that these two differences matters.

Is there an error message if you start the .exe file from cmd?

@kleytondread
Copy link

Ok, I updated my W10 version to 1909. Downloaded the 1.50 .exe file again, and it has the same problem, version 1.50 doesn't even open. No signs of its process on the Task manager. Version 1.40 still works, though it takes 30sec or so to open.

New W10 version:
image

Running through CMD:
Version 1.40 - opens as usual;
Version 1.50 - nothing so far, and no warning massage. Here's a screen capture with both icons os the app and also showing the 1.40 opened... no 1.50 though.

image

@SimonIT
Copy link
Owner

SimonIT commented Apr 23, 2020

I tried now in a fresh installed Windows VM and it worked fine. I have no clue why it doesn't work for you both. If you got ideas, please share or try them. I would be very happy if we even get an error message.
I can make the exe on my own pc like I did for 1.4, but as you mentioned it has a very long delay at the start. I don't know if it's worth. I will set the log level to debug at generating to get hopefully some output.

@kleytondread
Copy link

@SimonIT does the Version 1.50 generates any log file or AppData folder? I tried finding it, but no sings of it.

@SimonIT
Copy link
Owner

SimonIT commented Apr 23, 2020

There isn't any logging implemented, only some console outputs. Maybe it's now time implement something in this direction

@kleytondread
Copy link

I'll keep you posted in case I find a way to make it work, though I don't know what else to do in order to teste it. But thank you very very much for the time and the updates!

@EvilLink
Copy link
Author

After all this time, I was thinking here... @kleytondread and me are from Brazil. Could it be possible any settings of region, location or format that our windows use and the Python can't access correctly to load? I already experienced something like this in others apps

@SimonIT
Copy link
Owner

SimonIT commented Jun 13, 2020

Hmm, that could be possible. Have you special characters in your usernames? I know that Java has sometimes problems with that, so I can think of having a problem with this here, too.

@kleytondread
Copy link

If you mean spotify username, than no, no special characters. But I do use facebook authentication on my spotify, if that helps in anyway shape or form.

@SimonIT
Copy link
Owner

SimonIT commented Jun 13, 2020

No, I mean your windows username

@kleytondread
Copy link

also no.

@peter9811
Copy link

W10 Pro, x64, 1909
image

@SimonIT
Copy link
Owner

SimonIT commented Jun 19, 2020

Okay guys, I just released 1.52 with error reporting to sentry. If you update I will hopefully get an error message indicating what's going wrong

@EvilLink
Copy link
Author

Same problem... I made a GIF:

2020-06-19_06-41-16

@EvilLink
Copy link
Author

Did you implemented a debug log mode or something like that, that I can do through CMD?

@SimonIT
Copy link
Owner

SimonIT commented Jun 19, 2020

No, I included sentry. But there appears no error. Now I let travis build the exe file without windowed mode, so there is a console which should show the error. https://github.com/SimonIT/spotifylyrics/releases/tag/1.52-DEBUG

@EvilLink
Copy link
Author

EvilLink commented Jun 19, 2020

I tried to open through CMD or clicking on it. Same problem yet.

But the 1.40 continues to open normally...

@SimonIT
Copy link
Owner

SimonIT commented Jun 19, 2020

Can you redownload https://github.com/SimonIT/spotifylyrics/releases/tag/1.52-DEBUG ? I made sure that now a console window opens with a log

@EvilLink
Copy link
Author

Now it opened!

chrome_2020-06-19_08-37-35

chrome_2020-06-19_08-39-10

@SimonIT
Copy link
Owner

SimonIT commented Jun 19, 2020

But how????? I mean I didn't change anything despite except .pyw to .py and removed the windowed flag from the pyinstaller command

@EvilLink
Copy link
Author

I have no idea how, but now it works normally with this log window.... It must be ALIENS! :P

@EvilLink
Copy link
Author

I'm not Python programmer but, I googled a little what you said and I found some people complaining about .pyw and .py, it appears to be the problem.

https://stackoverflow.com/questions/21545667/cant-execute-pyw-on-windows

@SimonIT
Copy link
Owner

SimonIT commented Jun 19, 2020

I think we have to try it without pyw but with -w, maybe that works

@EvilLink
Copy link
Author

Let's do that, what I have to?

@kleytondread
Copy link

Hey guys, @SimonIT what file should I download to test it (the .exe 1.52)?

@SimonIT
Copy link
Owner

SimonIT commented Jun 19, 2020

@kleytondread The exe from https://github.com/SimonIT/spotifylyrics/releases/tag/1.52-DEBUG seem to work for EvilLink

https://github.com/SimonIT/spotifylyrics/releases/tag/1.52-DEBUG2 Here is the exe with .py but with the windowed flag for pyinstaller. @EvilLink If this works, I would be very happy

@EvilLink
Copy link
Author

EvilLink commented Jun 19, 2020

LOL... Now it doesn't work..... Only the previous debug...

@SimonIT
Copy link
Owner

SimonIT commented Jun 19, 2020

Ahhhh, I'm freaking out. It could be this problem: pyinstaller/pyinstaller#4930, but I'm absolute unsure

@EvilLink
Copy link
Author

Well... I'll use the debug version while that... Chill your mind and let's forget this for a while, don't freak out

@kleytondread
Copy link

@SimonIT, I can confirm this Debug version (1.52) opens fast, like it should. i'll try downloading the non-debug version to check it

@EvilLink
Copy link
Author

I was opening from Python console until 1.53, but now the 1.54 '.exe' opens normally (again)... Just to let you know... LOL

@SimonIT
Copy link
Owner

SimonIT commented Aug 14, 2020

Crazy

@SimonIT
Copy link
Owner

SimonIT commented Nov 18, 2020

Hey guys, I changed the building from travis to github actions. https://github.com/SimonIT/spotifylyrics/suites/1524211646/artifacts/26916651 Here is the newest exe. Maybe this does work

@kleytondread
Copy link

Hey, SimonIT, sorry for the long time to reply. só far I have tested this new build in one of my computers (version has been stable and it opens properly). I cannot verify, however, on my desktop -- which is the one I was having problems with -- not until January, when I'm back home. With that said I'm gonna start studying your code, I feel I can learn a lot with it, I'm don't know much about Python, I only worked with Java and C# so far. But I wanna see if I can learn enough so I can try helping you (if you allow me, of course).

PS: I'll try replaying this again once I have access to my Desktop

@SimonIT
Copy link
Owner

SimonIT commented May 11, 2022

I'm happy about any help :) I'm a bit busy with university stuff

@EvilLink
Copy link
Author

No problem. I closed the topic because apparently the problem was solved a long time ago. Sorry to not say it before, but I was busy a lot too. Thank you for all your effort!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants