Freestyle SVG exporter #44392

Closed
opened 2015-04-14 20:30:46 +02:00 by Daniel Grauer · 8 comments
Member

System Information
Operating system and graphics card
OS: windows 8 64bit
GPU: NVIDIA 860M

Blender Version
Broken: (example: 2.69.7 4b206af, see splash screen)
Worked: (optional)

Broken 2.74.4 (465a5d2)

Short description of error
when viewport rendering is enabled (internal renderer) and the addon activated in the render tab then there are errors.

Exact steps for others to reproduce the error
Based on a (as simple as possible) attached .blend file with minimum amount of steps

  1. enable freestyle
    pasted_file
  2. enable viewport rendering
    pasted_file
  3. enable the Freestyle SVG export
    pasted_file
  4. see system console for errors:
Error executing Python script from PythonInterpreter::interpretText
Name: LineSet
Errors:
Error: Traceback (most recent call last):
  File "\LineSet", line 1, in <module>
  File "D:\SVN\BlenderAddons\build\Blender_trunk_vs2013\bin\Release\2.74\scripts\freestyle\modules\parameter_editor.py",
 line 1221, in process
    fn(scene, layer, lineset)
  File "D:\SVN\BlenderAddons\build\Blender_trunk_vs2013\bin\Release\2.74\scripts\addons\render_freestyle_svg.py", line 4
73, in lineset_post
    cls.shader.write()
  File "D:\SVN\BlenderAddons\build\Blender_trunk_vs2013\bin\Release\2.74\scripts\addons\render_freestyle_svg.py", line 3
21, in write
    tree = et.parse(self.filepath)
  File "D:\SVN\BlenderAddons\build\Blender_trunk_vs2013\bin\Release\2.74\python\lib\xml\etree\ElementTree.py", line 1187
, in parse
    tree.parse(source, parser)
  File "D:\SVN\BlenderAddons\build\Blender_trunk_vs2013\bin\Release\2.74\python\lib\xml\etree\ElementTree.py", line 587,
 in parse
    source = open(source, "rb")
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\temp\\0001.svg'

location: <unknown location>:-1


Error: interpretation failed

this happens when the image is not first rendered with f12 and i think there should be a warning in this scenario that the image is missing instead of throwing errors in the system console which the normal user has not opened and wonders why nothing is rendered any more.

also when rendering blender crashes, heres a crashlog (this only seems to happen if frame step is set to 1, it runs through with 2 or 10 or whatever else i use)

# Blender 2.74 (sub 4), Commit date: 2015-04-10 18:20, Hash 465a5d2

# backtrace
27: PyInit_mathutils_noise_types - 0x792FE050
26: fftw_assertion_failed - 0x78D027F0
25: fftw_assertion_failed - 0x78D027F0
24: UnhandledExceptionFilter - 0x62A01AD0
23: memset - 0x65694D00
22: _C_specific_handler - 0x656823C0
21: _chkstk - 0x65693A30
20: RtlRaiseException - 0x656574A0
19: KiUserExceptionDispatcher - 0x65692C20
18: PyMapping_Length - 0x77C12B80
17: PyMapping_Length - 0x77C12B80
16: fftw_assertion_failed - 0x78D027F0
15: PyInit_mathutils_noise_types - 0x792FE050
14: PyInit_mathutils_noise_types - 0x792FE050
13: PyInit_mathutils_noise_types - 0x792FE050
12: fftw_assertion_failed - 0x78D027F0
11: fftw_assertion_failed - 0x78D027F0
10: fftw_assertion_failed - 0x78D027F0
9: fftw_assertion_failed - 0x78D027F0
8: fftw_assertion_failed - 0x78D027F0
7: fftw_assertion_failed - 0x78D027F0
6: fftw_assertion_failed - 0x78D027F0
5: fftw_assertion_failed - 0x78D027F0
4: sched_get_priority_max - 0x567B12FD
3: sched_get_priority_max - 0x567B12FD
2: sched_get_priority_max - 0x567B12FD
1: BaseThreadInitThunk - 0x64B813B0
0: RtlUserThreadStart - 0x6566E920

