[MacRuby-devel] System crash - MacRuby priority

2010-11-06 Thread Robert Rice
I determined that my system crash was not due to an endless loop - rather due 
to a very inefficient algorithm. MacRuby seems to run at such a high priority 
that it can cause the system to crash - especially if a streaming video is 
running.

Can I lower the priority of my MacRuby application?

Thanks,
Bob Rice

___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] System crash - MacRuby priority

2010-11-06 Thread Rich Morin
An app should NOT be able to destabilize the OS enough to
cause it to crash.  That is a serious OS-level bug.  It
should be reported (with details) to bugreport.apple.com.

-r
-- 
http://www.cfcl.com/rdmRich Morin
http://www.cfcl.com/rdm/resume [email protected]
http://www.cfcl.com/rdm/weblog +1 650-873-7841

Technical editing and writing, programming, system design
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] System crash - MacRuby priority

2010-11-06 Thread Jordan K. Hubbard

On Nov 6, 2010, at 4:19 PM, Robert Rice wrote:

> I determined that my system crash was not due to an endless loop - rather due 
> to a very inefficient algorithm. MacRuby seems to run at such a high priority 
> that it can cause the system to crash - especially if a streaming video is 
> running.

MacRuby does not run at any particular elevated priority itself.  If you're 
doing something like producing or consuming A/V streams in real-time, on the 
other hand, then any number of real-time threads may be created on your behalf 
by the various Frameworks responsible for doing that sort of processing, but 
that's no different a scenario than calling them from ObjC and the priority of 
your application itself will still be irrelevant in such a scenario.

It may be that you're [mis]using the APIs such that more work is being done 
than necessary.  You may wish to review some of the sample code that most 
directly corresponds to whatever it is you're doing.

Also, as others have intimated, if you were able to panic your system for any 
reason (and I do mean panic and not some other hang or application-specific 
crash) then that's a bug that really needs to be reported since Apple takes 
panic reports pretty seriously.

- Jordan


___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] System crash - MacRuby priority

2010-11-06 Thread Laurent Sansonetti
Hi Robert,

What do you mean by making the system crash? Does a kernel panic happen, or 
does the system just become unusable?

If a kernel panic happen, or if any core service segfaults because of your app, 
then you should report this via http://bugreporter.apple.com as others 
indicated. If the system becomes unusable your app is probably using too much 
resources. You should profile it using Shark (or Instruments) and see what's 
going on. Feel free to upload the profile somewhere if you want us to have a 
look.

Laurent

On Nov 6, 2010, at 4:19 PM, Robert Rice wrote:

> I determined that my system crash was not due to an endless loop - rather due 
> to a very inefficient algorithm. MacRuby seems to run at such a high priority 
> that it can cause the system to crash - especially if a streaming video is 
> running.
> 
> Can I lower the priority of my MacRuby application?
> 
> Thanks,
> Bob Rice
> 
> ___
> MacRuby-devel mailing list
> [email protected]
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel