MM5 scripting, difficult debug experience

Post a reply


In an effort to prevent automatic submissions, we require that you complete the following challenge.
Smilies
:D :) :( :o :-? 8) :lol: :x :P :oops: :cry: :evil: :roll: :wink:

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: MM5 scripting, difficult debug experience

Re: MM5 scripting, difficult debug experience

by stax76 » Tue Feb 21, 2017 11:40 am

Thanks for looking at the z-order, can you also reproduce the lock/freeze issue? If not I could make a screen recording.

Re: MM5 scripting, difficult debug experience

by PetrCBR » Tue Feb 21, 2017 10:56 am

It takes few seconds because of callstack request. Will check wrong zorder position of the window.

Re: MM5 scripting, difficult debug experience

by stax76 » Tue Feb 21, 2017 9:46 am

After working on my new uwp/xaml/c# player project and examining musicbee and quodlibet I played a bit with MM5 again, startup exception didn't happen today, when I cause a exception in my script it still takes always 8 seconds (measured with timer, fast PC with i7 4Ghz CPU), the exception dialog still always shows in the background behind the main dialog, when I confirm the exception dialog there is shortly a dialog with title sending over internet and this dialog looks broken on high DPI, it closes after sending and then comes a dialog asking to restart, if this isn't confirmed instantly withing 2 seconds a second exception dialog shows behind the restart dialog and then everything freezes, now task manager is needed to shut it down. Part of my frustration was that I only noticed today I have to confirm the restart dialog instantly so until today it was always freezing completely and I always had to use task manager to shut it down.

Biggest issues now is waiting 8 seconds for the exception dialog is very long and that it always shows in the background behind the main dialog. I'm also pretty clueless with JavaScript but it's another topic.

Re: MM5 scripting, difficult debug experience

by PetrCBR » Tue Jan 31, 2017 1:56 pm

Will be improved in next build.

Re: MM5 scripting, difficult debug experience

by stax76 » Tue Jan 31, 2017 12:36 pm

Could you make progress on the exception dialog scaling issue? I cannot continue without usable exception dialog. :)

Re: MM5 scripting, difficult debug experience

by PetrCBR » Wed Jan 25, 2017 8:03 am

- it takes 2-3 seconds from exception raised to exception dialog shown, CPU fan speeds up.

It's because of callstack generation ... will see if i can speed up that a little.

- exception dialog don't scale correctly on high DPI making it hard to read and hard to click on buttons: http://www.mediamonkey.com/forum/viewto ... 30&t=86977

I saw that and it's on my todo with high priority

- there is always a second exception dialog that again has DPI issues and uses 2-3 seconds CPU time

Same as above.

- there is a issue with the API docs and error message not being very helpful, it only said param missing but not which file, line and method. http://www.mediamonkey.com/forum/viewto ... 30&t=86976

This definitely need to be improved ... will see what i can do with that.

MM5 scripting, difficult debug experience

by stax76 » Wed Jan 25, 2017 7:54 am

There are a couple of issues and the sum make scripting difficult at the moment.

Top