Skip to content

[bug]: #8696

@REALmyenemy

Description

@REALmyenemy

Is there an existing issue for this problem?

  • I have searched the existing issues

Install method

Invoke's Launcher

Operating system

Windows

GPU vendor

Nvidia (CUDA)

GPU model

5070 Ti

GPU VRAM

No response

Version number

6.9

Browser

No response

System Information

No response

What happened

After reformatting my PC, reinstalling updates and usual apps and so on, I moved my old installation of InvokeAI Community Edition 6.9, back to the same path, "E:\Invoke\6.9". I tried to execute it, and I got the error below.
After doing the usual trouble shooting of setting a different python on PATH, updated graphics driver and so on, I deleted the installation, and installed 6.9 again, and got the same error.

I also checked #8648, since it's the same error log, but mine is not directly under C:, but a custom path in a non-system drive.

I also tried a 5.12 installation. In this version, the launcher freezes for a while, before finally opening succesfuly.

Full error log below.
File "E:\Invoke\6.9.venv\Lib\site-packages\starlette\routing.py", line 694, in lifespan
async with self.lifespan_context(app) as maybe_state:
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "%APPDATA%\uv\python\cpython-3.12.9-windows-x86_64-none\Lib\contextlib.py", line 210, in aenter
return await anext(self.gen)
^^^^^^^^^^^^^^^^^^^^^
File "E:\Invoke\6.9.venv\Lib\site-packages\fastapi\routing.py", line 209, in merged_lifespan
async with original_context(app) as maybe_original_state:
^^^^^^^^^^^^^^^^^^^^^
File "%APPDATA%\uv\python\cpython-3.12.9-windows-x86_64-none\Lib\contextlib.py", line 210, in aenter
return await anext(self.gen)
^^^^^^^^^^^^^^^^^^^^^
File "E:\Invoke\6.9.venv\Lib\site-packages\fastapi\routing.py", line 209, in merged_lifespan
async with original_context(app) as maybe_original_state:
^^^^^^^^^^^^^^^^^^^^^
File "%APPDATA%\uv\python\cpython-3.12.9-windows-x86_64-none\Lib\contextlib.py", line 210, in aenter
return await anext(self.gen)
^^^^^^^^^^^^^^^^^^^^^
File "E:\Invoke\6.9.venv\Lib\site-packages\fastapi\routing.py", line 209, in merged_lifespan
async with original_context(app) as maybe_original_state:
^^^^^^^^^^^^^^^^^^^^^
File "%APPDATA%\uv\python\cpython-3.12.9-windows-x86_64-none\Lib\contextlib.py", line 210, in aenter
return await anext(self.gen)
^^^^^^^^^^^^^^^^^^^^^
File "E:\Invoke\6.9.venv\Lib\site-packages\fastapi\routing.py", line 209, in merged_lifespan
async with original_context(app) as maybe_original_state:
^^^^^^^^^^^^^^^^^^^^^
File "%APPDATA%\uv\python\cpython-3.12.9-windows-x86_64-none\Lib\contextlib.py", line 210, in aenter
return await anext(self.gen)
^^^^^^^^^^^^^^^^^^^^^
File "E:\Invoke\6.9.venv\Lib\site-packages\fastapi\routing.py", line 209, in merged_lifespan
async with original_context(app) as maybe_original_state:
^^^^^^^^^^^^^^^^^^^^^
File "%APPDATA%\uv\python\cpython-3.12.9-windows-x86_64-none\Lib\contextlib.py", line 210, in aenter
return await anext(self.gen)
^^^^^^^^^^^^^^^^^^^^^
File "E:\Invoke\6.9.venv\Lib\site-packages\fastapi\routing.py", line 209, in merged_lifespan
async with original_context(app) as maybe_original_state:
^^^^^^^^^^^^^^^^^^^^^
File "%APPDATA%\uv\python\cpython-3.12.9-windows-x86_64-none\Lib\contextlib.py", line 210, in aenter
return await anext(self.gen)
^^^^^^^^^^^^^^^^^^^^^
File "E:\Invoke\6.9.venv\Lib\site-packages\fastapi\routing.py", line 209, in merged_lifespan
async with original_context(app) as maybe_original_state:
^^^^^^^^^^^^^^^^^^^^^
File "%APPDATA%\uv\python\cpython-3.12.9-windows-x86_64-none\Lib\contextlib.py", line 210, in aenter
return await anext(self.gen)
^^^^^^^^^^^^^^^^^^^^^
File "E:\Invoke\6.9.venv\Lib\site-packages\fastapi\routing.py", line 209, in merged_lifespan
async with original_context(app) as maybe_original_state:
^^^^^^^^^^^^^^^^^^^^^
File "%APPDATA%\uv\python\cpython-3.12.9-windows-x86_64-none\Lib\contextlib.py", line 210, in aenter
return await anext(self.gen)
^^^^^^^^^^^^^^^^^^^^^
File "E:\Invoke\6.9.venv\Lib\site-packages\fastapi\routing.py", line 209, in merged_lifespan
async with original_context(app) as maybe_original_state:
^^^^^^^^^^^^^^^^^^^^^
File "%APPDATA%\uv\python\cpython-3.12.9-windows-x86_64-none\Lib\contextlib.py", line 210, in aenter
return await anext(self.gen)
^^^^^^^^^^^^^^^^^^^^^
File "E:\Invoke\6.9.venv\Lib\site-packages\fastapi\routing.py", line 209, in merged_lifespan
async with original_context(app) as maybe_original_state:
^^^^^^^^^^^^^^^^^^^^^
File "%APPDATA%\uv\python\cpython-3.12.9-windows-x86_64-none\Lib\contextlib.py", line 210, in aenter
return await anext(self.gen)
^^^^^^^^^^^^^^^^^^^^^
File "E:\Invoke\6.9.venv\Lib\site-packages\fastapi\routing.py", line 209, in merged_lifespan
async with original_context(app) as maybe_original_state:
^^^^^^^^^^^^^^^^^^^^^
File "%APPDATA%\uv\python\cpython-3.12.9-windows-x86_64-none\Lib\contextlib.py", line 210, in aenter
return await anext(self.gen)
^^^^^^^^^^^^^^^^^^^^^
File "E:\Invoke\6.9.venv\Lib\site-packages\fastapi\routing.py", line 209, in merged_lifespan
async with original_context(app) as maybe_original_state:
^^^^^^^^^^^^^^^^^^^^^
File "%APPDATA%\uv\python\cpython-3.12.9-windows-x86_64-none\Lib\contextlib.py", line 210, in aenter
return await anext(self.gen)
^^^^^^^^^^^^^^^^^^^^^
File "E:\Invoke\6.9.venv\Lib\site-packages\invokeai\app\api_app.py", line 46, in lifespan
ApiDependencies.initialize(config=app_config, event_handler_id=event_handler_id, loop=loop, logger=logger)
File "E:\Invoke\6.9.venv\Lib\site-packages\invokeai\app\api\dependencies.py", line 116, in initialize
ObjectSerializerDisk[torch.Tensor](
File "%APPDATA%\uv\python\cpython-3.12.9-windows-x86_64-none\Lib\typing.py", line 1184, in call
result = self.origin(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\Invoke\6.9.venv\Lib\site-packages\invokeai\app\services\object_serializer\object_serializer_disk.py", line 42, in init
shutil.rmtree(temp_dir)
File "%APPDATA%\uv\python\cpython-3.12.9-windows-x86_64-none\Lib\shutil.py", line 781, in rmtree
return _rmtree_unsafe(path, onexc)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "%APPDATA%\uv\python\cpython-3.12.9-windows-x86_64-none\Lib\shutil.py", line 623, in _rmtree_unsafe
for dirpath, dirnames, filenames in results:
^^^^^^^
File "", line 369, in walk
File "%APPDATA%\uv\python\cpython-3.12.9-windows-x86_64-none\Lib\shutil.py", line 621, in onerror
onexc(os.scandir, err.filename, err)
File "", line 366, in walk
PermissionError: [WinError 5] Acceso denegado: 'E:\Invoke\outputs\tensors\tmpkiboxudo'

[2025-12-24 16:34:31,636]::[uvicorn.error]::ERROR --> Application startup failed. Exiting.
Task was destroyed but it is pending!
task: <Task pending name='Task-3' coro=<FastAPIEventService._dispatch_from_queue() done, defined at E:\Invoke\6.9.venv\Lib\site-packages\invokeai\app\services\events\events_fastapievents.py:33> wait_for= cb=[set.remove()]>
Exception ignored in: <function ObjectSerializerDisk.del at 0x00000235847C3560>
Traceback (most recent call last):
File "E:\Invoke\6.9.venv\Lib\site-packages\invokeai\app\services\object_serializer\object_serializer_disk.py", line 90, in del
self._tempdir_cleanup()
File "E:\Invoke\6.9.venv\Lib\site-packages\invokeai\app\services\object_serializer\object_serializer_disk.py", line 85, in _tempdir_cleanup
if self._tempdir:
^^^^^^^^^^^^^
AttributeError: 'ObjectSerializerDisk' object has no attribute '_tempdir'

What you expected to happen

It should have launch both the 6.9 and 5.12 installations without an issue, it's the same path they each had last time. The relevant issue is with 6.9.

How to reproduce the problem

Start InvokeAI launcher
Select any 6.9 installation
Press "Launch"
Wait somewhere near 7 seconds.

Additional context

No response

Discord username

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions