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

PolyPen: Unhandled Exception Caught: Exception caught #1360

Open
3 tasks
loewi7 opened this issue Nov 27, 2024 · 6 comments
Open
3 tasks

PolyPen: Unhandled Exception Caught: Exception caught #1360

loewi7 opened this issue Nov 27, 2024 · 6 comments

Comments

@loewi7
Copy link

loewi7 commented Nov 27, 2024

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.

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:

  • {I wouldn't know how to replicate.}

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

loewi7 commented Nov 27, 2024

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

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

loewi7 commented Nov 28, 2024

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.handle_exception: maximum recursion depth exceeded while calling a Python object", and there are countless reports saying "Caught Exception while trying to merge
vert_splice(...): 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
Copy link
Author

loewi7 commented Nov 28, 2024

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

  • Time: 2024-11-28 11:11:27.220333
  • Count: 1
  • Hash: 300efe6cf76645be922c477b3cc80334
  • Info:
    • EXCEPTION (<class 'RecursionError'>): maximum recursion depth exceeded while calling a Python object
    • C:\Users\loewi\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\retopoflow\retopoflow\rfmesh\rfmesh_wrapper.py
      
    • 000 0234:() return any(bmv1 in bme.verts for bme in bmv0.link_edges if bme.is_valid)
    • 001 0234:share_edge() return any(bmv1 in bme.verts for bme in bmv0.link_edges if bme.is_valid)
    • 002 0287:merge_robust() if self.share_edge(other):
    • 003 0277:merge() return self.merge_robust(other)
    • 004 0294:merge_robust() bmv = self.merge(other)
    • 005 0277:merge() return self.merge_robust(other)
    • 006 0294:merge_robust() bmv = self.merge(other)
    • 007 0277:merge() return self.merge_robust(other)
    • 008 0294:merge_robust() bmv = self.merge(other)
    • 009 0277:merge() return self.merge_robust(other)
    • 010 0294:merge_robust() bmv = self.merge(other)
    • 011 0277:merge() return self.merge_robust(other)
    • 012 0294:merge_robust() bmv = self.merge(other)
    • 013 0277:merge() return self.merge_robust(other)
    • 014 0294:merge_robust() bmv = self.merge(other)
    • 015 0277:merge() return self.merge_robust(other)
    • 016 0294:merge_robust() bmv = self.merge(other)
    • 017 0277:merge() return self.merge_robust(other)
    • 018 0294:merge_robust() bmv = self.merge(other)
    • 019 0277:merge() return self.merge_robust(other)
    • 020 0294:merge_robust() bmv = self.merge(other)
    • 021 0277:merge() return self.merge_robust(other)
    • 022 0294:merge_robust() bmv = self.merge(other)
    • 023 0277:merge() return self.merge_robust(other)
    • 024 0294:merge_robust() bmv = self.merge(other)
    • 025 0277:merge() return self.merge_robust(other)
    • 026 0294:merge_robust() bmv = self.merge(other)
    • 027 0277:merge() return self.merge_robust(other)
    • 028 0294:merge_robust() bmv = self.merge(other)
    • 029 0277:merge() return self.merge_robust(other)
    • 030 0294:merge_robust() bmv = self.merge(other)
    • 031 0277:merge() return self.merge_robust(other)
    • 032 0294:merge_robust() bmv = self.merge(other)
    • 033 0277:merge() return self.merge_robust(other)
    • 034 0294:merge_robust() bmv = self.merge(other)
    • 035 0277:merge() return self.merge_robust(other)
    • 036 0294:merge_robust() bmv = self.merge(other)
    • 983 0277:merge() return self.merge_robust(other)
    • 984 0294:merge_robust() bmv = self.merge(other)
    • C:\Users\loewi\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\retopoflow\retopoflow\rf\rf_target.py
      
    • 985 1055:merge_verts_by_dist() bmv1.merge_robust(bmv)
    • C:\Users\loewi\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\retopoflow\retopoflow\rftool_polypen\polypen.py
      
    • 986 0239:modal_move() self.rfcontext.merge_verts_by_dist(self.bmverts, options['polypen merge dist'])
    • .../common\fsm.py
      
    • 987 0169:wrapped() return fn(*args, **kwargs)
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      CookieCutter_Exceptions._callback_exception_callbacks: maximum recursion depth exceeded while calling a Python object
      RF_UI.handle_exception: maximum recursion depth exceeded while calling a Python object
      Info: Total files 1 | Changed 0 | Failed 0
      Info: Saved "RetopoFlow_backup_EMERGENCY.blend"
      Addon Common: Loaded font id=27: C:\Users\loewi\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\retopoflow\addon_common\common\fonts\DejaVuSansMono.ttf
      GitHub: Not reported, yet

@vxlcoder
Copy link
Contributor

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

loewi7 commented Nov 28, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants