Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
3 tasks
yakolokol opened this issue Nov 16, 2023 · 47 comments
Open
3 tasks

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

yakolokol opened this issue Nov 16, 2023 · 47 comments

Comments

@yakolokol
Copy link

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:

  • Read through the README.md file in the branch used to assure the process taken is correct
  • Check the existing issues and pull requests to make sure the issue has not already been reported and/or fixed.
  • You can replicate the bug and will provide as much info as possible with blend files, screenshots, logfiles, as well as show the expected result and actual result.

 

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
Copy link
Contributor

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!

@SunBroTHE1
Copy link

SunBroTHE1 commented Nov 16, 2023

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
Copy link
Contributor

vxlcoder commented Nov 16, 2023

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

A few questions for you

  • I see the paths are C:\Users\"username"\.... is your username for your windows system really "username", or did you modify it for privacy reasons? fine if latter, but if you didn't modify it then it could be a path issue.
  • also with the path, I see ...\scripts\addons\retopoflow-master\.... this implies that you downloaded RetopoFlow from GitHub using the Download ZIP link on the front page of the project (see screenshot below) or the Source code (zip) links on Releases page. Doing it this way is known to have problems, which could be similar to the previous item. instead you should use the RetopoFlow_vX.Y.Z-GitHub.zip link on the releases page or the RetopoFlow_vX.Y.Z-BlenderMarket.zip through the Blender Market. the reason this is an issue is because GH zips up the project in a way that's not super compatible with Blender. in particular, the - between retopoflow and master causes problems. The officially packaged versions are zipped correctly and should work as expected

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
Copy link
Author

yakolokol commented Nov 17, 2023

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
Copy link
Author

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
Copy link
Contributor

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
Copy link

SunBroTHE1 commented Nov 17, 2023

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

  • Yeah, i used "username" to hide my real username
  • Next time will attache RF breaks

@vxlcoder
Copy link
Contributor

glad to hear, @SunBroTHE1!

@Zinume
Copy link

Zinume commented Nov 17, 2023

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
Copy link

akinamexCo commented Nov 18, 2023

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
Copy link
Author

yakolokol commented Nov 18, 2023

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
Copy link
Contributor

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
Copy link
Author

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
Copy link
Contributor

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
Copy link
Contributor

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
Copy link

Zinume commented Nov 18, 2023

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
Copy link
Contributor

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
Copy link
Contributor

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 added a commit that referenced this issue Nov 18, 2023
prevent drawing RF menu when RF starts up
@vxlcoder
Copy link
Contributor

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
Copy link
Contributor

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
Copy link

Same issue as 1st post, running on intel Mac

@DrPepeR
Copy link

DrPepeR commented Nov 20, 2023

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
Copy link

DrPepeR commented Nov 20, 2023

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
Copy link

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

@mattybisme
Copy link

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

@vxlcoder
Copy link
Contributor

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
Copy link

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
Copy link
Author

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
Copy link

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
Copy link
Contributor

thanks for details everyone. working on this issue this morning

@vxlcoder
Copy link
Contributor

@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
Copy link
Member

jlampel commented Nov 22, 2023

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

@hunnilou
Copy link

hunnilou commented Nov 23, 2023

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
Copy link

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

@vxlcoder
Copy link
Contributor

ok. will post updated version later this morning

@vxlcoder
Copy link
Contributor

@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
Copy link
Contributor

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
Copy link

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
Copy link
Contributor

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
Copy link
Author

@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
Copy link
Author

yakolokol commented Nov 23, 2023

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
Copy link
Contributor

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
Copy link
Author

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
Copy link
Contributor

@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
Copy link

@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
Copy link
Contributor

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

@jlampel
Copy link
Member

jlampel commented Dec 8, 2023

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

@jlampel jlampel mentioned this issue Jan 29, 2024
3 tasks
vxlcoder added a commit that referenced this issue Feb 24, 2024
it seems Blender issue T93410
(https://projects.blender.org/blender/blender/issues/93410) is an issue
with Blender 4.0+ again.

this commit works around that issue by not drawing dropdown when CC is
running.  (this could be problematic if RF crashes and the CC variable
doesn't get reset, but restarting Blender will correct this)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests