Drag-and-Droping images only works on first Blender start #45951

Closed
opened 2015-08-29 16:35:47 +02:00 by mathieu menuet · 28 comments

System Information
Windows 7 x64

Blender Version
Broken: c749fe4

Short description of error
When making file -> new after first start, D&D of images doesn't open it as background image anymore

Exact steps for others to reproduce the error
Start Blender, hit ctrl+N and enter, drag and drop an image in the 3D view from explorer, no background images is created.
Strangely, it works perfectly many times only on first blender start.
Can't attach a test blend file in this case as it's triggered by file ->new

**System Information** Windows 7 x64 **Blender Version** Broken: c749fe4 **Short description of error** When making file -> new after first start, D&D of images doesn't open it as background image anymore **Exact steps for others to reproduce the error** Start Blender, hit ctrl+N and enter, drag and drop an image in the 3D view from explorer, no background images is created. Strangely, it works perfectly many times only on first blender start. Can't attach a test blend file in this case as it's triggered by file ->new
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @bliblubli

Added subscriber: @bliblubli
Member

Added subscriber: @JulianEisel

Added subscriber: @JulianEisel
Member

Working totally fine here.

Working totally fine here.

Added subscriber: @mont29

Added subscriber: @mont29

Works OK here as well (linux though). Can you please:

  • Give us your exact Blender, OS and GPU versions, as requested in the template!
  • Ensure both your OS and drivers are fully up-to-date.
  • For Windows 7, at least service pack 1 is mandatory, please ensure it is installed on your machine.
  • Try the latest build from our buildbot.
  • Try to start Blender in factory settings (--factory-startup commandline option) (this will ensure whether this is a userpref or addon issue or not).
  • Launch Blender from the command line with -d option and attach here any error printed out in the console.
