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

On second launch I start getting a Black screen and Failure to write entry:[] #131

Open
Changhochien opened this issue Jan 24, 2024 · 19 comments

Comments

@Changhochien
Copy link

Changhochien commented Jan 24, 2024

On the second launch I start, I'm getting the error below and cannot figure out how to solve the issue.


Starting Vite with Electron's Node...

Server running on http://localhost:8688
waiting for cushy to start
[VITE] vite started
|2024-01-24T14:15:42.952Z|
failure to write entry: []
...on error: Error: ENOENT: no such file or directory, open 'D:\CushyStudio\logs\2024-01-24.debug.log'
|2024-01-24T14:15:43.041Z|
failure to write entry: [null]
...on error: Error: ENOENT: no such file or directory, open 'D:\CushyStudio\logs\2024-01-24.debug.log'
|2024-01-24T14:15:43.042Z|
failure to write entry: [null]
...on error: Error: ENOENT: no such file or directory, open 'D:\CushyStudio\logs\2024-01-24.debug.log'
|2024-01-24T14:15:43.044Z|
failure to write entry: [null]
...on error: Error: ENOENT: no such file or directory, open 'D:\CushyStudio\logs\2024-01-24.debug.log'
|2024-01-24T14:15:43.044Z|
failure to write entry: [null]
...on error: Error: ENOENT: no such file or directory, open 'D:\CushyStudio\logs\2024-01-24.debug.log'
|2024-01-24T14:15:43.045Z|
failure to write entry: [null]
...on error: Error: ENOENT: no such file or directory, open 'D:\CushyStudio\logs\2024-01-24.debug.log'
|2024-01-24T14:15:43.046Z|
failure to write entry: [null]
...on error: Error: ENOENT: no such file or directory, open 'D:\CushyStudio\logs\2024-01-24.debug.log'
|2024-01-24T14:15:43.049Z|
failure to write entry: [null]
...on error: Error: ENOENT: no such file or directory, open 'D:\CushyStudio\logs\2024-01-24.debug.log'
|2024-01-24T14:15:43.049Z|
failure to write entry: [null]
...on error: Error: ENOENT: no such file or directory, open 'D:\CushyStudio\logs\2024-01-24.debug.log'

update the log file

|22:47:50|
|327| [🔑 AUTH] restoring session from DB...
|351| [🔑 AUTH] restoring session from DB...
|372| [🔑 AUTH] restoring session from DB...
|390| [🔑 AUTH] restoring session from DB...
|22:48:54|
|663| [🔑 AUTH] restoring session from DB...
|682| [🔑 AUTH] restoring session from DB...
|700| [🔑 AUTH] restoring session from DB...
|717| [🔑 AUTH] restoring session from DB...

image


I started Cushy in dev mode and the below is what I got


Starting Cushy in dev mode...

The CJS build of Vite's Node API is deprecated. See https://vitejs.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details.
waiting for cushy to start
[117052:0124/231242.921:ERROR:cache_util_win.cc(20)] Unable to move the cache: 存取被拒。 (0x5)
[117052:0124/231242.921:ERROR:cache_util_win.cc(20)] Unable to move the cache: 存取被拒。 (0x5)
[117052:0124/231242.996:ERROR:disk_cache.cc(208)] Unable to create cache
[117052:0124/231242.997:ERROR:gpu_disk_cache.cc(676)] Gpu Cache Creation failed: -2
[117052:0124/231242.997:ERROR:disk_cache.cc(208)] Unable to create cache
[117052:0124/231242.997:ERROR:gpu_disk_cache.cc(676)] Gpu Cache Creation failed: -2
waiting for cushy to start
waiting for cushy to start
waiting for cushy to start
waiting for cushy to start
[VITE] loading vite config
waiting for cushy to start
waiting for cushy to start
➜ Local: http://localhost:8788/
➜ Network: use --host to expose
[117052:0124/231244.564:ERROR:quota_database.cc(950)] Could not open the quota database, resetting.
[117052:0124/231249.501:ERROR:quota_database.cc(950)] Could not open the quota database, resetting.
[117052:0124/231252.411:ERROR:quota_database.cc(955)] Failed to reset the quota database.
[117052:0124/231252.411:ERROR:quota_database.cc(955)] Failed to reset the quota database.
[VITE] vite started
[124568:0124/231256.036:ERROR:cache_util_win.cc(20)] Unable to move the cache: 存取被拒。 (0x5)
[124568:0124/231256.037:ERROR:disk_cache.cc(208)] Unable to create cache
下午11:12:59 [vite] warning: rewrote @tensorflow/tfjs to ./src/syms/tfjs.js but was not an abolute path and was not handled by other plugins. This will lead to duplicated modules for the same path. To avoid duplicating modules, you should resolve to an absolute path.
Plugin: alias

