CGCookie / retopoflow

A suite of retopology tools for Blender
2.53k stars 251 forks source link

[BUG] Start Retopoflow not closing, freezing viewport #1281

Open yakolokol opened 1 year ago

yakolokol commented 1 year ago

PLEASE READ THE FOLLOWING AND USE THE TEMPLATE TO POST YOUR ISSUE

Questions not directly related to the RetopoFlow project are considered general and should be posted elsewhere (e.g. git, blender, python, etc).

Before raising the issue, please check the following first:

 

Issue Template


Please prefix your issue name with one of the following: [BUG] [PROPOSAL] [QUESTION]

Retopoflow Version: 3.4.1

Blender Version/Hash: 4.0.0

Platform Version/Distribution: Windows 10 Pro 22h2

 

Issue:

After updating the blender to version 4.0, the following bug appeared: I press Start Retopoflow. After that, the interface and the Retopoflow viewport are loaded. But the drop-down menu from above does not disappear (through which the interface opens). Although the viewport is active (I can select points/polygons/edges, change tools), but I can't move the camera. Sometimes this happens if a new snapping or Retopologize was working in the blender before in the viewport settings. But maybe these are unrelated things. Even if you press Exit, the drop—down menu continues to hang and the blender interface remains locked.

vxlcoder commented 1 year ago

thanks for the report, @yakolokol!

can you do this for us:

there seems to be something breaking during start up, and the console will have some additional details that will help us debug and fix this problem.

thanks!

SunBroTHE1 commented 1 year ago

Good Day!

Retopoflow Version: 3.4.1

Blender Version/Hash: 4.0.0

Platform Version/Distribution: Windows 10 Pro 22h2

I have similar issue. Here's console output:

RetopoFlow keymaps path: C:\Users\"username"\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\retopoflow-master\RetopoFlow_keymaps.json
RetopoFlow: Starting... keymaps and actions 0.00
RetopoFlow: Starting... statusbar and marking 0.00
RetopoFlow: Starting... undo 0.00
RetopoFlow: storing clip distances: 0.009999999776482582 1000.0
RetopoFlow: storing view: <Vector (3.2044, 1.1404, 9.2446)> 17.986677169799805
RetopoFlow: computing unit scaling factor
  Unit scaling factor: 0.4195010104100722
RetopoFlow: scaling to unit box
RetopoFlow: scaling to factor=0.4195010104100722, view='SCALE', clip='OVERRIDE', mesh='SCALE'
RetopoFlow: Starting... normalizing 0.02
RetopoFlow: Loading maptcap retopoflow_dark.exr C:\Users\"username"\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\retopoflow-master\matcaps\retopoflow_dark.exr
RetopoFlow: Starting... Blender UI 0.00
RetopoFlow: Starting... stylings 0.58
RetopoFlow: Starting Total: 0.62
Addon Common: Loaded font id=25: C:\Users\"username"\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\retopoflow-master\addon_common\common\fonts\DroidSans-Blender.ttf
RetopoFlow: Pausing help image preloading
  elapsed: 0.00 secs
RetopoFlow: Setting up target mesh
  elapsed: 0.08 secs
RetopoFlow: Setting up source mesh(es)
  rfsources...
  bboxes...
  drawing...
  done!
  elapsed: 22.11 secs
RetopoFlow: Setting up symmetry data structures
  elapsed: 22.96 secs
RetopoFlow: Setting up rotation target
  elapsed: 0.00 secs
RetopoFlow: Setting up RetopoFlow states
  elapsed: 0.00 secs
RetopoFlow: Setting up RetopoFlow tools
  elapsed: 5.02 secs
RetopoFlow: Setting up grease marks
  elapsed: 0.00 secs
RetopoFlow: Setting up visualizations
  elapsed: 0.00 secs
RetopoFlow: Setting up user interface
  elapsed: 1.02 secs
RetopoFlow: Setting up undo system
  elapsed: 0.00 secs
RetopoFlow: Checking auto save / save
  elapsed: 0.00 secs
RetopoFlow: Checking target symmetry
  elapsed: 0.00 secs
RetopoFlow: Loading welcome message
  elapsed: 0.04 secs
Addon Common: Loaded font id=26: C:\Users\"username"\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\retopoflow-master\addon_common\common\fonts\OpenSans-Bold.ttf
Addon Common: Loaded font id=27: C:\Users\"username"\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\retopoflow-master\addon_common\common\fonts\DejaVuSansMono.ttf
RetopoFlow: Resuming help image preloading
  elapsed: 0.00 secs
RetopoFlow: done with start
RetopoFlow: unscaling from unit box
RetopoFlow: scaling to factor=1.0, view='RESTORE', clip='RESTORE', mesh='RESTORE'
RetopoFlow: unscaling from unit box
RetopoFlow: scaling to factor=1.0, view='RESTORE', clip='RESTORE', mesh='RESTORE'
vxlcoder commented 1 year ago

thank you for the details, @SunBroTHE1. I edited your post to make it a little more readable.

A few questions for you

when downloading RF, do not use this link, because it is known to have problems:

