Microsoft store: Blender cannot be used in terminal #103485
Labels
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
7 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#103485
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Windows 11
Blender Version
Broken: 3.4
Worked: 3.3
Short Description
Ever since blender 3.4 released, I have been unable to use blender in the command line. Running just the command "blender" gives error 0xc0000022 and whenever I try to run any actual command like "blender -b untitled.blend -a" nothing happens. I have never had any issues like this in versions prior to 3.4. I am running the Microsoft store version.
Issue only happens with blender from Microsoft store
Steps to Reproduce
!!For now, workaround is to type "blender-launcher" instead of "blender" to launch blender from command line (but that won't accept any arguments)!!
Added subscriber: @James-Glover
#103486 was marked as duplicate of this issue
Added subscriber: @mano-wii
Changed status from 'Needs Triage' to: 'Needs User Info'
Here are a few things you can try to troubleshoot this problem:
If none of these suggestions help, you may want to try reinstalling Blender.
If you continue to have problems after trying these suggestions, it may be helpful to provide more information about your setup, such as your operating system and any error messages you are receiving.
Not that this bug unfortunately can't be triaged as a complete bug report.
For the development team to be able to help, there needs to be reproducible steps.
And this report does not contain all the requested information, which is required for us to investigate the issue.
A guideline for making a good bug report can be found at https://wiki.blender.org/wiki/Process/Bug_Reports
Another link you may find useful https://docs.blender.org/manual/en/latest/advanced/command_line/launch/index.html
What information seems to be missing here? I explained very clearly. Open the terminal; try run any blender command and it won't work. I am on the latest version of blender; I am on the latest version of windows; blender works fine when ran from the shortcut and I only have one version of Blender installed. I have obviously already tried to reinstall blender but the issue still persists and many others are also having it in this version. I am running Windows 11 and as I said before, I am getting the error 0xc0000022 when trying to use blender in the command line.
When creating a bug report, you see it clearly on the bug report page the instructions. Even so, this report is missing:
Saying that the command "blender" or "blender -b untitled.blend -a" doesn't work isn't exactly steps to reproduce the bug. It is up to the bug reporter to identify what really causes the bug and explain how to get to it.
Error 0xc0000022 is a Windows error code that indicates a problem with permissions. It usually occurs when a program or process tries to access a resource or perform an action that it does not have permission to access. This error can be caused by a variety of factors, including incorrect file or folder permissions, incorrect registry permissions, or problems with the user account on Windows.
This isn't really a bug in Blender, it can happen to any application.
And this tracker is a channel for reporting bugs in the Blender application itself (not windows).
As I said previously, Blender version 3.3 and any version prior works absolutely flawlessly in the command line.
Since this problem is a technical issue involving permissions in windows, and we are not able to redo it, it's not really seem something to be handled in this tracker.
I suggest you try other channels: https://wiki.blender.org/wiki/Communication/Contact#Contact_Developers
While we appreciate the effort that goes into making bug reports, this tracker is filled daily with many reports, and we aim to keep it concise with what can be reproduced and can be fixed by the developers on the Blender side.
And this problem doesn't really seem to be something on the Blender side.
If it is not on "the blender side", why does it work perfectly in every other version of blender except for those after 3.4?
Added subscriber: @Harley
@James-Glover
Just give us enough details that we can recreate your issue. If I "just the command "blender" I do not get any such error. If I were to "try to run any actual command like "blender -b untitled.blend -a" I would expect nothing to happen unless the untitled.blend and the blender executable were in the same directory.
As mentioned, please provide "exact steps to reproduce the problem".
As mentioned, I have already provided "exact steps to reproduce the problem." but here they are again.
Assuming that blender is already in your system path, which it should be by default,
open a terminal in absolutely any folder;
run absolutely any blender command;
for example, run "blender -E help"
and you will have an error pop up with error code 0xc0000022
It appears you are not having the error though. Are you on the same Microsoft store blender 3.4 as I am?
None of your instructions have allowed anyone to "reproduce the problem", which is a requirement for fixing anything.
Works without error
Have you tried this using a version of Blender that is not from the Microsoft store? https://www.blender.org/download/
Have your tried running your terminal as Administrator? I can't tell which terminal you are running since you have not yet told us what version of the OS you are running.
As I said before, I am on windows 11. I have tried running the terminal as an administrator. I have only been using Microsoft store versions of blender.
Added subscriber: @PratikPB2123
Hi, I tried to repro this in latest master but did not get that error.
Enabled administrator permission for blender executable, also checked with other file permissions (hide, read-only, etc.) but could not reproduce the error.
Probably specific to Microsoft store version.
@James-Glover, could you verify the problem in blender build from the website?: https://www.blender.org/download/
The issue only happens in the Microsoft store version and I have found lots of of other people online who are having this issue in the Microsoft store version 3.4 and higher.
Added subscribers: @lichtwerk, @ThomasDinges
@ThomasDinges / @lichtwerk , can you check?
Changed status from 'Needs User Info' to: 'Needs Triage'
Not on Windows atm, but for 3.4 we changed the Blender store to use blender-launcher.exe instead of blender.exe per default, that might be related.
@James-Glover Does it work when you create a path variable for specifically the blender.exe?
No.
What kind of Terminal are you using? The older cmd or the newer Windows terminal?
tried both
Another thing I thought might be worth mentioning is that windows terminal no longer shows when you open blender and when toggling system console, it shows the old cmd prompt rather than windows terminal.
Added subscriber: @LazyDodo
You can't get to the executable, even if you know exactly where it sits, the OS won't allow you to "just launch it" it's that sandboxed....
what it does to allow you to run an executable that ship on the store is
%userprofile%/appdata/Local/Microsoft/WindowsApps/
%userprofile%/appdata/Local/Microsoft/WindowsApps/
Now on a clean win11 install, and a fresh blender install from the store i only get a shortcut to
blender-launcher.exe
but notblender.exe
What i suspect is happening for @James-Glover is, his installation may have gotten wonky during an upgrade
@James-Glover can you test the following things:
%userprofile%/appdata/Local/Microsoft/WindowsApps/
is itblender.exe.lnk
blender-launcher.lnk
blender.exe.lnk
andblender-launcher.lnk
When you uninstall blender can you validate all shortcuts are removed?
if you reinstall blender, can you validate just
blender-launcher.exe
returns?I DID create a path to blender.exe in "C:\Program Files\WindowsApps\BlenderFoundation.Blender_3.4.1.0_x64__ppwjx1n5r4v9t\Blender".
The OS DID allow me to "just launch it".
I doubt my installation has "gotten wonky during an upgrade". I have updated several times since it worked and I have seen many other users facing this issue.
In %userprofile%/appdata/Local/Microsoft/WindowsApps/ I have just blender-launcher.exe
When I uninstall, I can validate that blender-launcher.exe is no longer present in %userprofile%/appdata/Local/Microsoft/WindowsApps/
After I reinstall blender, I can indeed confirm that just blender-launcher.exe returns to %userprofile%/appdata/Local/Microsoft/WindowsApps/
and running any blender related commands in windows terminal still does not work at all.
if you take
C:\Program Files\WindowsApps\BlenderFoundation.Blender_3.4.1.0_x64__ppwjx1n5r4v9t\Blender
out of your path, and start blender usingblender-launcher
from the command line, does it work?It still does not work.
Hmmm, can you check what the output of
where blender-launcher
is?How would I go about doing that?
just type it on the command line
Blender opens when I type blender-launcher
unrelated: HA! looks like a C64, that's AWESOME
related: you forgot
where
the full command iswhere blender-launcher
C:\Users\Vader\AppData\Local\Microsoft\WindowsApps\blender-launcher.exe
Commodore 64 cool
when you run
C:\Users\Vader\AppData\Local\Microsoft\WindowsApps\blender-launcher.exe
directly is it working?wait, hold up, you said
It still does not work.
when i asked to run blender-launcher, but the screenshot showed it did?yes it works when I run C:\Users\Vader\AppData\Local\Microsoft\WindowsApps\blender-launcher.exe.
Whenever I try to run any command other than just blender-launcher, it fails.
Before 3.4, I could run commands like "blender -b blendfile.blend -a" and render them.
That's fine, i'm just establishing a baseline here, with you helping the diagnostics, i can confidently say the things at play here are
WindowsApps
folder directly, whoever suggested adding it to your path was wrong, this is a very bad ideablender.exe
as the startup executable and there was aC:\Users\Vader\AppData\Local\Microsoft\WindowsApps\blender.exe.lnk
shortcut which allowed you to start blender from the command lineC:\Users\Vader\AppData\Local\Microsoft\WindowsApps\blender-launcher.exe.lnk
but not ablender.exe.lnk
blender-launcher
but notblender
short term work around for @James-Glover would be just using the launcher to render from the command line, as long as you supply it with a
-b
it should stall for the render to complete.longer term fix would be the owner of the MS store deployment will need to make some changes to also mark the
blender.exe
as available to end users, i have to admit, i have no idea who this currently is, @ThomasDinges can you assign this ticket to the appropriate person?The command would be "blender-launcher -b file.blend -a" Right?
That isn't working.
Am I doing something wrong?
launcher doesn't use the console so there's no output, but the work should still be done
The thing is nothing gets done. CPU and GPU usage stays low and my stuff doesn't get rendered.
Also, you keep saying blender-launcher.exe.lnk but I have only ever had blender-launcher.exe
my bad, they are actually special kind of NTFS Reparse Points i used shortcut/.lnk as it is a concept more people would understand.
Oh. Right. So, back to the original problem. What's going on?
blender is probably unhappy about "something" but given you're not getting any output from launcher, hard to say what it is, you could try starting without the
-b
and see if the UI gives any hints, but i admit, we're kinda shooting in the dark hereblender-launcher video.blend -a is still returning absolutely nothing:/
Do you get this issue when you install from the microsoft store?
that should still start the UI no? it did when you started it without parameters?
The UI comes up and everything appears fine when I just do "blender-launcher"
But, "blender-launcher video.blend -a" does absolutely nothing; UI does not start up.
"blender-launcher -E help" also starts the UI just like "blender-launcher".
Are you able to try this with microsoft store?
Well then you're out of luck until we expose the original blender executable, (or you switch to the installer off our website, or the stream version, or the .zip off our website)
Any chances of you using the blender.exe instead of blender-launcher.exe again for windows store version since blender-launcher isn't working?
Blender-launcher commands are now working and I can render stuff with it. But, it still doesn't show any output. I assume it's not supposed to do that. Right?
i told you this twice already, please be more mindful with my time
I told you this already. It wasn't working yesterday.
I am aware that the launcher doesn't give an output but is it supposed to?
If it isn't, then command line rendering is much worse than it was before and I would rather have blender use blender.exe than the launcher if that is the case.
launcher does not give output, hence this is a work around for you until we can make blender.exe available again
Ok. Thanks!
Any idea how I could render one thing after another.
Before, I could just go "blender -b thing.blend -a && blender -b anotherthing.blend -a" but now since blender-launcher does it differently, the same command (with blender-launcher instead of blender) renders both of them at the same time rather than one after the other.
Removed subscriber: @LazyDodo
Just do so using a version of Blender not from the Microsoft store. A regular version will works as you are used to, while waiting for the store version to be fixed.
Ok. I will just wait for the store version to be fixed. Thanks for your help!
Assigning this to self, will investigate this but I don't consider this high priority. If you need access to blender.exe now, you are welcome to download Blender from blender.org
I don't mind waiting until blender 3.5 or something as long as I know it's on the radar, I'm fine.
Blender cannot be used in terminalto Microsoft store: Blender cannot be used in terminalChanged status from 'Needs Triage' to: 'Confirmed'