@rvion
Copy link
Owner

rvion commented Jan 24, 2024

thanks for the feedback, I will look into this in ~4/5 hours when I'm home.

Does cushy start and work properly in the meantime ?

things you can try in the meantime to get rid of the logs error: creating a logs folder at the root of your cushy install

@rvion
Copy link
Owner

rvion commented Jan 24, 2024

regaring the quota_database.cc(950) Could not open the quota database, resetting. => maybe a permission error ? Cushy should not require any privilege; install script should be run as normal user, not superadmin

@GitWilburn
Copy link
Contributor

@rvion Not sure if this will help, but I am seeing this error in the console in addition to the
"failure to write entry: []" error. But I am only seeing it when running with _windows-start.bat
image

Also, @Changhochien, I was able to run okay with _windows-start-dev.bat. You could try running the -dev file in your environment as a temporary workaround until @rvion has a chance to look at it.

@rvion
Copy link
Owner

rvion commented Jan 24, 2024

@GitWilburn are you back on master branch ?

@GitWilburn
Copy link
Contributor

@GitWilburn are you back on master branch ?

Yes, I am on master ATM.

@rvion
Copy link
Owner

rvion commented Jan 24, 2024

@GitWilburn the error you see is probably a choices widget having its children defined without lambda; is this a default app or a custom one ?

@GitWilburn
Copy link
Contributor

@rvion just the built-in SDUI. Sounds like maybe unrelated to the original issue.

@Changhochien
Copy link
Author

regaring the quota_database.cc(950) Could not open the quota database, resetting. => maybe a permission error ? Cushy should not require any privilege; install script should be run as normal user, not superadmin

I've tried on another computer and got the same problem.
I'll keep trying.
Thank you for the reply.

@Changhochien
Copy link
Author

Changhochien commented Jan 25, 2024

@rvion Not sure if this will help, but I am seeing this error in the console in addition to the "failure to write entry: []" error. But I am only seeing it when running with _windows-start.bat image

Also, @Changhochien, I was able to run okay with _windows-start-dev.bat. You could try running the -dev file in your environment as a temporary workaround until @rvion has a chance to look at it.

I've tried to run on dev mode, but I still get a black screen with the same problem.
I've up dated the screen shot on top.

圖片

This is what I see on the console log in the dev mode

圖片
圖片

@Changhochien
Copy link
Author

New update
This problem seems to occur after first connection with comfyUI.
Then it will show a complete black screen and the errors shown in the previous dialogs.

@rvion
Copy link
Owner

rvion commented Jan 25, 2024

fixed it in my dev branch

@rvion
Copy link
Owner

rvion commented Jan 25, 2024

will merge in a few minutes

@rvion
Copy link
Owner

rvion commented Jan 25, 2024

@Changhochien can you check if it works now ?
thanks again for the help troubleshooting that :)

@R-ES-H
Copy link

R-ES-H commented Feb 2, 2024

I have the same black screen on second launch but the cmd.exe is stuck here :
image
I have this error too, I don't know if this is related
image

@rvion
Copy link
Owner

rvion commented Feb 2, 2024

oh, you don't have git; update is using git;
this is unfortunate :/
In case you can install it, link is there: https://git-scm.com/
I plan to remove the need to have git installed; maybe I need to prioritize this.

@Changhochien
Copy link
Author

I'll try the new update thanks!
Will update my situation soon.

@cjbarnes22
Copy link

I have git installed (at least I believe so on the host, and am not using a venv?) but am getting the [VITE] vite started on second launch. Worked on the first launch great. Now only works with a rull reinstall and keeping it online full time.