image

also, do not use this link:

image

Instead, use this link:

image

other than the potential path issues I noted above, I don't see anything in the output that would indicate RF not working for you. when you started and ended RF, did it work correctly? if so, can you try copy-pasting again (exactly like you did here) the next time RF breaks?

thank you!

yakolokol commented 1 year ago

thanks for the report, @yakolokol!

can you do this for us:

  • start blender
  • open the console windows (blender menu bar) > Toggle System Console. minimize for now
  • start RF
  • after a few seconds, try to exit RF
  • switch to the console that you minimized. there should be a lot of text (scroll bar)
  • select all the text there, copy it, and then paste it here as a reply

there seems to be something breaking during start up, and the console will have some additional details that will help us debug and fix this problem.

thanks!

Hi! Hope, its gonna help:

RetopoFlow: Initial load
RetopoFlow git: None
RetopoFlow options path: G:\Software\Blender\stable\blender-4.0.0+stable.878f71061b8e\4.0\scripts\addons\RetopoFlow\RetopoFlow_options.json
cgcookie addon: Verbose is enabled
cgcookie addon: Read in JSON settings from file
fake_module: addon missing 'bl_info' gives bad performance!: 'G:\\Software\\Blender\\stable\\blender-4.0.0+stable.878f71061b8e\\4.0\\scripts\\addons\\base_ops.py'
Traceback (most recent call last):
  File "G:\Software\Blender\stable\blender-4.0.0+stable.878f71061b8e\4.0\scripts\modules\addon_utils.py", line 364, in enable
    mod = importlib.import_module(module_name)
  File "G:\Software\Blender\stable\blender-4.0.0+stable.878f71061b8e\4.0\python\lib\importlib\__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "G:\Software\Blender\stable\blender-4.0.0+stable.878f71061b8e\4.0\scripts\addons\Scatter5\__init__.py", line 146, in <module>
    from . import widgets
  File "G:\Software\Blender\stable\blender-4.0.0+stable.878f71061b8e\4.0\scripts\addons\Scatter5\widgets\__init__.py", line 23, in <module>
    from . import infobox
  File "G:\Software\Blender\stable\blender-4.0.0+stable.878f71061b8e\4.0\scripts\addons\Scatter5\widgets\infobox.py", line 54, in <module>
    class SC5InfoBox():
  File "G:\Software\Blender\stable\blender-4.0.0+stable.878f71061b8e\4.0\scripts\addons\Scatter5\widgets\infobox.py", line 139, in SC5InfoBox
    LOGO_FILL_SHADER = gpu.shader.from_builtin('2D_UNIFORM_COLOR')
ValueError: expected a string in ('FLAT_COLOR', 'IMAGE', 'IMAGE_COLOR', 'SMOOTH_COLOR', 'UNIFORM_COLOR', 'POLYLINE_FLAT_COLOR', 'POLYLINE_SMOOTH_COLOR', 'POLYLINE_UNIFORM_COLOR'), got '2D_UNIFORM_COLOR'
Traceback (most recent call last):
  File "G:\Software\Blender\stable\blender-4.0.0+stable.878f71061b8e\4.0\scripts\modules\addon_utils.py", line 364, in enable
    mod = importlib.import_module(module_name)
  File "G:\Software\Blender\stable\blender-4.0.0+stable.878f71061b8e\4.0\python\lib\importlib\__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "G:\Software\Blender\stable\blender-4.0.0+stable.878f71061b8e\4.0\scripts\addons\TexTools_1_5\__init__.py", line 128, in <module>
    from . import op_texel_density_set
  File "G:\Software\Blender\stable\blender-4.0.0+stable.878f71061b8e\4.0\scripts\addons\TexTools_1_5\op_texel_density_set.py", line 3, in <module>
    from bpy.types import FaceMap
