Importing keyconfig mess up blender configuration SHIFT + A opens ADD menu and at the same time popups new external 3D window #52436

Closed
opened 2017-08-18 11:04:49 +02:00 by Palo Piktor · 12 comments

System Information
W7 Pro SP1
W10 Enterprise

Blender Version
Broken: (2.78.5 248bba81e7)
Broken: (2.79 5e9132b)

Short description of error
I exported fully functional key configuration so i can use them at work (it was working). When import it, blender starts to behave strangely. (see steps). I tried it also at home on W7 SP1 and it is doing the same so it is not OS related.

Exact steps for others to reproduce the error

  1. Export key config to external file
  2. Import key config
  3. In 3d view open ADD menu with shift+A release A and keep holding SHIFT. Blender creates new external 3D window. maya.py

Uploaded my key config.

**System Information** W7 Pro SP1 W10 Enterprise **Blender Version** Broken: (2.78.5 248bba81e7a) Broken: (2.79 5e9132b) **Short description of error** I exported fully functional key configuration so i can use them at work (it was working). When import it, blender starts to behave strangely. (see steps). I tried it also at home on W7 SP1 and it is doing the same so it is not OS related. **Exact steps for others to reproduce the error** 1. Export key config to external file 2. Import key config 3. In 3d view open ADD menu with shift+A release A and keep holding SHIFT. Blender creates new external 3D window. [maya.py](https://archive.blender.org/developer/F717162/maya.py) Uploaded my key config.
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @PaloPiktor

Added subscriber: @PaloPiktor

Added subscribers: @ideasman42, @mont29

Added subscribers: @ideasman42, @mont29
Campbell Barton was assigned by Bastien Montagne 2017-08-26 15:12:28 +02:00

Your exported keymap has weird entries like those:

kmi = km.keymap_items.new('screen.area_split', 'NONE', 'ANY')
kmi = km.keymap_items.new('screen.area_join', 'NONE', 'ANY')
kmi = km.keymap_items.new('screen.area_dupli', 'NONE', 'ANY', shift=True)
kmi = km.keymap_items.new('screen.area_swap', 'NONE', 'ANY', ctrl=True)
kmi = km.keymap_items.new('screen.region_scale', 'NONE', 'ANY')
kmi = km.keymap_items.new('screen.screen_full_area', 'NONE', 'ANY')
kmi_props_setattr(kmi.properties, 'use_hide_panels', True)

For some reasons, this is triggered with your custom config, while it's not with default one (where those also exist, they are defined in Blender C code itself for default keymap).

@ideasman42 will need your lights here, what in hell are those weird keymaps? And how are they supposed to work?

Your exported keymap has weird entries like those: ``` kmi = km.keymap_items.new('screen.area_split', 'NONE', 'ANY') kmi = km.keymap_items.new('screen.area_join', 'NONE', 'ANY') kmi = km.keymap_items.new('screen.area_dupli', 'NONE', 'ANY', shift=True) kmi = km.keymap_items.new('screen.area_swap', 'NONE', 'ANY', ctrl=True) kmi = km.keymap_items.new('screen.region_scale', 'NONE', 'ANY') kmi = km.keymap_items.new('screen.screen_full_area', 'NONE', 'ANY') kmi_props_setattr(kmi.properties, 'use_hide_panels', True) ``` For some reasons, this is triggered with your custom config, while it's not with default one (where those also exist, they are defined in Blender C code itself for default keymap). @ideasman42 will need your lights here, what in hell are those weird keymaps? And how are they supposed to work?
Author

I know that export is weird. Thats why i reported is as a bug. My question is why ? Mentioned key config worked without a problem until i exported it.
Just tried new 2.79 rc2 7b397cd and it works. RC2 has this problem solved.

I know that export is weird. Thats why i reported is as a bug. My question is why ? Mentioned key config worked without a problem until i exported it. Just tried new 2.79 rc2 7b397cd and it works. RC2 has this problem solved.
Author

Sorry to say that, i was wrong. It is not solved in RC2. I did not use export function.
Did some more testing and i think it is Export related bug. If i just copy my functioning custom config from blender//scripts/presets/keyconfig somewhere else and than import, it just works fine.
But
When i use export function on the same file and import it than it makes that mess.
Here is the same file in two versions as i mentioned. One exported and one copied.

exported.py

copied.py

Sorry to say that, i was wrong. It is not solved in RC2. I did not use export function. Did some more testing and i think it is Export related bug. If i just copy my functioning custom config from blender//scripts/presets/keyconfig somewhere else and than import, it just works fine. But When i use export function on the same file and import it than it makes that mess. Here is the same file in two versions as i mentioned. One exported and one copied. [exported.py](https://archive.blender.org/developer/F772368/exported.py) [copied.py](https://archive.blender.org/developer/F772370/copied.py)
Campbell Barton was unassigned by Dalai Felinto 2019-12-23 16:36:34 +01:00

Added subscriber: @dr.sybren

Added subscriber: @dr.sybren

Changed status from 'Confirmed' to: 'Needs User Info'

Changed status from 'Confirmed' to: 'Needs User Info'

I can't reproduce this on current Blender (2.82 alpha @ 5dc1183580).

@PaloPiktor can you write down steps that allow us to reproduce the issue with a recent Blender build (https://builder.blender.org) with the factory default settings?

I can't reproduce this on current Blender (2.82 alpha @ 5dc1183580e932870064b44246e8fb750a8d806e). @PaloPiktor can you write down steps that allow us to reproduce the issue with a recent Blender build (https://builder.blender.org) with the factory default settings?
Member

Added subscriber: @JacquesLucke

Added subscriber: @JacquesLucke
Member

Changed status from 'Needs User Info' to: 'Archived'

Changed status from 'Needs User Info' to: 'Archived'
Jacques Lucke self-assigned this 2020-02-12 11:43:26 +01:00
Member

Will close this for now. @PaloPiktor, if you are still able to reproduce the issue in the latest build, you can reopen this report. Make sure to provide the additional information @dr.sybren asked for in the task description. Thanks.

Will close this for now. @PaloPiktor, if you are still able to reproduce the issue in the latest build, you can reopen this report. Make sure to provide the additional information @dr.sybren asked for in the task description. Thanks.
Sign in to join this conversation.
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
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#52436
No description provided.