"Batch-Generate Previews" crashes #64827

Closed
opened 2019-05-19 06:30:54 +02:00 by Grayson Riffe · 18 comments

Operating system: Windows 10 Home x64
Graphics card: GTX 970M

Blender Version
Broken: 2.80.69, 06c4139a68 (2019-5-19)

Short description of error
The operator to batch generate previews is broken. It ends up with a console window with the error, but it can't be closed and the ui window is completely normal. It also says "Blender quit."

Exact steps for others to reproduce the error

  1. Save the default file.
  2. File -> Data Previews -> Batch-Generate Previews -> point to the newly-saved file.
  3. The console comes up.

screenshot.png

Operating system: Windows 10 Home x64 Graphics card: GTX 970M **Blender Version** Broken: 2.80.69, 06c4139a6833 (2019-5-19) **Short description of error** The operator to batch generate previews is broken. It ends up with a console window with the error, but it can't be closed and the ui window is completely normal. It also says "Blender quit." **Exact steps for others to reproduce the error** 1. Save the default file. 2. File -> Data Previews -> Batch-Generate Previews -> point to the newly-saved file. 3. The console comes up. ![screenshot.png](https://archive.blender.org/developer/F7046667/screenshot.png)
Author

Added subscriber: @MrGrapeDave

Added subscriber: @MrGrapeDave
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Philipp Oeser self-assigned this 2019-05-19 17:48:19 +02:00
Member

Yep, this was left out from 77f92b8cb7. (still wanted to check something).

Yep, this was left out from 77f92b8cb7. (still wanted to check something).

This issue was referenced by 1d2e4c44bd

This issue was referenced by 1d2e4c44bddeb21e04f6ef73b96b51a759a3352e

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Author

Changed status from 'Resolved' to: 'Open'

Changed status from 'Resolved' to: 'Open'
Author

(Version: 2.8 Release Candidate 1)
This issue is still present in the form of either another command prompt message, or it doesn't say anything and no previews are generated when viewing them when appending.

previews.png

(Version: 2.8 Release Candidate 1) This issue is still present in the form of either another command prompt message, or it doesn't say anything and no previews are generated when viewing them when appending. ![previews.png](https://archive.blender.org/developer/F7604394/previews.png)
Author

Some files, like the default one, shows this message and writes the previews, but most don't write when that comes up.

Some files, like the default one, shows this message and writes the previews, but most don't write when that comes up.
Member

I noticed a memleak in D4917 as well, this I will track down [this should not be the reason for not writing the previews though...and is probably not that high priority atm...].

However, I cannot reproduce the issue of "it doesn't say anything and no previews are generated when viewing them when appending":
I ran this on multiple files and the previews seem to show:
T64827_heating_objects.png
T64827_heating_collections.png
T64827_heating_materials.png

  • Could you provide a file where generating the previews fails?
  • Do you possibly get a message like *NOT* Saving someblendfile.blend, because some error(s) happened while deleting temp render data... (or any other ERROR message)?