ImportError: cannot import name 'FaceMap' from 'bpy.types' (unknown location)
Traceback (most recent call last):
  File "G:\Software\Blender\stable\blender-4.0.0+stable.878f71061b8e\4.0\scripts\modules\addon_utils.py", line 364, in enable
    mod = importlib.import_module(module_name)
  File "G:\Software\Blender\stable\blender-4.0.0+stable.878f71061b8e\4.0\python\lib\importlib\__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "G:\Software\Blender\stable\blender-4.0.0+stable.878f71061b8e\4.0\scripts\addons\photographer\__init__.py", line 14, in <module>
    from . import (
  File "G:\Software\Blender\stable\blender-4.0.0+stable.878f71061b8e\4.0\scripts\addons\photographer\prefs.py", line 12, in <module>
    from . import constants
  File "G:\Software\Blender\stable\blender-4.0.0+stable.878f71061b8e\4.0\scripts\addons\photographer\constants.py", line 6, in <module>
    script_dir = bpy.context.preferences.filepaths.script_directory
AttributeError: 'PreferencesFilePaths' object has no attribute 'script_directory'
WARN (bpy.rna): C:\Users\blender\git\blender-v400\blender.git\source\blender\python\intern\bpy_rna.cc:1349 pyrna_enum_to_py: current value '0' matches no enum in 'Scene', 'Scene', 'trimsheetlibs'
WARNING: No Trimsheet Libraries registered!
Traceback (most recent call last):
  File "G:\Software\Blender\stable\blender-4.0.0+stable.878f71061b8e\4.0\scripts\addons\HOps\addon\panel\settings\__init__.py", line 66, in poll
    return active_tool().idname == 'Hopsedit'
AttributeError: 'NoneType' object has no attribute 'idname'
Traceback (most recent call last):
  File "G:\Software\Blender\stable\blender-4.0.0+stable.878f71061b8e\4.0\scripts\addons\HOps\addon\panel\settings\__init__.py", line 18, in poll
    return active_tool().idname == 'Hops'
AttributeError: 'NoneType' object has no attribute 'idname'
Traceback (most recent call last):
  File "G:\Software\Blender\stable\blender-4.0.0+stable.878f71061b8e\4.0\scripts\addons\HOps\addon\panel\settings\modifiers.py", line 17, in poll
    return active_tool().idname == 'Hops'
AttributeError: 'NoneType' object has no attribute 'idname'
Traceback (most recent call last):
  File "G:\Software\Blender\stable\blender-4.0.0+stable.878f71061b8e\4.0\scripts\addons\HOps\addon\panel\settings\smartshape.py", line 16, in poll
    return active_tool().idname == 'Hops'
AttributeError: 'NoneType' object has no attribute 'idname'
Traceback (most recent call last):
  File "G:\Software\Blender\stable\blender-4.0.0+stable.878f71061b8e\4.0\scripts\addons\HOps\addon\panel\settings\misc.py", line 17, in poll
    return active_tool().idname == 'Hops'
AttributeError: 'NoneType' object has no attribute 'idname'
fake_module: addon missing 'bl_info' gives bad performance!: 'G:\\Software\\Blender\\stable\\blender-4.0.0+stable.878f71061b8e\\4.0\\scripts\\addons\\base_ops.py'
Read blend: "G:\YandexDisk\Projects\Zaletnoe\jango cat\1.3D\catjango.blend"
WARN (bpy.rna): C:\Users\blender\git\blender-v400\blender.git\source\blender\python\intern\bpy_rna.cc:1349 pyrna_enum_to_py: current value '0' matches no enum in 'Scene', 'Sticker Grad', 'trimsheetlibs'
WARNING: No Trimsheet Libraries registered!
Traceback (most recent call last):
  File "G:\Software\Blender\stable\blender-4.0.0+stable.878f71061b8e\4.0\scripts\addons\HOps\addon\panel\settings\__init__.py", line 66, in poll
    return active_tool().idname == 'Hopsedit'
AttributeError: 'NoneType' object has no attribute 'idname'
Traceback (most recent call last):
  File "G:\Software\Blender\stable\blender-4.0.0+stable.878f71061b8e\4.0\scripts\addons\HOps\addon\panel\settings\__init__.py", line 18, in poll
    return active_tool().idname == 'Hops'
AttributeError: 'NoneType' object has no attribute 'idname'
Traceback (most recent call last):
  File "G:\Software\Blender\stable\blender-4.0.0+stable.878f71061b8e\4.0\scripts\addons\HOps\addon\panel\settings\modifiers.py", line 17, in poll
    return active_tool().idname == 'Hops'
AttributeError: 'NoneType' object has no attribute 'idname'
Traceback (most recent call last):
  File "G:\Software\Blender\stable\blender-4.0.0+stable.878f71061b8e\4.0\scripts\addons\HOps\addon\panel\settings\smartshape.py", line 16, in poll
    return active_tool().idname == 'Hops'
AttributeError: 'NoneType' object has no attribute 'idname'
Traceback (most recent call last):
  File "G:\Software\Blender\stable\blender-4.0.0+stable.878f71061b8e\4.0\scripts\addons\HOps\addon\panel\settings\misc.py", line 17, in poll
    return active_tool().idname == 'Hops'
AttributeError: 'NoneType' object has no attribute 'idname'
Error: Failed to read blend file 'G:\YandexDisk\Resources\!3DSHIT\Blender\Asset Library\EEVEE-Cycles-Materials\cw Other\cw_random_color.blend': Missing DNA block
RetopoFlow keymaps path: G:\Software\Blender\stable\blender-4.0.0+stable.878f71061b8e\4.0\scripts\addons\RetopoFlow\RetopoFlow_keymaps.json
RetopoFlow: Starting... keymaps and actions 0.00
RetopoFlow: Starting... statusbar and marking 0.00
RetopoFlow: Starting... undo 0.00
RetopoFlow: storing clip distances: 0.009999999776482582 1000.0
RetopoFlow: storing view: <Vector (0.2515, -0.0978, 0.5628)> 1.1674233675003052
RetopoFlow: computing unit scaling factor
  Unit scaling factor: 3.8466900629171175
RetopoFlow: scaling to unit box
RetopoFlow: scaling to factor=3.8466900629171175, view='SCALE', clip='OVERRIDE', mesh='SCALE'
RetopoFlow: Starting... normalizing 0.00
RetopoFlow: Loading maptcap retopoflow_dark.exr G:\Software\Blender\stable\blender-4.0.0+stable.878f71061b8e\4.0\scripts\addons\RetopoFlow\matcaps\retopoflow_dark.exr
RetopoFlow: Starting... Blender UI 0.00
RetopoFlow: Starting... stylings 0.59
RetopoFlow: Starting Total: 0.61
Addon Common: Loaded font id=25: G:\Software\Blender\stable\blender-4.0.0+stable.878f71061b8e\4.0\scripts\addons\RetopoFlow\addon_common\common\fonts\DroidSans-Blender.ttf
RetopoFlow: Pausing help image preloading
  elapsed: 0.00 secs
RetopoFlow: Setting up target mesh
  elapsed: 0.06 secs
RetopoFlow: Setting up source mesh(es)
  rfsources...
  bboxes...
  drawing...
  done!
  elapsed: 0.71 secs
RetopoFlow: Setting up symmetry data structures
  elapsed: 0.92 secs
RetopoFlow: Setting up rotation target
  elapsed: 0.00 secs
RetopoFlow: Setting up RetopoFlow states
  elapsed: 0.00 secs
RetopoFlow: Setting up RetopoFlow tools
  elapsed: 5.53 secs
RetopoFlow: Setting up grease marks
  elapsed: 0.00 secs
RetopoFlow: Setting up visualizations
  elapsed: 0.00 secs
RetopoFlow: Setting up user interface
  elapsed: 1.17 secs
RetopoFlow: Setting up undo system
  elapsed: 0.00 secs
RetopoFlow: Checking auto save / save
  elapsed: 0.00 secs
RetopoFlow: Checking target symmetry
  elapsed: 0.00 secs
RetopoFlow: Loading welcome message
  elapsed: 0.04 secs
Addon Common: Loaded font id=26: G:\Software\Blender\stable\blender-4.0.0+stable.878f71061b8e\4.0\scripts\addons\RetopoFlow\addon_common\common\fonts\OpenSans-Bold.ttf
Addon Common: Loaded font id=27: G:\Software\Blender\stable\blender-4.0.0+stable.878f71061b8e\4.0\scripts\addons\RetopoFlow\addon_common\common\fonts\DejaVuSansMono.ttf
RetopoFlow: Resuming help image preloading
  elapsed: 0.01 secs
RetopoFlow: done with start
RetopoFlow: unscaling from unit box
RetopoFlow: scaling to factor=1.0, view='RESTORE', clip='RESTORE', mesh='RESTORE'
RetopoFlow: unscaling from unit box
RetopoFlow: scaling to factor=1.0, view='RESTORE', clip='RESTORE', mesh='RESTORE'
yakolokol commented 1 year ago

I've found an ew interesting problem. I start Retopoflow on other mesh and some magic happens: At first, the interface seems to start, but immediately disappears. A Mirror modifier adds to the selected mesh, and the mesh itself scales (in one case it has become larger, in the other - smaller). It looks funny, but no :)

vxlcoder commented 1 year ago

Thanks for the details, @yakolokol.

It looks like several of the other add-ons are throwing exceptions when Blender starts up. I don't think it should cause the problems that you're seeing, but let's try this just in case...

  1. Start blender
  2. File > Defaults > Load Factory Settings, then click Load Factory Settings
  3. Edit > Preferences > Add-ons > Enable RetopoFlow
    • it might be best to click the Save Preferences button in the bottom-left corner and then restart Blender
  4. Start RetopoFlow on the default cube by creating new target at cursor
  5. If RetopoFlow does not work correctly...
    1. Close RF
    2. Try the Save Preferences option above, restart Blender, and test again...?
    3. But, then Open the system console,
    4. Copy-paste all the text as a reply (same as you just did)
  6. If RF did work correctly... let's try against you blend
  7. Close RF
  8. Try opening your other .blend file that you've been trying to work on
  9. Start RF
  10. If it doesn't work....
    1. copy-paste the text in system console here
  11. If it does work, then it's likely one of the other add-ons.
    1. try enabling your add-ons you had enabled before, but do it one at a time.

i know this may seems complicated. basically, i'm trying to understand if it's another add-on that interacting with RF, or if it's your current .blend file setup that's not playing with RF, or something else.

thanks for helping us debug this issue!

SunBroTHE1 commented 1 year ago

Just tried what you saggested and it fixed everything with RF. Thank you for help!

vxlcoder commented 1 year ago

glad to hear, @SunBroTHE1!

Zinume commented 1 year ago

Hi! I have the same bug, I did everything but still doesn't work. My log is here:

Read prefs: "C:\Users\Dave\AppData\Roaming\Blender Foundation\Blender\4.0\config\userpref.blend"
Addon Common: use_bgl_default=False use_gpu_default=True use_gpu_scissor=True
Addon Common: {'backend': 'OPENGL', 'device': 'NVIDIA', 'vendor': 'NVIDIA Corporation', 'renderer': 'NVIDIA GeForce RTX 3070/PCIe/SSE2', 'version': '4.6.0 NVIDIA 537.13', 'compute_shader_support_get': True, 'hdr_support_get': False, 'max_batch_indices_get': 1048576, 'max_batch_vertices_get': 1048576, 'max_texture_layers_get': 2048, 'max_texture_size_get': 32768, 'max_textures_frag_get': 32, 'max_textures_geom_get': 32, 'max_textures_get': 192, 'max_textures_vert_get': 32, 'max_uniforms_frag_get': 4096, 'max_uniforms_vert_get': 4096, 'max_varying_floats_get': 124, 'max_vertex_attribs_get': 16, 'shader_image_load_store_support_get': True}
RetopoFlow: Initial load
RetopoFlow git: None
RetopoFlow options path: C:\Users\Dave\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\RetopoFlow\RetopoFlow_options.json
cgcookie addon: Verbose is enabled
cgcookie addon: Read in JSON settings from file
RetopoFlow keymaps path: C:\Users\Dave\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\RetopoFlow\RetopoFlow_keymaps.json
RetopoFlow: Starting... keymaps and actions 0.00
RetopoFlow: Starting... statusbar and marking 0.00
RetopoFlow: Starting... undo 0.00
RetopoFlow: storing clip distances: 0.009999999776482582 1000.0
RetopoFlow: storing view: <Vector (-0.0000, -0.0000, -0.0000)> 17.986562728881836
RetopoFlow: computing unit scaling factor
  Unit scaling factor: 5.0
RetopoFlow: scaling to unit box
RetopoFlow: scaling to factor=5.0, view='SCALE', clip='OVERRIDE', mesh='SCALE'
RetopoFlow: Starting... normalizing 0.00
RetopoFlow: Loading maptcap retopoflow_dark.exr C:\Users\Dave\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\RetopoFlow\matcaps\retopoflow_dark.exr
RetopoFlow: Starting... Blender UI 0.00
RetopoFlow: Starting... stylings 0.43
RetopoFlow: Starting Total: 0.43
Addon Common: Loaded font id=25: C:\Users\Dave\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\RetopoFlow\addon_common\common\fonts\DroidSans-Blender.ttf
RetopoFlow: Pausing help image preloading
  elapsed: 0.00 secs
RetopoFlow: Setting up target mesh
  elapsed: 0.00 secs
RetopoFlow: Setting up source mesh(es)
  rfsources...
  bboxes...
  drawing...
  done!
  elapsed: 0.00 secs
RetopoFlow: Setting up symmetry data structures
  elapsed: 0.00 secs
RetopoFlow: Setting up rotation target
  elapsed: 0.00 secs
RetopoFlow: Setting up RetopoFlow states
  elapsed: 0.00 secs
RetopoFlow: Setting up RetopoFlow tools
  elapsed: 0.02 secs
RetopoFlow: Setting up grease marks
  elapsed: 0.00 secs
RetopoFlow: Setting up visualizations
  elapsed: 0.00 secs
RetopoFlow: Setting up user interface
  elapsed: 0.73 secs
RetopoFlow: Setting up undo system
  elapsed: 0.00 secs
RetopoFlow: Checking auto save / save
Addon Common: Loaded font id=26: C:\Users\Dave\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\RetopoFlow\addon_common\common\fonts\OpenSans-Italic.ttf
Addon Common: Loaded font id=27: C:\Users\Dave\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\RetopoFlow\addon_common\common\fonts\DejaVuSansMono.ttf
  elapsed: 0.06 secs
RetopoFlow: Checking target symmetry
  elapsed: 0.00 secs
RetopoFlow: Loading welcome message
  elapsed: 0.07 secs
Addon Common: Loaded font id=28: C:\Users\Dave\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\RetopoFlow\addon_common\common\fonts\OpenSans-Bold.ttf
RetopoFlow: Resuming help image preloading
  elapsed: 0.02 secs
RetopoFlow: done with start
RetopoFlow: unscaling from unit box
RetopoFlow: scaling to factor=1.0, view='RESTORE', clip='RESTORE', mesh='RESTORE'
RetopoFlow: unscaling from unit box
RetopoFlow: scaling to factor=1.0, view='RESTORE', clip='RESTORE', mesh='RESTORE'
akinamexCo commented 1 year ago

I have the same issue, i follow the steps for solve but not working

Blender Console

Read prefs: "C:\Users\SESMO\AppData\Roaming\Blender Foundation\Blender\4.0\config\userpref.blend"
Addon Common: use_bgl_default=False use_gpu_default=True use_gpu_scissor=True
Addon Common: {'backend': 'OPENGL', 'device': 'AMD', 'vendor': 'ATI Technologies Inc.', 'renderer': 'Radeon RX 570 Series', 'version': '4.6.0 Core Profile Context 22.20.27.09.230823', 'compute_shader_support_get': True, 'hdr_support_get': False, 'max_batch_indices_get': 536870911, 'max_batch_vertices_get': 536870911, 'max_texture_layers_get': 2048, 'max_texture_size_get': 16384, 'max_textures_frag_get': 32, 'max_textures_geom_get': 32, 'max_textures_get': 160, 'max_textures_vert_get': 32, 'max_uniforms_frag_get': 8000, 'max_uniforms_vert_get': 8000, 'max_varying_floats_get': 64, 'max_vertex_attribs_get': 32, 'shader_image_load_store_support_get': True}
RetopoFlow: Initial load
RetopoFlow git: None
RetopoFlow options path: C:\Users\SESMO\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\RetopoFlow\RetopoFlow_options.json
cgcookie addon: Verbose is enabled
cgcookie addon: Read in JSON settings from file
RetopoFlow keymaps path: C:\Users\SESMO\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\RetopoFlow\RetopoFlow_keymaps.json
RetopoFlow: Starting... keymaps and actions 0.00
RetopoFlow: Starting... statusbar and marking 0.00
RetopoFlow: Starting... undo 0.00
RetopoFlow: storing clip distances: 0.009999999776482582 1000.0
RetopoFlow: storing view: <Vector (-0.0000, -0.0000, -0.0000)> 17.986562728881836
RetopoFlow: computing unit scaling factor
  Unit scaling factor: 5.0
RetopoFlow: scaling to unit box
RetopoFlow: scaling to factor=5.0, view='SCALE', clip='OVERRIDE', mesh='SCALE'
RetopoFlow: Starting... normalizing 0.00
RetopoFlow: Loading maptcap retopoflow_dark.exr C:\Users\SESMO\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\RetopoFlow\matcaps\retopoflow_dark.exr
RetopoFlow: Starting... Blender UI 0.00
RetopoFlow: Starting... stylings 0.46
RetopoFlow: Starting Total: 0.47
Addon Common: Loaded font id=25: C:\Users\SESMO\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\RetopoFlow\addon_common\common\fonts\DroidSans-Blender.ttf
RetopoFlow: Pausing help image preloading
  elapsed: 0.00 secs
RetopoFlow: Setting up target mesh
  elapsed: 0.00 secs
RetopoFlow: Setting up source mesh(es)
  rfsources...
  bboxes...
  drawing...
  done!
  elapsed: 0.00 secs
RetopoFlow: Setting up symmetry data structures
  elapsed: 0.00 secs
RetopoFlow: Setting up rotation target
  elapsed: 0.00 secs
RetopoFlow: Setting up RetopoFlow states
  elapsed: 0.00 secs
RetopoFlow: Setting up RetopoFlow tools
  elapsed: 0.02 secs
RetopoFlow: Setting up grease marks
  elapsed: 0.00 secs
RetopoFlow: Setting up visualizations
  elapsed: 0.00 secs
RetopoFlow: Setting up user interface
  elapsed: 0.79 secs
RetopoFlow: Setting up undo system
  elapsed: 0.00 secs
RetopoFlow: Checking auto save / save
Addon Common: Loaded font id=26: C:\Users\SESMO\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\RetopoFlow\addon_common\common\fonts\OpenSans-Italic.ttf
Addon Common: Loaded font id=27: C:\Users\SESMO\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\RetopoFlow\addon_common\common\fonts\DejaVuSansMono.ttf
  elapsed: 0.07 secs
RetopoFlow: Checking target symmetry
  elapsed: 0.00 secs
RetopoFlow: Loading welcome message
  elapsed: 0.00 secs
RetopoFlow: Resuming help image preloading
  elapsed: 0.00 secs
RetopoFlow: done with start
RetopoFlow: saving backup to C:\Users\SESMO\RetopoFlow_backup.blend
  saving...
Info: Total files 0 | Changed 0 | Failed 0
Info: Saved "RetopoFlow_backup.blend"
yakolokol commented 1 year ago

Well, loading default settings helped (ah, shit, it will probably take hours to set all again). But when I load my work wile and start RF, I see this: image But all tools works fine. Well, time to set up all my blender again :) Will message you after.

