Re: [Bluemusic-users] Watchdog Threads for Script objects
Brought to you by:
kunstmusik
From: Michael B. <got...@ya...> - 2005-12-07 13:59:56
|
Yeah, if the timeout was configurable, that could be workable. Michael Bechard --- Steven Yi <ste...@gm...> wrote: > Hi Michael, > > I was thinking that if you cancelled the dialog it > would just continue > on and wait another period of the timeout before > showing the dialog > again. I was thinking maybe along the lines of what > you mentioned > with a cancel button that could stop a render of the > CSD, but I think > it might not address the problem if you go to test a > single > soundObject or instrument. I got the idea of the > watchdog initially > from Macromedia's Flash which has a similar setup > where if scripts run > for a long time a dialog shows to ask the user if > they want to cancel > the script or wait. > > I can't imagine a case where an intentionally long > running script > would run indefinitely, but say if a UI is part of > the script's run > where maybe some input from the user is expected, > the user could > modify the program options dialog setting to a very > long time. Do you > think that would be enough? > > steven > > > > On 12/6/05, Michael Bechard <got...@ya...> > wrote: > > There's a danger, I think, in assuming that all > > scripts executed by blue should be short running. > What > > if someone were to execute a python script from > blue > > that had a GUI, for instance? A better approach > might > > be to come up with some sort of thread-pinging > > implementation, though I don't know how feasable > this > > is; you're dealing with virtually any kind of > > executable, python, java, etc. > > > > What about a cancel button in the bottom of the > main > > frame that becomes enabled when a csd is being > > rendered? > > > > Michael Bechard > > > > --- Steven Yi <ste...@gm...> wrote: > > > > > Hi All, > > > > > > I think it would be very useful to implement a > > > watchdog thread for > > > when the External, ObjectBuilder, Python, and > Rhino > > > soundObjects go to > > > run, as currently if you do something that > causes an > > > infinite loop, > > > you'll have to restart blue. =( I think this > > > should be done for the > > > python and rhino instruments as well. > > > > > > Now, any suggestions on implementation? Just > had a > > > better thought > > > than what I was originally thinking, so I am > > > thinking that a general > > > monitor is to be used on any soundObject, > > > noteProcessor, or instrument > > > when they go to render, and if a certain amount > of > > > time has passed to > > > show a dialog that says something like "This > project > > > is taking a long > > > time to render which may indicate problems with > a > > > script in an object. > > > Would you like to terminate rendering?". Also, > for > > > timing, what > > > would be a good default for how long to wait, > say 30 > > > seconds? (Would > > > like to add as a user option to the program > options > > > dialog). > > > > > > Thanks, > > > steven > > > > > > > > > > > > ------------------------------------------------------- > > > This SF.net email is sponsored by: Splunk Inc. > Do > > > you grep through log files > > > for problems? Stop! Download the new AJAX > search > > > engine that makes > > > searching your log files as easy as surfing the > > > web. DOWNLOAD SPLUNK! > > > > http://ads.osdn.com/?ad_idv37&alloc_id865&op=click > > > _______________________________________________ > > > Bluemusic-users mailing list > > > Blu...@li... > > > > > > https://lists.sourceforge.net/lists/listinfo/bluemusic-users > > > > > > > > > > > > > __________________________________________ > > Yahoo! DSL Something to write home about. > > Just $16.99/mo. or less. > > dsl.yahoo.com > > > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: Splunk Inc. Do > you grep through log files > > for problems? Stop! Download the new AJAX search > engine that makes > > searching your log files as easy as surfing the > web. DOWNLOAD SPLUNK! > > > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > > _______________________________________________ > > Bluemusic-users mailing list > > Blu...@li... > > > https://lists.sourceforge.net/lists/listinfo/bluemusic-users > > > N¬HYÞµéX¬²'²Þu¼¦[§Ü¨º > Þ¦Øk¢è!W¬~é®åzk¶C£ > 塧m éÞÀ@^ÇÈ^§zØZ¶f¤zËj·!x2¢êå¢âë±æ¬É«,º·âa{å,àHòÔ4¨m¶ÿiÛ(±ÙÜ¢oÚv'ïûjYhr'ׯ:ærXnzk¬Ë¬z»&j)b b²Ðe¹é®²'.±êì+-²Ê.Ç¢¸ëa¶Úlÿùb²Û,¢êÜyú+éÞ·ùb²Û?+-wèý¹nzk¬Ë¬z» __________________________________________ Yahoo! DSL Something to write home about. Just $16.99/mo. or less. dsl.yahoo.com |