Windows: .blend file association detection #99438
Labels
No Label
Good First Issue
Priority
High
Priority
Low
Priority
Normal
Status
Archived
Status
Confirmed
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Job Type
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: studio/flamenco#99438
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?
On Windows, Flamenco Worker should detect which Blender to use by inspecting the file association for
*.blend
files. This happens in internal/worker/find_blender/windows.go.It has worked on my Windows 10 Pro desktop system, but failed months later on my Windows 10 Home laptop. Not sure if the pro/home version of Windows matters, whether the breakage was caused by something else, or whether it never worked properly but I failed to notice.
The code works by calling the AssocQueryStringW function from
shlwapi.dll
. The error message it produces is "The data area passed to a system call is too small."To test, run
go test ./internal/find_blender/ -args -withBlender
.Changed status from 'Needs Triage' to: 'Confirmed'
Added subscriber: @dr.sybren
Added subscriber: @LazyDodo
I'll admit, i don't know go, but this bit looks suspicious, flags and str should be 32 bits in size, and i'm guessing uintptr will output a 64 bit value on a 64 bit system?
Unfortunately, the
syscall.SyscallN
function only takesuintptr
arguments, so I can't really change anything there.I'll update the patch description with a way to properly test this issue.
Added subscriber: @nrupsis
Ran the test on my home machine (Windows 11) and it seemed to work.
System Details:
Device name -PC
Processor Intel(R) Xeon(R) CPU E5-2683 v3 @ 2.00GHz 2.00 GHz
Installed RAM 64.0 GB
System type 64-bit operating system, x64-based processor
Pen and touch No pen or touch input is available for this display
Edition Windows 11 Pro
Version 21H2
Installed on 7/4/2022
OS build 22000.739
Experience Windows Feature Experience Pack 1000.22000.739.0
Running the command I think worked? But I'm basing that of the fact nothing crashed:
A curious thing to note however, is that blender is installed on my computer, however It doesn't appear to be in my path:
That's perfect, that means that it works. Doesn't explain why it doesn't work on my laptop though :/
Changed status from 'Confirmed' to: 'Resolved'
This has been fixed in
642ef36778
.