vxlcoder commented 1 year ago

Thanks for the details!

@Zinume and @akinamexCo, I'm not seeing anything in the console that is indicating what's going on. can you upload a screenshot of what Blender looks like when you start RF on default scene with the default cube?

@yakolokol, i'm sorry for the hassle, and I really do appreciate your willingness here! I'm digging into this today. Does RF look like this when you start RF on the default scene?

yakolokol commented 1 year ago

Thanks for the details!

@Zinume and @akinamexCo, I'm not seeing anything in the console that is indicating what's going on. can you upload a screenshot of what Blender looks like when you start RF on default scene with the default cube?

@yakolokol, i'm sorry for the hassle, and I really do appreciate your willingness here! I'm digging into this today. Does RF look like this when you start RF on the default scene?

Well, I backed up my settings and turned off all other addons — looks like RF works fine right now. Will work more and add some addons — will tell you if something broke it

vxlcoder commented 1 year ago

thank you!

is RF still missing all the text, but drawing everything else?

(spinning up my Windows machine to run tests with Blender 4.0.1 and RF 3.4.2beta)

vxlcoder commented 1 year ago

I just tested on my tester Windows Server 2019 machine (via PaperSpace) with Blender 4.0.1 and RF 3.4.2beta, and everything seems to be working as expected (see screenshot below). I'll test it on a physical Windows 10 machine later today.

