WASasquatch / was-node-suite-comfyui

An extensive node suite for ComfyUI with over 210 new nodes
MIT License
1.24k stars 178 forks source link

WAS Node Suite Error: Unable to save file due to the to the following error: Extra data: line 1186 column 2 (char 74515) #206

Open p0mad opened 1 year ago

p0mad commented 1 year ago

I get the following Errors!

WAS Node Suite Error: Unable to save file due to the to the following error: Expecting ',' delimiter: line 637 column 59 (char 40169)

WAS Node Suite Error: Unable to save file due to the to the following error: Extra data: line 1186 column 2 (char 74515)

It was ok saving images for about 160 of generated image. but after that i see this error while it saves the image!!! i'm not sure if it affects the saved image or not!

p0mad commented 1 year ago

Now, when i stoped the server, and start it again this error shown: FETCH DATA from: D:\sl\win\Control\custom_nodes\ComfyUI-Manager\extension-node-map.json Error handling request Traceback (most recent call last): File "D:\sl\mamba\envs\PSL\lib\site-packages\aiohttp\web_protocol.py", line 433, in _handle_request resp = await request_handler(request) File "D:\sl\mamba\envs\PSL\lib\site-packages\aiohttp\web_app.py", line 504, in _handle resp = await handler(request) File "D:\sl\mamba\envs\PSL\lib\site-packages\aiohttp\web_middlewares.py", line 117, in impl return await handler(request) File "D:\sl\win\Control\server.py", line 46, in cache_control response: web.Response = await handler(request) File "D:\sl\win\Control\server.py", line 416, in get_object_info out[x] = node_info(x) File "D:\sl\win\Control\server.py", line 395, in node_info info['input'] = obj_class.INPUT_TYPES() File "D:\sl\win\Control\custom_nodes\was-node-suite-comfyui\WAS_Node_Suite.py", line 5078, in INPUT_TYPES
HDB = WASDatabase(WAS_HISTORY_DATABASE) File "D:\sl\win\Control\custom_nodes\was-node-suite-comfyui\WAS_Node_Suite.py", line 735, in init self.data = json.load(f) File "D:\sl\mamba\envs\PSL\lib\json__init.py", line 293, in load return loads(fp.read(), File "D:\sl\mamba\envs\PSL\lib\json\init__.py", line 346, in loads return _default_decoder.decode(s) File "D:\sl\mamba\envs\PSL\lib\json\decoder.py", line 340, in decode raise JSONDecodeError("Extra data", s, end) json.decoder.JSONDecodeError: Extra data: line 1186 column 2 (char 74515)

WASasquatch commented 1 year ago

Your database has been altered incorrectly. May have edited manually and saved in wrong encoding or added wrong syntax. Line 1186, columns 2

p0mad commented 1 year ago

can you guide me to fix it? @WASasquatch

WASasquatch commented 1 year ago

I don't know what the issue is. Something at that line. If there is nothing in there you need to save you could delete it and let suite generate a new one.

p0mad commented 1 year ago

image

WASasquatch commented 1 year ago

It's inside the was database files not was-ns. The was_suite_settings.json file

p0mad commented 1 year ago

@WASasquatch its Empty image

and my workflow does not even have a VideoWriter !

p0mad commented 1 year ago

@WASasquatch

I'm not sure why!

but it automatically added two " } } " in the history file!!!

image

after removing those, the error gone!

p0mad commented 1 year ago

I guess its because of the number of generated images! @WASasquatch Are there any limit? I'm sure it got added automatically because that happened during a long generation

p0mad commented 1 year ago

Thinking about reaching the limits and wanted to create a new curly braces for new inputs but it has wrong formatted!

WASasquatch commented 1 year ago

I haven't experienced this and have processed entire movies or frames. Sounds like something ulterior impacted things.

p0mad commented 1 year ago

each time when it reaches about 1100 logs, i need to manually clean the logs for the other run! I'm not sure why you dont reproduce such behaivor ... but i'm using CNs, ...

and also my frames are about 200 for each clip .. then it rests for the next clip ... and about 1300 this error appears!

YacratesWyh commented 7 months ago

Same error experienced! image

WASasquatch commented 7 months ago

Your file has grown too big, and wasn't saved before being loaded/edited again by another process. So you have to repair the file or delete it.

On Sun, Apr 28, 2024, 4:07 AM Cyanocitta Yinhao Wang < @.***> wrote:

Same error experienced! image.png (view on web) https://github.com/WASasquatch/was-node-suite-comfyui/assets/8447769/cba5f030-3240-4b65-ad42-058a687c02cd

— Reply to this email directly, view it on GitHub https://github.com/WASasquatch/was-node-suite-comfyui/issues/206#issuecomment-2081436584, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIZEZIKKU2KYKBXU7C2TPLY7TJ6BAVCNFSM6AAAAAA4UWJCCWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBRGQZTMNJYGQ . You are receiving this because you were mentioned.Message ID: @.***>