CGCookie / retopoflow

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

PolyPen: Unhandled Exception Caught: Exception caught #1360

Open loewi7 opened 5 days ago

loewi7 commented 5 days 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:

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

Issue Template

[BUG]Polypen instant crash:

{After opening Retopoflow and trying to use the polypen, it instantly crashes. This applies to every single object and file I try, even with the default cube. As I used the addon often before (also yesterday) without problems, I have to assume it's a bug.}

{ RetopoFlow_screenshot }

How to Reproduce:

{attach any files needed to replicate the issue}

Automatically Generated Info

Environment:

- RetopoFlow: 3.4.3
- Build: CG Cookie built for Blender Market
- Blender: 4.02.0 blender-v4.2-release 2024-07-16
- Platform: Windows, 10, 10.0.19045, AMD64, Intel64 Family 6 Model 183 Stepping 1, GenuineIntel
- GPU: {'backend': 'OPENGL', 'device': 'NVIDIA', 'vendor': 'NVIDIA Corporation', 'renderer': 'NVIDIA GeForce RTX 4070/PCIe/SSE2', 'version': '4.6.0 NVIDIA 560.94', 'compute_shader_support_get': True, 'hdr_support_get': False, 'max_batch_indices_get': 1048576, 'max_batch_vertices_get': 1048576, 'max_images_get': 8, '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}
- Timestamp: 2024-11-27 11:25:29.921110

Runtime:

- Undo: insert, insert, select
- Error Hash: 361bbacce58a0f531f27d189eb21733b

Trace:

- EXCEPTION (<class 'RuntimeError'>): Error: Python: Traceback (most recent call last):
-   File "C:\Program Files\Blender Foundation\Blender 4.2\4.2\python\Lib\webbrowser.py", line 609, in open
-     os.startfile(url)
- ValueError: startfile: filepath too long for Windows
- Location: C:\Program Files\Blender Foundation\Blender 4.2\4.2\scripts\modules\bpy\ops.py:109
- 
-     C:\Program Files\Blender Foundation\Blender 4.2\4.2\scripts\modules\bpy\ops.py
- 000 0109:__call__() ret = _op_call(self.idname_py(), kw)
-     C:\Users\loewi\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\retopoflow\retopoflow\rf\rf_ui_alert.py
- 001 0171:report() bpy.ops.wm.url_open(url=url)
-     .../common\ui_core_events.py
- 002 0069:<lambda>() callback = lambda e: old_callback()
- 003 0092:_fire_event() cb(details)
- 004 0098:_fire_event() raise e
- 005 0129:dispatch_event() self._fire_event(event, ui_event)
-     .../common\ui_document.py
- 006 0559:mousedown_exit() under_mouseclick.dispatch_event('on_mouseclick')
-     .../common\fsm.py
- 007 0169:wrapped() return fn(*args, **kwargs)
loewi7 commented 5 days ago

EDIT: I just tried with Blender 4.0 instead of 4.2 and this error did not occur! So it's probably a Bug related to the newest version!

vxlcoder commented 5 days ago

Thanks for the report, @loewi7.

What is strange is that this particular error happens with bpy.ops.wm.url_open, where the filepath is too long... in other words, this appears to be an issue with Blender or your OS than with RF. What is your default web browser set to? I'll look into this a bit more.

But, was there another error before this? This error looks like it's related to reporting an issue, which happens after another issue.

The next time this issue (or another) appears, can you open the terminal window and copy everything you see in the window (there could be a lot) and paste it here? Directions for opening the terminal are at https://docs.retopoflow.com/debugging.html#windows.

Thanks!

loewi7 commented 4 days ago

My default browser is Chrome, and as search engine inside Chrome I use Ecosia.

Anyways, the error that I seem to get repeatedly, says "_RF_UI.handleexception: maximum recursion depth exceeded while calling a Python object", and there are countless reports saying "_Caught Exception while trying to merge vertsplice(...): vert arguments match, Will try more robust merge" - not sure what that means but that seems to be the issue, no?

There wasn't really an error before that, but I will copy the info from the terminal in my next comment!

loewi7 commented 4 days ago

RetopoFlow keymaps path: C:\Users\loewi\AppData\Roaming\Blender Foundation\Blender\4.2\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.0666, 0.0525, 0.3818)> 1.7827959060668945 RetopoFlow: computing unit scaling factor Unit scaling factor: 4.873327645485417 RetopoFlow: scaling to unit box RetopoFlow: scaling to factor=4.873327645485417, view='SCALE', clip='OVERRIDE', mesh='SCALE' RetopoFlow: Starting... normalizing 0.00 RetopoFlow: Loading maptcap retopoflow_dark.exr C:\Users\loewi\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\retopoflow\matcaps\retopoflow_dark.exr RetopoFlow: Starting... Blender UI 0.00 RetopoFlow: Starting... stylings 0.28 RetopoFlow: Starting Total: 0.28 DPI CHANGED: 1.0 -> 1.25 Addon Common: Loaded font id=26: C:\Users\loewi\AppData\Roaming\Blender Foundation\Blender\4.2\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: 1.30 secs RetopoFlow: Setting up symmetry data structures elapsed: 0.99 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.01 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.42 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.00 secs RetopoFlow: Resuming help image preloading elapsed: 0.00 secs RetopoFlow: done with start Caught Exception while trying to merge vert_splice(...): vert arguments match Will try more robust merge Caught Exception while trying to merge vert_splice(...): vert arguments match Will try more robust merge Caught Exception while trying to merge vert_splice(...): vert arguments match Will try more robust merge Caught Exception while trying to merge vert_splice(...): vert arguments match Will try more robust merge Caught Exception while trying to merge vert_splice(...): vert arguments match Will try more robust merge Caught Exception while trying to merge vert_splice(...): vert arguments match Will try more robust merge Caught Exception while trying to merge vert_splice(...): vert arguments match Will try more robust merge Caught Exception while trying to merge vert_splice(...): vert arguments match Will try more robust merge Caught Exception while trying to merge vert_splice(...): vert arguments match Will try more robust merge Caught Exception while trying to merge vert_splice(...): vert arguments match Will try more robust merge FSM: Caught exception in modal_move (loc:C:\Users\loewi\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\retopoflow\retopoflow\rftool_polypen\polypen.py:234, state:"move", substate:"main") Exception: maximum recursion depth exceeded while calling a Python object


Exception Info

vxlcoder commented 4 days ago

perfect! ok, now it makes sense about the "too long" report, because the report was really long and I wasn't checking the length of report. will take a look at the recursion depth error when I get a chance. is this issue happening consistently for you?

loewi7 commented 4 days ago

Thank you :) yep it’s really long lol. In Blender 4.2, yes, it crashes consistently - this is strange because it worked 2 days ago. For now, I can evade to the 4.0 version and run RF without problems, but of course it would be interesting to know what exactly causes this issue.