image

You can download and test out RF 3.4.2beta using this temp link: https://www.dropbox.com/scl/fi/7itaxnh7dmn8op7wpsp5w/RetopoFlow_v3.4.2-beta-GitHub.zip?rlkey=ztrd3stsibrjbmjtk3w8g7w41&dl=0

I am very curious if one of your add-ons causes problems. looking over what you had posted earlier, it seems that base_ops, Scatter5, TexTools_1_5, photographer, and HOps all reported errors to the console.

actually, base_ops.py in your root add-on folder (G:\\Software\\Blender\\stable\\blender-4.0.0+stable.878f71061b8e\\4.0\\scripts\\addons) might be the issue. I'm not sure where that file came from... do you have any ideas? in that folder, you should only see more folders, one for each of the add-ons that you've installed.

image

Zinume commented 1 year ago

I use the Steam version, uninstalled it, and deleted all previous Roaming files for a clean start (I also did all this with the version from Blender.org). I then chose not to transfer my previous settings and addons (while doing this step, I noticed that Retopoflow was breaking, showing the following: Retopoflow (broken) in the Blender viewport).

Despite starting as clean as possible, the bug persisted. I am attaching the two addon folders used by my Blender on Windows: the local files and those in Roaming where Retopoflow is installed on my machine. In the local files, there are many addons that appear to be from Blender. Could these be the ones causing interference?