I noticed a memleak in [D4917](https://archive.blender.org/developer/D4917) as well, this I will track down [this should not be the reason for not writing the previews though...and is probably not that high priority atm...]. However, I cannot reproduce the issue of "it doesn't say anything and no previews are generated when viewing them when appending": I ran this on multiple files and the previews seem to show: ![T64827_heating_objects.png](https://archive.blender.org/developer/F7608786/T64827_heating_objects.png) ![T64827_heating_collections.png](https://archive.blender.org/developer/F7608807/T64827_heating_collections.png) ![T64827_heating_materials.png](https://archive.blender.org/developer/F7608810/T64827_heating_materials.png) - Could you provide a file where generating the previews fails? - Do you possibly get a message like `*NOT* Saving someblendfile.blend, because some error(s) happened while deleting temp render data...` (or any other ERROR message)?
Author

That message is what I was talking about at the end of the second comment. Here is that message with wasp_bot.blend from 2.8's page on blender.org .

wasp_bot.png

I also can't quite remember what I did to get it to fail and not say anything.

That message is what I was talking about at the end of the second comment. Here is that message with wasp_bot.blend from [2.8's page on blender.org ](https://www.blender.org/download/releases/2-80/). ![wasp_bot.png](https://archive.blender.org/developer/F7608865/wasp_bot.png) I also can't quite remember what I did to get it to fail and not say anything.
Member

OK, get it, too, (on the race_spaceship.blend) if I remove try/except, it fails here:

Traceback (most recent call last):
  File "/build_linux/bin/2.80/scripts/modules/bl_previews_utils/bl_previews_render.py", line 511, in <module>
    main()
  File "/build_linux/bin/2.80/scripts/modules/bl_previews_utils/bl_previews_render.py", line 502, in main
    do_data_intern=args.no_data_intern)
  File "/build_linux/bin/2.80/scripts/modules/bl_previews_utils/bl_previews_render.py", line 425, in do_previews
    if not render_context_delete(render_context):
  File "/build_linux/bin/2.80/scripts/modules/bl_previews_utils/bl_previews_render.py", line 167, in render_context_delete
    rna_backup_restore(scene, render_context.backup_scene)
  File "/build_linux/bin/2.80/scripts/modules/bl_previews_utils/bl_previews_render.py", line 68, in rna_backup_restore
    setattr(dt, path[-1], val)
TypeError: bpy_struct: item.attr = val: enum "" not found in ('ADAPTIVE')
Error: Not freed memory blocks: 2413, total unfreed memory 1.000534 

Here it seems to be about UnitSettings.length_unit [this might be more general though and affect other properties which have changed?]
Checking further...

OK, get it, too, (on the `race_spaceship.blend`) if I remove `try`/`except`, it fails here: ``` Traceback (most recent call last): File "/build_linux/bin/2.80/scripts/modules/bl_previews_utils/bl_previews_render.py", line 511, in <module> main() File "/build_linux/bin/2.80/scripts/modules/bl_previews_utils/bl_previews_render.py", line 502, in main do_data_intern=args.no_data_intern) File "/build_linux/bin/2.80/scripts/modules/bl_previews_utils/bl_previews_render.py", line 425, in do_previews if not render_context_delete(render_context): File "/build_linux/bin/2.80/scripts/modules/bl_previews_utils/bl_previews_render.py", line 167, in render_context_delete rna_backup_restore(scene, render_context.backup_scene) File "/build_linux/bin/2.80/scripts/modules/bl_previews_utils/bl_previews_render.py", line 68, in rna_backup_restore setattr(dt, path[-1], val) TypeError: bpy_struct: item.attr = val: enum "" not found in ('ADAPTIVE') Error: Not freed memory blocks: 2413, total unfreed memory 1.000534 ``` Here it seems to be about `UnitSettings`.`length_unit` [this might be more general though and affect other properties which have changed?] Checking further...

This issue was referenced by 8a5a8282ce

This issue was referenced by 8a5a8282ce48704e60e70cb02d747aede71e70b8
Member

Added subscriber: @mont29

Added subscriber: @mont29
Member

I think this is due to settings with bad/missing do_versions code?
Those values are empty in the failing files and then this empty value refuses to be set (e.g. on an enum)

seems like this fails for (again, I've disabled try/exept in rna_backup_restore):

  • UnitSettings (length_unit, ...), introduced in 2d21eb79ad ERROR: bpy_struct: item.attr = val: enum "" not found in ('ADAPTIVE')
  • FFmpegSettings (ffmpeg_preset, ...), introduced in 7e39d151d8, fails with ERROR: bpy_struct: item.attr = val: enum "" not found in ('BEST', 'GOOD', 'REALTIME'), not sure about FFM_PRESET_NONE in code...

@mont29: do you have a quick solution to this? Just skip them in exclude_props (D5255)?

I think this is due to settings with bad/missing do_versions code? Those values are empty in the failing files and then this empty value refuses to be set (e.g. on an enum) seems like this fails for (again, I've disabled try/exept in `rna_backup_restore`): - `UnitSettings` (`length_unit`, ...), introduced in 2d21eb79ad ERROR: `bpy_struct: item.attr = val: enum "" not found in ('ADAPTIVE')` - `FFmpegSettings` (`ffmpeg_preset`, ...), introduced in 7e39d151d8, fails with `ERROR: bpy_struct: item.attr = val: enum "" not found in ('BEST', 'GOOD', 'REALTIME')`, not sure about FFM_PRESET_NONE in code... @mont29: do you have a quick solution to this? Just skip them in `exclude_props` ([D5255](https://archive.blender.org/developer/D5255))?
Member

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'

@MrGrapeDave next time please open a new task, that new issue you are reporting here has absolutely nothing in common with the original one (except for the fact that they affect the same end-user tool), having different issues in a single task is really not ideal to manage the tracker.

@MrGrapeDave next time please open a new task, that new issue you are reporting here has absolutely nothing in common with the original one (except for the fact that they affect the same end-user tool), having different issues in a single task is really not ideal to manage the tracker.

This issue was referenced by 125e0cfb25

This issue was referenced by 125e0cfb2533b2f2323a5b37e5c98652b1e2e24f

This issue was referenced by f3899c13cd

This issue was referenced by f3899c13cd458b116fe4fd646632d11b1c26fda3
Philipp Oeser was unassigned by Bastien Montagne 2019-07-15 22:35:18 +02:00
Bastien Montagne self-assigned this 2019-07-15 22:35:18 +02:00
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#64827
No description provided.