Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Anyone else getting these freezes?

Anyone else getting these freezes?
Thread Tools
Dedicated MacNNer
Join Date: Jun 2000
Location: Dundas, Ontario, Canada
Status: Offline
Reply With Quote
Sep 12, 2001, 05:01 PM
 
Hello,

Some of the work I have been doing in the last day has led my system to an odd sort of freeze twice. Since I have had amazing uptime until yesterday, I was wondering if anyone could shed some light on my problem.

Looking in the System Log, I find these entries whenever one of these freezes occurs:
<BLOCKQUOTE><font size="1"face="Geneva, Verdana, Arial">code:</font><HR><pre><font size=1 face=courier>Sep <font color = blue>12</font> <font color = blue>17</font>:<font color = blue>29</font>:<font color = blue>04</font> localhost mach_kernel: LLEventQueue overflow.
Sep <font color = blue>12</font> <font color = blue>17</font>:<font color = blue>30</font>:<font color = blue>18</font> localhost mach_kernel: IOHIDSystem: postEvent LLEventQueue overflow.</font>[/code]

I don't know what has been causing it but the most recent addition to the program that this crashes while testing is sounds. I am wondering if there is some issue with the NSSound API in Cocoa. I have also noticed recent problems with one of my OpenGL views since the introduction of sound.

Note, however, that this crash does not occur EVERY TIME I run the program. Unfortunately, I can't figure out why this is happening.

Pertinent information: One sound is looping when this happens, one OpenGL view is being re-drawn every 0.05 seconds and the other OpenGL view just received a mouse click.

Any help would be great,
Jeff.
Spectral Class
"Shedding Light on Innovation"
     
Admin Emeritus
Join Date: Oct 2000
Location: Boston, MA
Status: Offline
Reply With Quote
Sep 13, 2001, 10:02 AM
 
Apoc: A while ago, I was fooling around with CoreAudio, trying to make some synthesizer program. Accidentally, I moved my slider up to a very high value, and apparently it sent CoreAudio some negative number. The -whole- computer froze in a weird crash that I haven't seen since OS 9.

Heh, I stopped working with sound after that.
"Against stupidity, the gods themselves contend in vain" (Schiller)
     
Dedicated MacNNer
Join Date: Jun 2000
Location: Dundas, Ontario, Canada
Status: Offline
Reply With Quote
Sep 13, 2001, 11:26 AM
 
Actually, I think that I found the cause about an hour ago.

I had recently added a second thread to my program when this started to happen (I had made a ton of other changes, too, so I figured this was not the obvious problem). However, I also noticed that sometimes one of my OpenGLViews would appear with extra extraneous shapes in it. I then remembered what some of the components of this other thread would do (things that I had neglected before). It turns out that one of the last calls before the thread exits is "setNeedsDisplay:YES" to the OpenGLView exhibiting the odd behavior. Once I removed the detach thread call, everything became fine.

Also, in the kernel panic module trace, the com.apple.ATIRage128 kernel extension was loaded. Given that I am already using to OpenGLViews on a low-end card with the not-always-thread-safe AppKit, I should not have been surprised when weird freezes and kernel panics occurred.

Just goes to show that thread-safety is an important issue to keep in mind.

Fun stuff, eh?
Jeff.
Spectral Class
"Shedding Light on Innovation"
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 12:15 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2