ss2 ss3 ss1 ss4

vxlcoder commented 1 year ago

ok, I was able to reproduce one of the issues...

image

unfortunately, i think this is a blender issue, not RF, but i'll see if we can workaround it.

vxlcoder commented 1 year ago

I can consistently reproduce it in Blender 4.0.1 in Windows 10 by opening the RF menu, then clicking on one of the options to start RF without moving the mouse. RF launches, but the RF Blender menu stays in view, and it essentially breaks Blender's interface.

NOTE: this does not happen in Blender 3.6.5 LTS! so, something changed between Blender 3.6 -> 4.0 where changing contexts with a menu open breaks the interface.

will try to reproduce this in a smaller example to submit as issue to Blender.

I wonder if this issue could be compounded by other add-ons causing a slowdown in Blender....

vxlcoder commented 1 year ago

commit 78651d0 might workaround this issue. i was not able to reproduce this issue after making the change.

will test a bit more and then post a new zip once I feel it's ready for public testing.

vxlcoder commented 1 year ago

i don't think this issue has to do with changing contexts (ex: switching from edit mode to object mode), because launching the RF help system (which doesn't change modes) also crashing the interface if the mouse doesn't move from the menu before the modal is started.

it might be due to hiding the menu bar when the menu to still open...

mattybisme commented 1 year ago

