ptrumpis / snap-camera-server

An alternative, self-hosted solution that allows you to continue using Snap Camera with all Snapchat filters after its shutdown on January 25, 2023.
https://github.com/snapcamera
MIT License
321 stars 35 forks source link

Snap Camera doesn't load any lenses #132

Closed Speedy2662 closed 4 months ago

Speedy2662 commented 5 months ago

System (please complete the following information):

The Docker server is online; image

What I see when I open Snap Camera: image

Log.txt

ptrumpis commented 5 months ago

Is https://studio-app.snapchat.com/ reachable in your browser?

Are you sure snap camera was fully closed?

 pkill -x "Snap Camera"
Speedy2662 commented 5 months ago

Is https://studio-app.snapchat.com/ reachable in your browser?

I cannot access https://studio-app.snapchat.com/. An error occurred during a connection to studio-app.snapchat.com. PR_END_OF_FILE_ERROR

Are you sure snap camera was fully closed?

Yes, the process was closed, not just minimised. I didn't touch Snap Camera until the server was fully online.

ptrumpis commented 5 months ago

Looks like an SSL problem.

Did you use AutoConfig.exe or manual configuration?

ptrumpis commented 5 months ago

What about these links, are both working or is one of them failing?

http://studio-app.snapchat.com/ http://127.0.0.1/

Speedy2662 commented 5 months ago

I used AutoConfig. I can also confirm I installed OpenSSL-3.2.1 prior to using AutoConfig

Speedy2662 commented 5 months ago

What about these links, are both working or is one of them failing?

http://127.0.0.1/ loads Snap Camera Server Files, the other studio-app link does not

image

ptrumpis commented 5 months ago

If the domain fails there might be a problem with the hosts file located in %SYSTEMROOT%\System32\drivers\etc

The entry is missing or it's not getting honored. Are you behind a proxy or vpn?

Speedy2662 commented 5 months ago

I am not using a proxy, vpn, or any kind of antivirus or firewall software which doesn't come with Windows

ptrumpis commented 5 months ago

These commands may or may not help.

In Terminal

ipconfig /flushdns

In PowerShell

Clear-DnsClientCache
Speedy2662 commented 5 months ago

I looked into the hosts file and as you suspected there was no mention of snapchat anywhere.

After adding 127.0.0.1 studio-app.snapchat.com to the end of the file, executing the two commands you mention in your last comment and then restarting Snapchat, it worked!

image

I must note that editing the hosts file was for some reason way more difficult than I ever remember it being - running Notepad++ / Notepad as administrator was not enough to let me edit or save it.

I had to make a copy on my desktop, edit that then drag it back into the directory replacing the original. Odd!

Thank you for your assistance

Speedy2662 commented 5 months ago

I have a quick question and I'm unsure if it might be related to the above - but are AI lenses such as 'Cubism Art by Snapchat' supposed to work? When I select it nothing happens, and I don't think I saw any mention regarding these :)

Others - such as Beauty Cartoon by Snapchat just show the missing texture; image

ptrumpis commented 5 months ago

Beauty Cartoon should work. Cubism Art might work after additional patching with a tool.

You need to select the non working lens and attach your log file again, then I could tell you the exact problem.

Speedy2662 commented 5 months ago

Log.txt

Here it is. Appreciate your help and work on this project brother, thank you

Edit: I think it has to do with the blending mode as you answered in another thread. I'll attach logs for another which doesn't work

Speedy2662 commented 5 months ago

Log.txt Here's the log with Beauty Cartoon last

ptrumpis commented 5 months ago

Log.txt Here's the log with Beauty Cartoon last

You should be able to resolve this by following the instructions here: https://github.com/ptrumpis/snap-camera-server/wiki/Updating-Snap-Camera-(Unofficial)

Or by simply downloading the CoreResources.bundle Folder from the Asset Repository.

ptrumpis commented 5 months ago

Log.txt

Here it is. Appreciate your help and work on this project brother, thank you

Edit: I think it has to do with the blending mode as you answered in another thread. I'll attach logs for another which doesn't work

This is a little bit more complicated and will hopfully be resolved with the next v4.0 server version. You would have to patch the lens as it contains an unknown blend mode.

Another user made a video tutorial about it: https://github.com/ptrumpis/snap-camera-server/discussions/125

That user also provided some patched lenses: https://github.com/ptrumpis/snap-camera-server/discussions/119

Speedy2662 commented 5 months ago

Or by simply downloading the CoreResources.bundle Folder from the Asset Repository.

I actually have done! I will attempt the update guide now, thanks. [Edit: I was putting them in the wrong folder :) the guide made this clear]

I will probably wait for the 4.0 version to fix the blend modes - I downloaded the #119 lenses you linked but I haven't looked into how to import them yet. Thanks for providing the link there! [Edit2: The Python tool won't work for me as it can't find a suitable version of pyqt5-plugins to install, and the cache import website throws up a 'Network Error' - Changing the server address to 127.0.0.1 gives a "Request error: " instead. This one is probably actually related to the above issue!]

Once again, appreciate your help.