Old keymap causes error on startup #61497

Closed
opened 2019-02-13 07:19:59 +01:00 by Ed Blender · 9 comments

System Information
Operating system: Win 10 64
Graphics card:

Blender Version
Broken: 2.80, ba6cf3cdb6, blender 2.7, 2019-02-13
(example: 2.79b release)
(example: 2.80, edbf15d3c0, blender2.8, 2018-11-28, as found on the splash screen)
Worked: (optional): not the last 3 daily builds (last time I tried it worked, but was a long time ago, using build 58dc114)

Short description of error
Can't select with left or right mouse, can't pan/scroll/zoom in 3D window. Left/middle/right mouse recognised in keymap if I try to reassign to something. Tried with Marble Mouse and Wacom Bamboo - same issue with both

Lots of errors in console (attached).

Exact steps for others to reproduce the error
Based on the default startup with nothing changed

console.png

**System Information** Operating system: Win 10 64 Graphics card: **Blender Version** Broken: 2.80, ba6cf3cdb649, blender 2.7, 2019-02-13 (example: 2.79b release) (example: 2.80, edbf15d3c044, blender2.8, 2018-11-28, as found on the splash screen) Worked: (optional): not the last 3 daily builds (last time I tried it worked, but was a long time ago, using build 58dc114) **Short description of error** Can't select with left or right mouse, can't pan/scroll/zoom in 3D window. Left/middle/right mouse recognised in keymap if I try to reassign to something. Tried with Marble Mouse and Wacom Bamboo - same issue with both Lots of errors in console (attached). **Exact steps for others to reproduce the error** Based on the default startup with nothing changed ![console.png](https://archive.blender.org/developer/F6596815/console.png)
Author

Added subscriber: @edna-2

Added subscriber: @edna-2

Added subscriber: @ideasman42

Added subscriber: @ideasman42

Could you upload keyconfig.py which causes the error? This isn't part of Blender.

Making my own from 2.79 branch doesn't cause this error.

Could you upload `keyconfig.py` which causes the error? This isn't part of Blender. Making my own from 2.79 branch doesn't cause this error.
Campbell Barton changed title from Can't select objects, or pan/zoom/scroll 3D view to Old keymap causes error on startup 2019-02-13 07:33:29 +01:00

Added subscriber: @brecht

Added subscriber: @brecht

@ideasman42, I think this error is expected, ACTIONMOUSE no longer exists.

We could automatically version patch preset .py. But importing a 2.7 keymap is really not going to work well at all due to the many changes, and we could just not support it.

@ideasman42, I think this error is expected, `ACTIONMOUSE` no longer exists. We could automatically version patch preset .py. But importing a 2.7 keymap is really not going to work well at all due to the many changes, and we could just not support it.
Author

I've attached it here. It was sitting in C:\Users[username]\AppData\Roaming\Blender Foundation\Blender\2.80\scripts\presets\keyconfig. Presumably installed by some 2.79 script/addon.

I've just downloaded the latest build, deleted the AppData profile folder, then the splash screen options help avoid this problem out by encouraging me to save new settings instead of importing from 2.79.KeyConfig.py

It might be worth considering a hint of some sort that makes it clear how to delete your profile. File / Load Factory Settings doesn't delete the profile (perhaps it should), so it isn't obvious that there is also a folder in the AppData that would be worth deleting if the user encounters problems. Maybe a "start with new profile" option would be worth considering in the File menu or the splash screen (the one you get after a profile already exists, not the initial one).

Anyway, thanks a lot for jumping on this so quickly. You guys do an amazing job.

I've attached it here. It was sitting in C:\Users\[username]\AppData\Roaming\Blender Foundation\Blender\2.80\scripts\presets\keyconfig. Presumably installed by some 2.79 script/addon. I've just downloaded the latest build, deleted the AppData profile folder, then the splash screen options help avoid this problem out by encouraging me to save new settings instead of importing from 2.79.[KeyConfig.py](https://archive.blender.org/developer/F6600101/KeyConfig.py) It might be worth considering a hint of some sort that makes it clear how to delete your profile. File / Load Factory Settings doesn't delete the profile (perhaps it should), so it isn't obvious that there is also a folder in the AppData that would be worth deleting if the user encounters problems. Maybe a "start with new profile" option would be worth considering in the File menu or the splash screen (the one you get after a profile already exists, not the initial one). Anyway, thanks a lot for jumping on this so quickly. You guys do an amazing job.

@brecht, yep, we've talked about this before - that loading old keymaps isn't expected to work.

We could detect certain kinds of errors and fall back the the default keymap.

We could even go as far as to check if the keymap defines keyconfig_data before loading it, although this might be limiting for people creating their own keymaps.

@brecht, yep, we've talked about this before - that loading old keymaps isn't expected to work. We could detect certain kinds of errors and fall back the the default keymap. We could even go as far as to check if the keymap defines `keyconfig_data` before loading it, although this might be limiting for people creating their own keymaps.

This issue was referenced by 6c2a0049e4

This issue was referenced by 6c2a0049e4f37ede5dae6ae771dfeb2bf8050ee4

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
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#61497
No description provided.