Same issue as 1st post, running on intel Mac

DrPepeR commented 1 year ago

Same issue here, despite moving the mouse, the interface stays in. RF was working perfectly in 3.6.5. already tied the beta and it does the same.

DrPepeR commented 1 year ago

A way to "fix it" is to spam the ESC button as soon as you click on the action to start RF (either start on selected or on cursor)

mattybisme commented 1 year ago

can confirm retopoflow is working on Blender 3.6, broken on 4.0

mattybisme commented 1 year ago

I know it's been a few days, but have you (devs) been able to duplicate the problem? any hopes for a fix?

vxlcoder commented 1 year ago

thanks for the reminder ping, @mattybisme!

I have a version that I think should work, but it was still needing some additional testing.

if you're willing, please download and install RF v3.4.2 from this temp link: https://www.dropbox.com/scl/fi/7itaxnh7dmn8op7wpsp5w/RetopoFlow_v3.4.2-beta-GitHub.zip?rlkey=ztrd3stsibrjbmjtk3w8g7w41&dl=0

mattybisme commented 1 year ago

thanks vxlcoder! I've just tried it out and, so far, it's fixed the startup freeze. A most welcom fix! Will put some time into testing it more.

yakolokol commented 1 year ago

thanks for the reminder ping, @mattybisme!

I have a version that I think should work, but it was still needing some additional testing.

if you're willing, please download and install RF v3.4.2 from this temp link: https://www.dropbox.com/scl/fi/7itaxnh7dmn8op7wpsp5w/RetopoFlow_v3.4.2-beta-GitHub.zip?rlkey=ztrd3stsibrjbmjtk3w8g7w41&dl=0

I'm trying to install this build. but getting this: image

Tarmunds commented 1 year ago

HI, based on the beta version you provided i just modified the init.py with this double checked if the var enable_only_once is present in the DeepDebug.init

and it fix the problem for me on the 4.0.1 of blender

here's the code :

from .addon_common.terminal.deepdebug import DeepDebug

if 'enable_only_once' in DeepDebug.init.__code__.co_varnames:
    DeepDebug.init(
        fn_debug='RetopoFlow_debug.txt',
        clear=True,  # clear deep debugging file every Blender session
        enable_only_once=True,  # only allow this feature to be enabled for one session
    )