Works OK here as well (linux though). Can you please: * Give us your exact Blender, OS and GPU versions, as requested in the template! * Ensure both your OS and drivers are fully up-to-date. * For Windows 7, at least service pack 1 is mandatory, please ensure it is installed on your machine. * Try the latest build from [our buildbot](https://builder.blender.org/download). * Try to start Blender in factory settings (`--factory-startup` commandline option) (this will ensure whether this is a userpref or addon issue or not). * Launch Blender from the command line with `-d` option and attach here any error printed out in the console.
Member

Added subscriber: @Blendify

Added subscriber: @Blendify
Member

works fine here on windows 8.0 w/ Intel card

works fine here on windows 8.0 w/ Intel card
Author

In #45951#331295, @mont29 wrote:
Works OK here as well (linux though). Can you please:

  • Give us your exact Blender, OS and GPU versions, as requested in the template!

Blender 2.75 hash c749fe4, Win 7 x64 SP1, AMD R9 280X with catalyst 15.7.1 (latest)

  • Ensure both your OS and drivers are fully up-to-date.
  • For Windows 7, at least service pack 1 is mandatory, please ensure it is installed on your machine.
  • Try the latest build from our buildbot.

always the case

  • Try to start Blender in factory settings (--factory-startup commandline option) (this will ensure whether this is a userpref or addon issue or not).
  • Launch Blender from the command line with -d option and attach here any error printed out in the console.

I did it, here is the log:

drop file C:\Users\test\Desktop\Pixar128 Library\converted2\Alloy_diamond_plate_pxr128.jpg
read file C:\Users\test\AppData\Roaming\Blender Foundation\Blender\2.75\config\startup.blend
  Version 275 sub 4 date 2015-08-21 07:48 hash 59e166c

ordered
 OBCube
 OBLamp
 OBCamera
read file C:\Users\test\AppData\Roaming\Blender Foundation\Blender\2.75\config\userpref.blend
  Version 275 sub 4 date 2015-08-21 15:18 hash dc40670
Read new prefs: C:\Users\test\AppData\Roaming\Blender Foundation\Blender\2.75\config\userpref.blend
AL lib: (EE) UpdateDeviceParams: Failed to set 44100hz, got 48000hz instead
drop file C:\Users\test\Desktop\Pixar128 Library\converted2\Alloy_diamond_plate_pxr128.jpg

Which showed me that you have to first D&D an image, then file->new, then D&D an image again. If you directly create a new file without having done any D&D, the bug doesn't trigger.

> In #45951#331295, @mont29 wrote: > Works OK here as well (linux though). Can you please: > * Give us your exact Blender, OS and GPU versions, as requested in the template! Blender 2.75 hash c749fe4, Win 7 x64 SP1, AMD R9 280X with catalyst 15.7.1 (latest) > * Ensure both your OS and drivers are fully up-to-date. > * For Windows 7, at least service pack 1 is mandatory, please ensure it is installed on your machine. > * Try the latest build from [our buildbot](https://builder.blender.org/download). always the case > * Try to start Blender in factory settings (`--factory-startup` commandline option) (this will ensure whether this is a userpref or addon issue or not). > * Launch Blender from the command line with `-d` option and attach here any error printed out in the console. I did it, here is the log: ``` drop file C:\Users\test\Desktop\Pixar128 Library\converted2\Alloy_diamond_plate_pxr128.jpg read file C:\Users\test\AppData\Roaming\Blender Foundation\Blender\2.75\config\startup.blend Version 275 sub 4 date 2015-08-21 07:48 hash 59e166c ordered OBCube OBLamp OBCamera read file C:\Users\test\AppData\Roaming\Blender Foundation\Blender\2.75\config\userpref.blend Version 275 sub 4 date 2015-08-21 15:18 hash dc40670 Read new prefs: C:\Users\test\AppData\Roaming\Blender Foundation\Blender\2.75\config\userpref.blend AL lib: (EE) UpdateDeviceParams: Failed to set 44100hz, got 48000hz instead drop file C:\Users\test\Desktop\Pixar128 Library\converted2\Alloy_diamond_plate_pxr128.jpg ``` Which showed me that you have to first D&D an image, then file->new, then D&D an image again. If you directly create a new file without having done any D&D, the bug doesn't trigger.
Member

sometimes i do this and it shows up and sometimes it does not

sometimes i do this and it shows up and sometimes it does not
Author

then it maybe one of those nasty cmake bugs (random bugs happens since the switch from scons to cmake in buildbots) :( but for me it's pretty reproducible, every time actually so far.

then it maybe one of those nasty cmake bugs (random bugs happens since the switch from scons to cmake in buildbots) :( but for me it's pretty reproducible, every time actually so far.
Member

well if you think it is related to cmake try the 2.75a release because that was still built with scons afaik

well if you think it is related to cmake try the 2.75a release because that was still built with scons afaik
Member

Please, stop spreading around that cmake is the reason for some weird bugs or so. Technically this is pretty unlikely. There are much more differences between buildbot and release build configurations and much more variables that could cause some weird glitches. In fact I guess CMake builds are more stable, since most (actually almost all) developers use CMake.
So again: As long as there is no technical proof, please don't spread such myths, this just causes trouble for us for the final switch to CMake.

Please, stop spreading around that cmake is the reason for some weird bugs or so. Technically this is pretty unlikely. There are much more differences between buildbot and release build configurations and much more variables that could cause some weird glitches. In fact I guess CMake builds are more stable, since most (actually almost all) developers use CMake. So again: As long as there is no technical proof, please don't spread such myths, this just causes trouble for us for the final switch to CMake.
Author

I agree to not spread wrong things, but do you use Blender 8 hours a day or more on heavy projects using a lot of Blender functions and data types on Windows ? I mean, people reporting those bugs that are random are not kids playing around or some casual users. Aaron seems to be a long time user also. So if he says it is random on it's computer, I think we can believe him just like Marco and me?

Oh well, I don't care if your find your strong guess/theory stronger that long time user practice, I build myself with Scons, so do what you want with your userbase. I'll not bother anymore.

I agree to not spread wrong things, but do you use Blender 8 hours a day or more on heavy projects using a lot of Blender functions and data types on Windows ? I mean, people reporting those bugs that are random are not kids playing around or some casual users. Aaron seems to be a long time user also. So if he says it is random on it's computer, I think we can believe him just like Marco and me? Oh well, I don't care if your find your strong guess/theory stronger that long time user practice, I build myself with Scons, so do what you want with your userbase. I'll not bother anymore.
Member

can a developer try this on windows because most likely this is only reproducible on windows

can a developer try this on windows because most likely this is only reproducible on windows
Author

In #45951#331918, @Blendify wrote:
well if you think it is related to cmake try the 2.75a release because that was still built with scons afaik

The bug doesn't show up on 2.75a (tested twice), but I thought it is build with c-make?

> In #45951#331918, @Blendify wrote: > well if you think it is related to cmake try the 2.75a release because that was still built with scons afaik The bug doesn't show up on 2.75a (tested twice), but I thought it is build with c-make?
Author

yep bpy.app.build_system on 2.75a gives 'CMake', so in this case at least, it seems to not be due to Cmake. I apologies for the bad accusation.

yep bpy.app.build_system on 2.75a gives 'CMake', so in this case at least, it seems to not be due to Cmake. I apologies for the bad accusation.
Author

well I tried again on latest buildbot and sometime it triggers, sometime not... so, no idea.

well I tried again on latest buildbot and sometime it triggers, sometime not... so, no idea.
Member

@bliblubli,
I never said I don't believe you, nor do I think someone lies to me about this... why should one? There are just technical issues with your assertion: Technically, it doesn't make sense to blame CMake for this, or similar randomly appearing issues. CMake doesn't have an influence on run-time, only on compile-time. Of course you can never be sure with computers - there is always this 1% of probability - but there are a hundred of other variables that are much more likely to cause such trouble, so blaming CMake in the first place is technical non-sense.

As you said, you are a user, and for you these things may not be so obvious as they are to us. No issue with that. But just as we need to trust you when you tell us about random crashes, you have to trust us when we say that it doesn't make much sense to blame CMake for anything here.

All I ask for is if you could do us a flavor by not telling people that CMake causes these issues.
In such a big & active community, we all have to be careful with what we're saying. Misunderstanding, confusion and wrong knowledge is easy to create, but hard to undo. Well... I guess you get what I mean ;)

@bliblubli, I never said I don't believe you, nor do I think someone lies to me about this... why should one? There are just technical issues with your assertion: Technically, it doesn't make sense to blame CMake for this, or similar randomly appearing issues. CMake doesn't have an influence on run-time, only on compile-time. Of course you can never be sure with computers - there is always this 1% of probability - but there are a hundred of other variables that are much more likely to cause such trouble, so blaming CMake in the first place is technical non-sense. As you said, you are a user, and for you these things may not be so obvious as they are to us. No issue with that. But just as we need to trust you when you tell us about random crashes, you have to trust us when we say that it doesn't make much sense to blame CMake for anything here. All I ask for is if you could do us a flavor by not telling people that CMake causes these issues. In such a big & active community, we all have to be careful with what we're saying. Misunderstanding, confusion and wrong knowledge is easy to create, but hard to undo. Well... I guess you get what I mean ;) </off-topic>

Added subscriber: @ideasman42

Added subscriber: @ideasman42

Tested on windows7, cant redo.

@bliblubli. Could you record a video of the error?

I realize its some effort, but its hard to fathom how this can happen and would be interested to see exact steps.

Tested on windows7, cant redo. @bliblubli. Could you record a video of the error? I realize its some effort, but its hard to fathom how this can happen and would be interested to see exact steps.
Author

Here is a video, without cursor sorry, seems to be a limitation of Gifcam, but I D&D the image selected in viewport (and wait every time to ensure the little + is visible near the cursor)
bug d and d image blender.gif

Sometime it takes 20 trial to happen, sometime it just happen on second one...
Here is the image, also I don't think it matters.
Blue_glazed_pxr128_bmp.jpg

Here is a video, without cursor sorry, seems to be a limitation of Gifcam, but I D&D the image selected in viewport (and wait every time to ensure the little + is visible near the cursor) ![bug d and d image blender.gif](https://archive.blender.org/developer/F231532/bug_d_and_d_image_blender.gif) Sometime it takes 20 trial to happen, sometime it just happen on second one... Here is the image, also I don't think it matters. ![Blue_glazed_pxr128_bmp.jpg](https://archive.blender.org/developer/F231534/Blue_glazed_pxr128_bmp.jpg)
Author

Found it!!! ... I guess... If you drop the image on/near the sun or cube, or sun dashed light ray (the threshold is unclear) it doesn't work, so it's not random actually. Don't know if it's a wanted behavior, but on normal scenes full of objects or with a terrain, it can't work anymore with this behavior. (because there is no "void" space anymore) So it's not really a good Idea I think.

Found it!!! ... I guess... If you drop the image on/near the sun or cube, or sun dashed light ray (the threshold is unclear) it doesn't work, so it's not random actually. Don't know if it's a wanted behavior, but on normal scenes full of objects or with a terrain, it can't work anymore with this behavior. (because there is no "void" space anymore) So it's not really a good Idea I think.

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Bastien Montagne self-assigned this 2015-09-08 23:02:54 +02:00

Well, yes, that’s totally intended behavior from code - when you drag'n'drop, if you drop over an object it calls a different operation (e.g. over a mesh it assigns the dragged image to its UVMap…). May not be always optimal, but no bug here.

Well, yes, that’s totally intended behavior from code - when you drag'n'drop, if you drop over an object it calls a different operation (e.g. over a mesh it assigns the dragged image to its UVMap…). May not be always optimal, but no bug here.
Author

If that would be the case, that would be great, but when I D&D an image on the cube, it does nothing. The image is not available in the image/UV Editor.

If that would be the case, that would be great, but when I D&D an image on the cube, it does nothing. The image is not available in the image/UV Editor.

Note that we could have dropping report in the header what happens.

"Assigned image to lamp", "Added background image".

Its not so obvious for eg, what happens when you drop an image into the perspective view.

Note that we could have dropping report in the header what happens. *"Assigned image to lamp"*, *"Added background image"*. Its not so obvious for eg, what happens when you drop an image into the perspective view.
Author

Good Idea. A text or visual feedback, would really help to understand and ensure the work has been done properly.

Good Idea. A text or visual feedback, would really help to understand and ensure the work has been done properly.
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
5 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#45951
No description provided.