BlenderKit causes the keyboard to be locked without any reason #73507
Labels
No Label
Interest
Animation & Rigging
Interest
Blender Cloud
Interest
Collada
Interest
Core
Interest
Documentation
Interest
Eevee & Viewport
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
Import and Export
Interest
Modeling
Interest
Modifiers
Interest
Nodes & Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds, Tests & Devices
Interest
Python API
Interest
Rendering & Cycles
Interest
Sculpt, Paint & Texture
Interest
Translations
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Meta
Good First Issue
Meta
Papercut
Module
Add-ons (BF-Blender)
Module
Add-ons (Community)
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
16 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#73507
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
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
Operating system: Fedora 31
Graphics card: NVidia 1060 Ti, and 2 other computer (laptops) with NEO
Blender Version
Broken: 2.82 c7c8ee61686 (HEAD -> blender-v2.82-release, origin/blender-v2.82-release) HEAD@{0}: pull --rebase: Fast-forward (version from blender.org is broken too)
Short description of error
I start Blender and work for a while, I cannot use my keyboard. It's like "ALT" key is locked.
I wondered if that's my laptop, so I tried on my desktop computer, and on another laptop. The problem remains the same.
Exact steps for others to reproduce the error
I use shift key to slide the view, then I press some keys... and when I have pressed one time ";" (or SHIFT ;), so the keyboard seems to be locked in Blender. I cannot use any key, TAB, ALT, SHIFT, and any other letter key is deactivated.
e.g. If I want to press a value in a node parameter, or in "item" tab, the keyboard is still locked.
I'm using AZERTY keyboard (french), no translation on UI.
Note that ALT, SHIFT and others keys are working in all other software (terminal, Firefox, ...) - If I close blender and then I restart it, I can use my keyboard for a while, until the problem reappears.
I also checked if AccessX keys option is activated, it's not.
The problem appeared today.
Note, I really tried on several computers, all of them are using Fedora 31
There is no error in the terminal.
Thanks,
blender/blender#74570 was marked as duplicate of this issue
blender/blender#74532 was marked as duplicate of this issue
blender/blender#74164 was marked as duplicate of this issue
blender/blender#74035 was marked as duplicate of this issue
Added subscriber: @Metal3d
Added subscriber: @ideasman42
Changed status from 'Needs Triage' to: 'Needs User Info'
Pressing Alt with no other keys prompts in the status bar for a second key to be pressed. If you didn't want this you can press Alt again or Escape.
Is this what you're referring to?
I did a git bisect. It seems that the problem started from that commit: aa123555d7a75c784f479b9572145f45862bcb2b
I'm not sure, because the lock is a bit "random" and it is possible that other "good" commits are actually "bad" (the bug didn't happend but maybe I had luck...)
Actually, that couldn't be that commit, 10 jan is too old... But in case of...
Is it possible that these changes can inpact the keyboard in UI ? It seems that's not corresponding.
No, it doesn't do anything. the keyboard is really not responding.
This comment was removed by @Metal3d
OK, I found what's wrong.
It seems that Python API changed earlier and it breaks some addons, here, that's BlenderKit that fails. Earlier, that was CrowdRender.
Actually, I don't need to press some key, I only have to wait a bit to have the problem. When the keyboard is locked, I go in terminal where I launched Blender and press CTRL+C. Then:
And... the keyboard is unlocked.
So, it's possible that the bug is from BlenderKit addon here.
EDIT I confirm, deactivating BlenderKit stop the problem. An error appears when I deactivate that addon:
But after re-opening Blender, no keyboard lock
Keyboard locked without any reasonto BlenderKit causes the keyboard to be locked without any reason@Metal3d This looks to be caused by blenderkit, please provide steps to redo the error.
Note that Blenderkit adds a timer that runs every second, ideally this would only happen when the user is searching.
It seems that the problem is not BlenderKit but Python API itself.
I deactivated the module and I now have the same behavior with some others addons.
Have to press CTRL+C several times:
I also see that:
And I cannot use the keyboard, the mouse is the only one input I can use...
Note that the problem disappeared until last compilation made a couple of minutes ago, commit 93a46f7d089 - the problem is back
It seems to be random, but CTRL+C always stops on
@persistent
decorator.Added subscriber: @ermo
Just a quick note that the errors above referencing two out-of-place pdt .py files should be fixed as of the commits referenced in #73562 (both on blender-v2.82-release and master).
I can confirm something similar happened to me too.
I noticed this problem several times and tried to find the cause. However, there are no while loops or something similar in the mentioned parts of code, and when Blender freezes it never gives a location.
Also, this didn't happen for weeks and I really can't reproduce the error. If somebody who can reproduce this would be able to send some traceback it would help.
Added subscriber: @ObozYury
Added subscriber: @HidekiSaito
I have been observing this problem, since 2.82 release. Haven't had chance to get the dump, but disabling BlenderKit did seem resolve the issue.
In attempt to get more pin-poinit pattern of the issue (e.g. try to partially enable/disable feature within the addon) however, I still haven't seen this happening in the control state. (e.g. back to the previous state -- all the add-on option enabled.) So the order Add-ons loaded may matter as well.
Here are some patterns I've observed from when this was happening.
When this happens middle mouse button wouldn't pan the view any more for while (it'll become front/back movement), I would regain the panning functionality after a while and then I lose all the keyboard functionality. (none of hotkeys, text input, would work). Keyboard outage may propagate to outside of Blender for about a half a minute or so, but this could be coming from the heavy processor usage.
I will keep close eyes on the issue to see if I can get additional info. (If there are any procedure that I can try that would be useful for diagnosing the issue, please let me know.)
I've gotten this to reproduce reliably in my environment, I've used this file .
Moving the objects using 'g' keys randomly would cause this problem to happen. With BlenderKit Addon disabled, this did not happen.
Here's my stack trace:
Added subscriber: @EricButts
Operating System: Linux POP OS (Ubuntu 19.10)
Graphics Card: Geforce RTX 2080 Super
Blender 2.82 branch: master, commit date: 2020-02-12 16:20, hash: 77d23b0bd76f
Just confirming this bug. Keyboard locks out randomly. Disabled the Blenderkit Addon. Seems to have resolved the issue.
Also to add, this looks like only affecting Linux environment. My Windows installation seems to be not exhibiting this problem.
Will try to reproduce again on Linux, On Mac and Win I had no success reproducing. Thanks for all the input.
Added subscribers: @Vis, @ankitm
BlenderKit should be updated to use a sub-process, as background threads are not supported.
See: https://docs.blender.org/api/master/info_gotcha.html#strange-errors-using-threading-module
Added subscriber: @Calandro
Same here. Ubuntu 19.04 - GeForce GTX 1050 Ti - Blender 2.82
Not sure what is the root of the problem, but it only appeared after I turn the add-on on on preferences and started to have the same behavior on Ivy generator randomly. I cannot say if it affects other add-ons.
In my attempts to fix the problem when I was not sure what the cause was, since terminal gave no clue, i tried to purge Blender packages from the system and had the annoying surprise that I am not able because the terminal says it was not able to find "blenderkit_data" package.
Added subscriber: @stnhristov
I tried to find a workaround to deal with the problem and what i did was to download Blender 2.81 and work with blenderkit and ivy generator only there and after import the work in Blender 2.82, if necessary.
I have been working with both add-ons for a considerable amount of time without any problem with mouse, or keyboard on 2.81. On Blender 2.82 the problem appeared immediately, just because the tab of BlenderKit was open in the startup file.
Just turn off the add-on and problem solved.
We tried to reproduce on Linux several times. What we now suspect is that this might be caused by a combination of add-ons. We tried with vanilla blender 2.82 on Ubuntu 19.10. with no success reproducing the bug.
What might help is - let us know your combination of add-ons.
Record a video of the problem.
Attached is the recording of my screen.
All I have been doing was using "g" key to grab and then move around.
As demonstrated, it stops accepting keyboard input -- in this video I've tried 'g' key, and also 'a' not working.
Mouse button clicks still works as demonstrated.
Hope this helps...
I guess it would have been useful if I've actually attached the file :-)
blender-blendkit-problems.webm
To provide some contrast, here's the session without BlendKit enabled. As you can see the same problem is not happening despite with the similar actions.
blender-without-blendkit.webm
Added subscriber: @Anyeos
Same here. My keyboard stop responding after using BlenderKit for a moment. Mouse works as expected. And keyboard is working in other apps correctly.
Edit:
It is happenning without BlenderKit activated. It is happening a few seconds later I open blender 2.82.
It is frustrating I cannot use blender 2.82 at all. I need to return to 2.81.
Operating System: Ubuntu 19.10
Blender 2.82 release compiled from source.
Added subscriber: @lsankey
I've had the same problem since installing Blender 2.82 and Blenderkit. i open Blender and after a few seconds to several minutes the keyboard stops working in Blender. After reading this thread I disabled Blenderkit and the problem is gone. I have no problem entering text. Could be a combination of addons, but have no idea what the other problem addon could be.
OS: Ubuntu 19.10
Blender 2.82 installed using Ubuntu Software
I disabled all but the following addons . I have no problems entering text when Blenderkit is disabled. When I reenable Blenderkit and move an object, within a minute the keyboard doesn't work.
Changed status from 'Needs User Info' to: 'Needs Developer To Reproduce'
Added subscriber: @Ape_in_outer_space
I can reliably reproduce this even with NO addons enabled other than blenderkit, not even cycles.
I'm using Fedora 31, and Blender 8.2.
I simply open blender, and search for something that finds a large number of results in blenderkit. Then press any keyboard key while it's busy searching and doing it's thing.
Eg. search for "stone", and spam the 'a' key. They keyboard will then stop functioning in Blender until you exit and restart.
It usually doesn't happen if it's only a short search that doesn't return many results, such as "stuff". Only if the search finds a larger number of results such as 'things".
I've also reliably reproduced this bug in Solus using the same method.
Added subscriber: @MintyMike
Added subscribers: @joel_eapen, @mano-wii
While I didn't expect any changes as changelog didn't specify anything related to this area, but I observed this is happening on 2.82a as well.
I don't know if someone took a look but it seems that
bpy.app.handlers.persistent
can be the source of the problem. Any time I have that problem, and when I press CTRL+C in console, this decorator is displayed in error tracks.This issue was referenced by
bc464cfc97
Changed status from 'Needs Developer To Reproduce' to: 'Resolved'
Changed status from 'Resolved' to: 'Confirmed'
Just tried a fix but obviously it only makes the problem happen less often. This needs deeper investigation.
What I found so far:
@VilemDuha did you look into using an external process which the timer checks?
@ideasman42 thanks for the links. We are actually using external process for some parts of the addon (actually a second blender instance for thumbnails, upload e.t.c.) and threads are used for softer stuff.
I also forgot to mention - I tested against 2.81 and the same addon code from 2.82 runs perfectly fine, I wasn't able to reproduce the problem. I'd like to come closer to which commit might have caused the change, will try to test more builds between the releases.
Just tried to build latest revision (505a19ed75b2829a561475ab4acc075b715a8499 - 4.april 2020) on Ubuntu 19.10 (with automatic dependency installation, with make lite command) and the issue wasn't present. This is getting crazy hard to debug for me as Python developer.
I finally found the reason for this.
It's caused by reading the clipboard, I will commit fix today.
Changed status from 'Confirmed' to: 'Resolved'
Fixed with commit
4fe390b6ba
Added subscriber: @bonjasky
Have the same Problem with Blender 2.82a/Ubuntu 18.04
You guys doing gods work. Thanks so much:)
I have replaced search.py in my installation and it seems have resolved the issue.
Added subscriber: @TheHappy1
Hello everyone, I'm not a programmer and I'm not ure if this a good plae to post this, but I'm kind of clueless... I got a strange experience today. I was building an animated title (snow) in OpenShot 2.5.1 that uses blender to build them. I have Blender 2.82a installed. So there it start compiling the animation frame by frame. At one time, it froze and I had to reboot. Since then, the keyboard is not working anymore. I tried so many tutorials about keyboards, none had done anything. Then, searching I got here with people reporting bugs about the keyboard and thought someone might have seen my problem before.
I'm using Windows 10. USB keyboard works, but integrated keyboard is not working.
Added subscriber: @uzouzouzopuzo