else:
    DeepDebug.init(
        fn_debug='RetopoFlow_debug.txt',
        clear=True,  # clear deep debugging file every Blender session
    )

BTW thanks for this awesome tool !

thanks for the reminder ping, @mattybisme!

I have a version that I think should work, but it was still needing some additional testing.

if you're willing, please download and install RF v3.4.2 from this temp link: https://www.dropbox.com/scl/fi/7itaxnh7dmn8op7wpsp5w/RetopoFlow_v3.4.2-beta-GitHub.zip?rlkey=ztrd3stsibrjbmjtk3w8g7w41&dl=0

vxlcoder commented 1 year ago

thanks for details everyone. working on this issue this morning

vxlcoder commented 1 year ago

@Tarmunds, thanks for the suggested change! but i'm confused why that change would be needed... it's as if the DeepDebug class is out of sync (init has different signature), or there are two DeepDebug classes. The latter should not happen, because DeepDebug is imported relative to the __init__.py. I just looked at the zip file i linked before, and it has the correct signature (see screenshot). can you check your version to see if it matches?

image

jlampel commented 1 year ago

Testing out RF 3.4.2 with Blender 4.0.0 on Windows and it appears to be fixed on my end.

hunnilou commented 1 year ago

Hello! Same issue as OP. Brand new install of Blender 4.0 with no add-ons. I was so excited to try this out so hopefully a fix is close Tried RF in the default scene with a cube, no dice

hunnilou commented 1 year ago

Tried to enable the beta in Preferences > Add-ons and got the following error Screenshot 2023-11-23 112433

vxlcoder commented 1 year ago

ok. will post updated version later this morning

vxlcoder commented 1 year ago

@hunnilou, i just checked again, and the officially packaged zips, and they work as expected.

Can you please tell me where you got the RF add-on zip file from that you're installing?

It seems the version you have has files that are out of date.

@yakolokol and @Tarmunds, where did you two get the RF zip file?

You can either download it from Blender Market or from the GitHub Releases. if you get it from GH, do not use the Source Code links, but the RetopoFlow_v3.4.2-GitHub.zip link.

image

vxlcoder commented 1 year ago

Also, you might try removing RF from Blender (not disable, but click remove button), restart Blender, then install RF from zip again.

we'll get you retopo'ing soon!

hunnilou commented 1 year ago

Oh! I wasn't aware an updated version was posted yesterday, I was still trying to use v3.4.1/v3.4.2_beta. Sorry facepalm Just installed 3.4.2 and it seems to be working fine! Woohoo! Now I just need to get used to Blender controls. I don't suppose you'd ever make a version for Autodesk software? :')

vxlcoder commented 1 year ago

wonderful! thanks for the report!

we do not have an Autodesk key map, but we do have a basic key map editor, so you can customize RF to your liking (it's clunky. but it works. it is something I would like to improve someday...). we haven't tested all possible key map setups, so let us know if you run into problems.

yakolokol commented 1 year ago

@hunnilou, i just checked again, and the officially packaged zips, and they work as expected.

Can you please tell me where you got the RF add-on zip file from that you're installing?

It seems the version you have has files that are out of date.

@yakolokol and @Tarmunds, where did you two get the RF zip file?

You can either download it from Blender Market or from the GitHub Releases. if you get it from GH, do not use the Source Code links, but the RetopoFlow_v3.4.2-GitHub.zip link.

image

I used file from your dropbox link. Gonna check release version soon

yakolokol commented 1 year ago

Looks like everything fine! Thank yous so much!

And question I always wanted to ask: what can I do for smoother workflow? I mean, in default blender edit mod everything is superfast and smooth, but inside RF its laggy and kinda "slideshow": I wait for a second to highlight face, or couple seconds to delete face. And Relax is the laggiest tool for me. I have R9 3900, 2070S and 64GB RAM.

vxlcoder commented 1 year ago

glad to hear!

how many polygons does your low-poly target mesh have? can you send an example .blend file that runs slow to us? you can send it to retopoflow@cgcookie.com

yakolokol commented 1 year ago

glad to hear!

how many polygons does your low-poly target mesh have? can you send an example .blend file that runs slow to us? you can send it to retopoflow@cgcookie.com

Hi! Did you get my file?

vxlcoder commented 1 year ago

@yakolokol I don't think I received it by email. I just double checked in the spam folder, but I didn't see anything that looks like it is from you. can you try resending it? if you sent the .blend file as an attachment, maybe try sending as link instead?

applitect1 commented 1 year ago

@vxlcoder This issue is still happening in situations involving not actually starting Retopoflow. Below is how I'm consistently reproducing this.

Start Blender > Click the Retopoflow button > Expand the Advanced tab > Click any of the Help buttons or Settings (gear) buttons

Hope this helps!

vxlcoder commented 1 year ago

thanks, @applitect1. it's likely related... will take a look at this.

jlampel commented 12 months ago

Can confirm, this happens whenever I attempt to open the keymap editor.