wingtorres / morphometrix

A PyQt5 Gui for photogrammetry and morphometry
MIT License
17 stars 7 forks source link

MorphoMetriX crashes #12

Closed agatheserres closed 1 year ago

agatheserres commented 2 years ago

@wingtorres I am facing an issue that seems to have been mentioned before. I installed everything as indicated and I can successfully open the GUI and charge an image. I can select "Measure Length", draw the line, but when I select "Measure Widths", MorphoMetriX crashes with the following error / traceback: Traceback (most recent call last): File "C:\Users\Agathe\Documents\morphometrix\morphometrix__main__.py", line 746, in measure_widths t_i = np.array([root_scalar(gauss_legendre, x0 = s_i, bracket = [-1,1], method = "bisect", File "C:\Users\Agathe\Documents\morphometrix\morphometrix__main__.py", line 747, in args = (bezier, self.Q, self.kb-1, True, s, self.l) ).root for s in s_i]) AttributeError: 'imwin' object has no attribute 'Q'

Could you please help me with this issue?

WilliamCarlos commented 1 year ago

A stop gap solution is to include multiple points when you are measuring the length, i.e. try clicking the head of the whale, the mid section, and the tail. Haven't tracked down the root cause, but should unblock you in the meantime.

agatheserres commented 1 year ago

Thank you for your answer! After days of trying to find a way, I finally mannaged to re-install the conda version that works, even though there are some differences with the new version... Hope you will find a way to fix it!

Thanks a lot Agathe

Agathe Serres Postdoctoral fellow Institute of Deep Sea Science and Engineering, Sanya, China @. @. @.**>

Le lun. 3 oct. 2022 à 13:55, William Lee @.***> a écrit :

A stop gap solution is to include multiple points when you are measuring the length, i.e. try clicking the head of the whale, the mid section, and the tail. Haven't tracked down the root cause, but should unblock you in the meantime.

— Reply to this email directly, view it on GitHub https://github.com/wingtorres/morphometrix/issues/12#issuecomment-1264968408, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2Q7PKPSD3VDPUE2AIIHQJ3WBJYOPANCNFSM56RV6CIQ . You are receiving this because you authored the thread.Message ID: @.***>

miguelblazquezhervas commented 1 year ago

Dear @wingtorres,

I contacted you some days ago via email to inform you about a crash when using morphometrix. I see it is the same problem as described in this thread. When I draw a line between two points on the image I am able to extract the length from it. However, if I try to measure widths, areas or angles the program will crash shortly after clicking on the buttons. I have this problem on a PC with the newest morphometrix version (git bush). Interestingly, none of this happens when using the program on a Mac with the older conda version.

This is the code I got when the crash occurred:

python -m morphometrix qt.webenginecontext:

GL Type: desktop Surface Type: OpenGL Surface Profile: CompatibilityProfile Surface Version: 4.6 QSG RHI Backend: OpenGL Using Supported QSG Backend: yes Using Software Dynamic GL: no Using Multithreaded OpenGL: yes

Init Parameters:

js: Error with Permissions-Policy header: Origin trial controlled feature not enabled: 'interest-cohort'. Traceback (most recent call last): File "C:\Users\Usuario\Desktop\morphometrix\morphometrix__main__.py", line 746, in measure_widths t_i = np.array([root_scalar(gauss_legendre, x0 = s_i, bracket = [-1,1], method = "bisect", ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Usuario\Desktop\morphometrix\morphometrix__main__.py", line 747, in args = (bezier, self.Q, self.kb-1, True, s, self.l) ).root for s in s_i]) ^^^^^^ AttributeError: 'imwin' object has no attribute 'Q'

Hope you can find a way to fix this issue. The program is great!

Many thanks,

Miguel.