@rvion
Copy link
Owner

rvion commented Feb 11, 2024

Can you paste the errors you have ? Both in the terminal / console, and app devtools (if app launch, using the menu entry)

@cjbarnes22
Copy link

cjbarnes22 commented Feb 18, 2024

Sorry busy week. I have had some other issues since so this may be on my end, thinking about rebuilding from OS up.
I tried again and I get this error, and a black screen on the CushyStuio window that pops up

Starting Vite with Electron's Node...

Server running on http://localhost:8688
waiting for cushy to start
[VITE] vite started
[27512:0217/202012.547:ERROR:CONSOLE(0)] "ReferenceError: dragEvent is not defined", source: (0)
[27512:0217/202052.892:ERROR:CONSOLE(0)] "ReferenceError: dragEvent is not defined", source: (0)

image

I had in the past been able to reinstall and launch but this was on first launch.

now I see in the devtools, I also have my comfy on port 8188 so I'm not sure why It's calling 8688

main.js:23455 Download the React DevTools for a better development experience: https://reactjs.org/link/react-devtools
main.js:167182 [🛋️] rendering CushyStudio
main.js:151320 [🏷️] UserTags: 1 tags parsed
main.js:166837 [🛋️] starting Cushy
main.js:166685 [🍻] FIXUP TSConfig
main.js:154750 {0} Object
main.js:166850 [🛋️] 30 shortcuts loaded
main.js:159923 [🔑 AUTH] restoring session from DB...
main.js:159893 [🏷️] DanBooru: 100001 tags parsed
main.js:151756 [📑] comfy_schema: updating schema (virtual-base)
main.js:151756 [📑] comfy_schema: updating schema (virtual-full)
main.js:151756 [📑] comfy_schema: updating schema (standard)
main.js:167182 [🛋️] rendering CushyStudio
main.js:166837 [🛋️] starting Cushy
main.js:166685 [🍻] FIXUP TSConfig
main.js:154750 {1} Object
main.js:164538 Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.
_GoTrueClient @ main.js:164538
main.js:166850 [🛋️] 30 shortcuts loaded
main.js:159923 [🔑 AUTH] restoring session from DB...
main.js:151756 [📑] comfy_schema: updating schema (virtual-base)
main.js:151756 [📑] comfy_schema: updating schema (virtual-full)
main.js:151756 [📑] comfy_schema: updating schema (standard)
main.js:79070 Uncaught TypeError: nodeDef.output.entries is not a function or its return value is not iterable
at ComfySchemaL.onUpdate (main.js:154527:52)
at executeAction (C:\Users\user\Documents\CushyUI\CushyStudio\node_modules\mobx\dist\mobx.cjs.development.js:1241:15)
at ComfySchemaL.onUpdate (C:\Users\user\Documents\CushyUI\CushyStudio\node_modules\mobx\dist\mobx.cjs.development.js:1226:12)
at ComfySchemaL.init (main.js:151752:24)
at executeAction (C:\Users\user\Documents\CushyUI\CushyStudio\node_modules\mobx\dist\mobx.cjs.development.js:1241:15)
at ComfySchemaL.init (C:\Users\user\Documents\CushyUI\CushyStudio\node_modules\mobx\dist\mobx.cjs.development.js:1226:12)
at LiveTable._createInstance (main.js:151629:16)
at executeAction (C:\Users\user\Documents\CushyUI\CushyStudio\node_modules\mobx\dist\mobx.cjs.development.js:1241:15)
at LiveTable._createInstance (C:\Users\user\Documents\CushyUI\CushyStudio\node_modules\mobx\dist\mobx.cjs.development.js:1226:12)
at LiveTable.get (main.js:151429:19)
main.js:167182 [🛋️] rendering CushyStudio
main.js:166837 [🛋️] starting Cushy
main.js:166685 [🍻] FIXUP TSConfig
main.js:154750 {2} Object
main.js:164538 Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.
_GoTrueClient @ main.js:164538
main.js:166850 [🛋️] 30 shortcuts loaded
main.js:159923 [🔑 AUTH] restoring session from DB...
main.js:151756 [📑] comfy_schema: updating schema (virtual-base)
main.js:151756 [📑] comfy_schema: updating schema (virtual-full)
main.js:151756 [📑] comfy_schema: updating schema (standard)
main.js:167182 [🛋️] rendering CushyStudio
main.js:166837 [🛋️] starting Cushy
main.js:166685 [🍻] FIXUP TSConfig
main.js:154750 {3} Object
main.js:164538 Multiple GoTrueClient instances detected in the same browser context. It is not an error, but this should be avoided as it may produce undefined behavior when used concurrently under the same storage key.
_GoTrueClient @ main.js:164538
main.js:166850 [🛋️] 30 shortcuts loaded
main.js:159923 [🔑 AUTH] restoring session from DB...
main.js:151756 [📑] comfy_schema: updating schema (virtual-base)
main.js:151756 [📑] comfy_schema: updating schema (virtual-full)
main.js:151756 [📑] comfy_schema: updating schema (standard)
main.js:79070 Uncaught TypeError: nodeDef.output.entries is not a function or its return value is not iterable
at ComfySchemaL.onUpdate (main.js:154527:52)
at executeAction (C:\Users\user\Documents\CushyUI\CushyStudio\node_modules\mobx\dist\mobx.cjs.development.js:1241:15)
at ComfySchemaL.onUpdate (C:\Users\user\Documents\CushyUI\CushyStudio\node_modules\mobx\dist\mobx.cjs.development.js:1226:12)
at ComfySchemaL.init (main.js:151752:24)
at executeAction (C:\Users\user\Documents\CushyUI\CushyStudio\node_modules\mobx\dist\mobx.cjs.development.js:1241:15)
at ComfySchemaL.init (C:\Users\user\Documents\CushyUI\CushyStudio\node_modules\mobx\dist\mobx.cjs.development.js:1226:12)
at LiveTable._createInstance (main.js:151629:16)
at executeAction (C:\Users\user\Documents\CushyUI\CushyStudio\node_modules\mobx\dist\mobx.cjs.development.js:1241:15)
at LiveTable._createInstance (C:\Users\user\Documents\CushyUI\CushyStudio\node_modules\mobx\dist\mobx.cjs.development.js:1226:12)
at LiveTable.get (main.js:151429:19)
main.js:15955 The above error occurred in one of your React components:

