BlenderKit / BlenderKit

Official BlenderKit add-on for Blender 3D. Documentation: https://github.com/BlenderKit/blenderkit/wiki
https://www.blenderkit.com
GNU General Public License v2.0
141 stars 22 forks source link

Client is not running , addon will not work . Error (0) : BlenderKit-Client process exited with 0 #1248

Open Tungphan2004 opened 1 month ago

Tungphan2004 commented 1 month ago

Bug Description

when i open blender i see Client is not running , addon will not work . Error (0) : BlenderKit-Client process exited with code 0

Error Logs

Error (0) : BlenderKit-Client process exited with code 0

Steps to Reproduce

agajdosi commented 1 month ago

Hi @Tungphan2004, I will need Client log (blenderkit_data\client\default.log) to debug this issue. Please follow the instructions bellow:

Windows

  1. Locate Blender.exe and Client's log file: A. Client log is by default at: C:\Users\<your-username>\blenderkit_data\client\default.log. B. Blender.exe is by default located at: C:\Program Files\Blender Foundation\Blender 4.1\blender.exe
  2. Click on the Start button and search for PowerShell. Launch the PowerShell application twice.
  3. In first PowerShell window, type (or paste by right-clicking) the following command: Get-Content C:\Users\<your-username>\blenderkit_data\client\default.log -Wait, hit Enter to execute the command. PowerShell will then monitor the log file, we will use it later. Make sure the path to Client log is correct.
  4. In second PowerShell window, type (or paste by right-clicking) the following command into the PowerShell window: & "C:\Program Files\Blender Foundation\Blender 4.1\blender.exe" (make sure the path is enclosed in quotes). Press "Enter" to run the command, which will start Blender. All errors which happen during the run will be printed into the PowerShell window.
  5. Use Blender as usual until you encounter the problem. Then, copy and paste all of the text from both PowerShell windows into this issues. To select text, hold down the left mouse button and then copy it by pressing the right mouse button.

MacOS

  1. Locate the Blender binary and the Client's log file: A. The Client log file is typically located at: /Users/<your-username>/blenderkit_data/client/default.log. B. The Blender binary is by default found at: /Applications/Blender.app/Contents/MacOS/Blender.
  2. Open Spotlight and search for Terminal. Launch two instances of the Terminal application.
  3. In the first Terminal window, type tail -f command followed by path from step 1A, e.g. tail -f /Users/<your-username>/blenderkit_data/client/default.log and press "Enter". Terminal will begin monitoring the log file. Make sure to replace <your-username> with your actual username and verify that the path to the Client log file is correct.
  4. In the second Terminal window, type or paste the path from step 1B, e.g., /Applications/Blender.app/Contents/MacOS/Blender, and press "Enter". This will start Blender, and any errors will be displayed in the Terminal window.
  5. Use Blender as you normally would until the problem occurs. Then, copy and paste all of the text from both Terminal windows into your reply to this issue.

Linux

  1. Locate the Blender binary and the Client's log file: A. The Client log file is typically located at: /home/<your-username>/blenderkit_data/client/default.log. B. The Blender binary can be located by typing which blender in the terminal. If the blender binary is not on the PATH, search for its location and use the absolute path for the following steps.
  2. Launch two instances of the "Terminal" application.
  3. In the first Terminal window, type or paste the following command: tail -f /home/<your-username>/blenderkit_data/client/default.log and hit "Enter". Terminal will begin monitoring the log file. Make sure to replace <your-username> with your actual username and verify that the path to the Client log file is correct.
  4. In the second Terminal window, type blender (or specify the absolute path to Blender binary if it's not on the PATH) and hit "Enter". This will start Blender and any errors will be printed into the Terminal window.
  5. Use Blender as you normally would until the problem occurs. Then, copy and paste all of the text from both Terminal windows into your reply to this issue.

Looking forward to your response. Thank you!

agajdosi commented 1 month ago

It is possible that the add-on cannot start the Client on your machine. It could be blocked by Windows defender, antivirus or firewall. Please check those for blocked programs/network connections and give permissions to BlenderKit Client.

You can also try starting the Client manually:

  1. Close Blender
    1. Navigate to: C:\Users\your-username\blenderkit_data\client\v1.1.2 and execute the client.exe binary.
    2. Does it give any error? Does any antivirus prompt appeared?
    3. Start Blender, enable add-on.
    4. Addon should connect to the already running Client.
github-actions[bot] commented 1 week ago

This issue is marked stale - inactive because it has been open for 30 days with no activity. It will be closed in 14 days if there is no activity. Please comment to prevent closing if this issue is still relevant and present in BlenderKit.