**System Information** Operating system and graphics card OS: windows 8 64bit GPU: NVIDIA 860M **Blender Version** Broken: (example: 2.69.7 4b206af, see splash screen) Worked: (optional) Broken 2.74.4 (465a5d2) **Short description of error** when viewport rendering is enabled (internal renderer) and the addon activated in the render tab then there are errors. **Exact steps for others to reproduce the error** Based on a (as simple as possible) attached .blend file with minimum amount of steps 1. enable freestyle ![pasted_file](https://archive.blender.org/developer/F161982/pasted_file) 2. enable viewport rendering ![pasted_file](https://archive.blender.org/developer/F161984/pasted_file) 3. enable the Freestyle SVG export ![pasted_file](https://archive.blender.org/developer/F161986/pasted_file) 4. see system console for errors: ``` Error executing Python script from PythonInterpreter::interpretText Name: LineSet Errors: Error: Traceback (most recent call last): File "\LineSet", line 1, in <module> File "D:\SVN\BlenderAddons\build\Blender_trunk_vs2013\bin\Release\2.74\scripts\freestyle\modules\parameter_editor.py", line 1221, in process fn(scene, layer, lineset) File "D:\SVN\BlenderAddons\build\Blender_trunk_vs2013\bin\Release\2.74\scripts\addons\render_freestyle_svg.py", line 4 73, in lineset_post cls.shader.write() File "D:\SVN\BlenderAddons\build\Blender_trunk_vs2013\bin\Release\2.74\scripts\addons\render_freestyle_svg.py", line 3 21, in write tree = et.parse(self.filepath) File "D:\SVN\BlenderAddons\build\Blender_trunk_vs2013\bin\Release\2.74\python\lib\xml\etree\ElementTree.py", line 1187 , in parse tree.parse(source, parser) File "D:\SVN\BlenderAddons\build\Blender_trunk_vs2013\bin\Release\2.74\python\lib\xml\etree\ElementTree.py", line 587, in parse source = open(source, "rb") FileNotFoundError: [Errno 2] No such file or directory: 'C:\\temp\\0001.svg' location: <unknown location>:-1 Error: interpretation failed ``` this happens when the image is not first rendered with f12 and i think there should be a warning in this scenario that the image is missing instead of throwing errors in the system console which the normal user has not opened and wonders why nothing is rendered any more. also when rendering blender crashes, heres a crashlog (this only seems to happen if frame step is set to 1, it runs through with 2 or 10 or whatever else i use) ``` # Blender 2.74 (sub 4), Commit date: 2015-04-10 18:20, Hash 465a5d2 # backtrace 27: PyInit_mathutils_noise_types - 0x792FE050 26: fftw_assertion_failed - 0x78D027F0 25: fftw_assertion_failed - 0x78D027F0 24: UnhandledExceptionFilter - 0x62A01AD0 23: memset - 0x65694D00 22: _C_specific_handler - 0x656823C0 21: _chkstk - 0x65693A30 20: RtlRaiseException - 0x656574A0 19: KiUserExceptionDispatcher - 0x65692C20 18: PyMapping_Length - 0x77C12B80 17: PyMapping_Length - 0x77C12B80 16: fftw_assertion_failed - 0x78D027F0 15: PyInit_mathutils_noise_types - 0x792FE050 14: PyInit_mathutils_noise_types - 0x792FE050 13: PyInit_mathutils_noise_types - 0x792FE050 12: fftw_assertion_failed - 0x78D027F0 11: fftw_assertion_failed - 0x78D027F0 10: fftw_assertion_failed - 0x78D027F0 9: fftw_assertion_failed - 0x78D027F0 8: fftw_assertion_failed - 0x78D027F0 7: fftw_assertion_failed - 0x78D027F0 6: fftw_assertion_failed - 0x78D027F0 5: fftw_assertion_failed - 0x78D027F0 4: sched_get_priority_max - 0x567B12FD 3: sched_get_priority_max - 0x567B12FD 2: sched_get_priority_max - 0x567B12FD 1: BaseThreadInitThunk - 0x64B813B0 0: RtlUserThreadStart - 0x6566E920 ```
Author
Member

Changed status to: 'Open'

Changed status to: 'Open'
Author
Member

Added subscriber: @DanielGrauer

Added subscriber: @DanielGrauer
Tamito Kajiyama was assigned by Julian Eisel 2015-04-14 21:18:41 +02:00
Member

Added subscribers: @kjym3, @JulianEisel

Added subscribers: @kjym3, @JulianEisel
Member

So it only prints the error and nothing else, right? @kjym3, think a warning should be fine here.

So it only prints the error and nothing else, right? @kjym3, think a warning should be fine here.
Author
Member

yes it only prints the error. i added a crash when rendering a animation which only seems to happen if the frame step is set to 1. but not sure its related to the addon or if its caused by something else.

yes it only prints the error. i added a crash when rendering a animation which only seems to happen if the frame step is set to 1. but not sure its related to the addon or if its caused by something else.

Closed as duplicate of #43300

Closed as duplicate of #43300

Thank you for the detailed problem report. The SVG exporter needs to be disabled temporarily when the view port rendering is ongoing. A technical issue here is that there is no established way to detect if the view port rendering is taking place as described in a comment for #43300. I have proposed a solution and been waiting for feedback from core developers.

Thank you for the detailed problem report. The SVG exporter needs to be disabled temporarily when the view port rendering is ongoing. A technical issue here is that there is no established way to detect if the view port rendering is taking place as described in a comment for #43300. I have proposed a solution and been waiting for feedback from core developers.
Author
Member

i added an other bug report because of thee crash blender/blender#44404 it seems this is caused by the freestyle addon.

i added an other bug report because of thee crash blender/blender#44404 it seems this is caused by the freestyle addon.
Sign in to join this conversation.
No Milestone
No project
No Assignees
3 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-addons#44392
No description provided.