Selection in the 3d view is broken in build from Xcode 13 #91680
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
14 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#91680
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
Operating system: macOS-11.6-x86_64-i386-64bit 64 Bits
Graphics card: AMD Radeon Pro 5500M OpenGL Engine ATI Technologies Inc. 4.1 ATI-4.6.20
Blender Version
Broken: version: 3.0.0 Alpha, branch: master, commit date: 2021-09-24 06:41, hash:
fc7beac8d6
Worked: (newest version of Blender that worked as expected)
Short description of error
Using the default keymap, clicking to select items in the 3d view doesn't work
Exact steps for others to reproduce the error
Box select still works, but single clicking is broken. Bug also applies to the IC keymap.
Added subscriber: @WilliamReynish
#95464 was marked as duplicate of this issue
#94319 was marked as duplicate of this issue
#93041 was marked as duplicate of this issue
#91772 was marked as duplicate of this issue
Seems likely this could have been causes by
bffda4185d
ord431b91995
, or another recent keymap commit?Added subscriber: @PhlixFer
I have a very similar problem, though I still can select objects; it's just that the selection "hitbox" is offset from the actual rendered mesh. Strangely, selecting in edit mode still works as expected...
Blender version: 3.0.0 Alpha, branch: master, commit date: 2021-09-24 19:18, hash:
a3027fb094
Screen Recording 2021-09-25 at 08.48.48.mov
Added subscriber: @michael64
This bug is likely caused by the architecture independent stage -O2 optimization of the clang version 13 compiler that ships with Xcode 13.
I compiled Blender 2.93.0 with Xcode 13 and the same selection bug appears
so it's not caused by recent Blender source changes.
I compiled the most recent version with Xcode 13 for x86_64 and ran it via Rosatta and the selection bug appears as well so it is not an arm64 architecture issue.
Changing the optimization of only CMAKE_C_FLAGS_RELEASE from -O2 to -O1
in build_files/cmake/platform/platform_apple.cmake and recompiling makes the bug go away.
Bisecting between the optimized and unoptimized binary object files of the Blender I could locate the miscompiled file as source/blender/editors/space_view3d/view3d_view.c.
Leaving CMAKE_C_FLAGS_RELEASE as is at -O2 and adding
"#pragma clang optimize off" allowed narrowing down the miscompiled function to
be view3d_winmatrix_set in view3d_view.c.
This change works for me if you'd like to try:
I am not advocating to commit this patch to fix a compiler bug.
Compiling with Xcode 12.5.1 does not produce this error.
If somebody would like to report this issue with the clang project or file
a radar please do so.
The source of this bug could be found by compiling the Open Source
equivalent of clang-1205.0.22.11 from source then compiling
Blender with this clang and saving
build_darwin_release/source/blender/editors/space_view3d/CMakeFiles/bf_editor_space_view3d.dir/view3d_view.c.o
Compiling clang-1300.0.29.3 from source should result
in the miscompiled view3d_view.c.o.
Bisecting the clang sources and looking for the version
that produces the defective view3d_view.c.o should
give us the clang revision where that introduces the error.
If somebody wants to pinpoint the error in clang please do.
Maybe it is even fixed in the most recent clang development version.
If I am bored next Saturday maybe I'll do this myself.
Added subscribers: @ankitm, @mano-wii
From the description this appears to be a serious regression.
So I'm setting it as high priority even though I can't replicate the problem on an
Apple M1
withmacOS-11.5.2
. (At least with a build from the buildbot).@ankitm, could you confirm this?
@michael64 nice investigation,
if the problem is confirmed on other hardware and new clang development version doesn't solve it, i feel that we may have to apply the workaround for Blender 3.0.
Cannot redo on downloaded blender
c53ffda8a4
Intel i5, Intel HD 6000, macOS 10.14, nor on macOS 11.4, Radeon Pro 5300M.Added subscribers: @Robw, @PratikPB2123
Nice find. Indeed, builds from the buildbot appear to work correctly, maybe they are not using Xcode 13?
Selection in the 3d view is brokento Selection in the 3d view is broken in build from Xcode 13The buildbot for darwin uses Xcode 12.4 for x86_64 and arm64 at the moment which luckily does not produce the error for the daily build.
One can find the exact compiler and Xcode version in the generated stdout file of the compile-code stage (nr. 6).
The files from a daily build are https://builder.blender.org/admin/#/builders/31/builds/1858/steps/6/logs/stdio (arm64)
and https://builder.blender.org/admin/#/builders/9/builds/1892/steps/6/logs/stdio (x86_64)
A search for "compiler identification" currently yields:
A search for "Detected" yields the following:
I compiled with clang+llvm-13.0.0-rc3-x86_64-apple-darwin.tar.xz from LLVM project releases + Xcode 11.3.1 and don't see an error
Changed status from 'Needs Triage' to: 'Confirmed'
Added subscriber: @ponderz
Confirming due to multiple reports.
Not a high priority IMO since an Xcode minor version upgrade might fix the issue & updating buildbot to Xcode 13 is not imminent. CC @ponderz
For a workaround, download a different Xcode from https://developer.apple.com/download/all/
Can confirm, compiling with Xcode 12.5.1 does indeed remove the object selection issue in the 3d view
Added subscriber: @adamhenderson
Added subscriber: @CharlesWardlaw
I was pointed at this ticket by @ankitm in the chat, and just wanted to confirm that I've hit the same issue (XCode 13.1). Going to try reverting.
Added subscriber: @Nurb2Kea
Using terminal with this https://wiki.blender.org/wiki/Building_Blender/Mac guide, always ends up without the ability to select.
I can't select the objet left, right, top, aside and direct. BUT I can select it when selecting it underneath itself.
Feels like that everything is abobe 0 can't be selected and vice versa.
macos 12.0.1, up to date brew, tried xcode 13.0 -13.1 used with blender builds 3.0 and 3.1
So after a long bit of downloading, unpacking, and experimenting: it's not possible on macOS 12 to revert to an earlier Xcode. =/ The command-line tools similarly will not install, claiming the OS to be "too new."
My next trick is to attempt a build with homebrew llvm@12, but the first attempts at that yesterday were disastrous.
@CharlesWardlaw See D12210: Use LLVM toolchain to get std::filesystem on how to use LLVM toolchain.
or if you don't want to modify source code, follow the steps to create toolchain and then use https://developer.blender.org/F9413084 with modifications for your system.
Tagging eevee & Viewport for an investigation in case our code is at fault.
Added subscriber: @AledBrown
Added subscriber: @Steve-Hanff
This issue was referenced by
8ca4d20878
This issue was referenced by
98bb8e6955
This issue was referenced by
39ebb8be4d
This issue was referenced by
22cf8b9532
Changed status from 'Confirmed' to: 'Resolved'
I commit a workaround now, thanks @michael64 for tracking down the cause.
Also backported to 2.83, 2.93, and put on the list for a potential 3.0.1.
Here is the terminal log from compiling blender on macos 12.0.1 Intel and Terminal and Xcode 13.1 with this guide https://wiki.blender.org/wiki/Building_Blender/Mac
When searching this log for 'warning:' you will find a lot. Not sure if that is right/supposed to be like that!?
The log is log, so juat search for 'warning:'
This is just for info on my/user side compiling.
Thanks in advance
compile log blender 7 dec 2021.txt
You can ignore the warnings, that's expected.
Though I'm not sure why that is relevant to this task, are you saying the problem still exists with the very latest master for you, or is it just an unrelated question?
This was a related question. I thought maybe the warnings coming up because of a misconfig of my workflow.
I just compiled it, and it works fine now. THX Brecht :-)
Just for Information on todays macos updates:
I updated to macOS 12.1, xcode 13.2 and brew. Two files where missing, but after new cloning into blender-git folder compiling went fine and all working. Even the former selecting issue.
xcode had to be installed manually because of an apple appstore issue.
Anyways it all works, here the files listed that where missing after only updating the OS and xcode and not blender-git folder.(Part of the log::)
In file included from /Users/NURB/blender-git/blender/extern/audaspace/plugins/openal/OpenALDevice.cpp:17:
/Users/NURB/blender-git/blender/extern/audaspace/plugins/openal/OpenALDevice.h:36:10: fatal error: 'al.h' file not found
include <al.h>
[ 19%] Building CXX object extern/audaspace/CMakeFiles/audaspace.dir/plugins/openal/OpenALReader.cpp.o
In file included from /Users/NURB/blender-git/blender/extern/audaspace/plugins/openal/OpenALReader.cpp:17:
/Users/NURB/blender-git/blender/extern/audaspace/plugins/openal/OpenALReader.h:31:10: fatal error: 'alc.h' file not found
include <alc.h>
[ 19%] Building CXX object extern/bullet2/CMakeFiles/extern_bullet.dir/src/LinearMath/btGeometryUtil.cpp.o
1 error generated.
make- [x]: *** [extern/audaspace/CMakeFiles/audaspace.dir/plugins/openal/OpenALDevice.cpp.o] Error 1
make- [x]: *** Waiting for unfinished jobs....
1 error generated.
[ 21%] Built target extern_ceres
make- [x]: *** [all] Error 2
make: *** [all] Error 2
@Nurb2Kea please post build issues at https://devtalk.blender.org/c/blender/building-blender/11
Added subscribers: @send2jithu, @lichtwerk
Added subscriber: @LuckyChris