at http://localhost:8688/main.js:79108:12

Consider adding an error boundary to your tree to customize error handling behavior.
Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.
logCapturedError @ main.js:15955
main.js:21328 Uncaught TypeError: nodeDef.output.entries is not a function or its return value is not iterable
at ComfySchemaL.onUpdate (main.js:154527:52)
at executeAction (C:\Users\user\Documents\CushyUI\CushyStudio\node_modules\mobx\dist\mobx.cjs.development.js:1241:15)
at ComfySchemaL.onUpdate (C:\Users\user\Documents\CushyUI\CushyStudio\node_modules\mobx\dist\mobx.cjs.development.js:1226:12)
at ComfySchemaL.init (main.js:151752:24)
at executeAction (C:\Users\user\Documents\CushyUI\CushyStudio\node_modules\mobx\dist\mobx.cjs.development.js:1241:15)
at ComfySchemaL.init (C:\Users\user\Documents\CushyUI\CushyStudio\node_modules\mobx\dist\mobx.cjs.development.js:1226:12)
at LiveTable._createInstance (main.js:151629:16)
at executeAction (C:\Users\user\Documents\CushyUI\CushyStudio\node_modules\mobx\dist\mobx.cjs.development.js:1241:15)
at LiveTable._createInstance (C:\Users\user\Documents\CushyUI\CushyStudio\node_modules\mobx\dist\mobx.cjs.development.js:1226:12)
at LiveTable.get (main.js:151429:19)
main.js:160041 [🔑 AUTH] 🟢 received INITIAL_SESSION
main.js:160041 [🔑 AUTH] 🟢 received INITIAL_SESSION
main.js:160041 [🔑 AUTH] 🟢 received INITIAL_SESSION
main.js:160041 [🔑 AUTH] 🟢 received INITIAL_SESSION

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

5 participants