Log In
New Account
Home My Page Projects Blender 2.x BF release
Summary Activity Tracker SCM Files

Blender 2.6 Bug Tracker: Browse

[#32492] Vague "driver has invalid target" console error.

Date:
2012-09-04 17:34
Priority:
3
State:
Closed
Submitted by:
Nathan Vegdahl (cessen)
Assigned to:
Joshua Leung (aligorith)
Category:
Animation system
Status:
Fixed / Closed
Relates to:
Duplicates:
Patches:
 
Summary:
Vague "driver has invalid target" console error.
Detailed description
When a driver has an invalid target (i.e. one of its variables points to something that doesn't exist) Blender emits a "Error: driver has an invalid target to use" message in the console.

Unfortunately, this message does not contain enough information to track down the offending driver in e.g. rigs with hundreds of drivers. The object and RNA path of the driven property should be included in the error message.

A file that produces the vague error is attached. In this example, the error message should additionally say that the issue is in the driver that's on Armature->Bone->location.x

Followup

Message
  • Date: 2012-10-06 06:12
  • Sender: Joshua Leung
  • This issue is not exactly the most straightforward to address, as the place where the error is raised is several layers down with no knowledge of the very info we need/want to report.

    While I could try to improve these error messages a bit in some way (keyingsets + anim channel filtering also need some tweaks), would it be helpful to have a filtering mode in the drivers editor which just displays "broken" drivers? This could help make reduce the dependency on being able to view the console for errors here :)
  • Date: 2012-10-08 21:33
  • Sender: Nathan Vegdahl
  • Yes! That would be awesome, Joshua! That would also be a great verification tool ("yay, none of my drivers are broken!")
  • Date: 2012-10-19 18:35
  • Sender: Ton Roosendaal
  • What is the status of this?

    I also think it's interesting to improve errors in general... if the code that throws up the error has no knowledge about what the error is, it better gets handled more proper internally.
  • Date: 2012-10-20 05:08
  • Sender: Joshua Leung
  • The filtering mode is now in place (r. 51246), which kindof eliminates the need to check on the console prints.

    However, when checking this, I found that it would still benefit a bit from actually highlighting in the UI where the errors were. That's perhaps more todo though.
  • Date: 2013-02-16 17:59
  • Sender: Ton Roosendaal
  • You mean as todo, to make buttons show 'red alert' theme color? That shouldn't be too hard?
  • Date: 2013-02-28 08:13
  • Sender: Joshua Leung
  • Ok, red alerts tagging is now in SVN. I guess this report can now be closed :)
  • Date: 2013-03-01 01:31
  • Sender: Nathan Vegdahl
  • Reopened:
    There are meaningful driver errors that don't show up in the filter yet. Attached is a simple blend file ("broken_drivers.blend") demonstrating this. Note that only the Z Location driver shows up in the filter, even though the X and Y Location drivers are also broken.

    Also, although the Rotation X driver is technically functioning since the broken driver variable isn't used, it would still be nice for it to show up in the error filter for clean-up purposes.

    The idea of the feature is great! It just needs a little bit more love. :-)
  • Date: 2013-03-06 03:00
  • Sender: Joshua Leung
  • Ok, r.55070 fixes the problems with these "harmless errors" not showing up. It seems the pydrivers eval code clears the top-level error flag, which meant that the filter heuristic wouldn't see any errors.
 

Attached Files:

Name Date Download
vague_error.blend 2012-09-04 17:34 Download
broken_drivers.blend 2013-03-01 01:31 Download

Changes:

Field Old Value Date By
status_idOpen2013-03-06 03:00aligorith
close_dateNone2013-03-06 03:00aligorith
StatusReopened2013-03-06 03:00aligorith
File Added24272: broken_drivers.blend2013-03-01 01:31cessen
status_idClosed2013-03-01 01:31cessen
close_date2013-02-28 08:132013-03-01 01:31cessen
StatusFixed / Closed2013-03-01 01:31cessen
status_idOpen2013-02-28 08:13aligorith
close_dateNone2013-02-28 08:13aligorith
StatusInvestigate2013-02-28 08:13aligorith
StatusNew2012-10-06 06:12aligorith
File Added21963: vague_error.blend2012-09-04 17:34cessen