Bug 712 : Gray Curtain of Death / Kernel Panics in OS X while using the editor
Last modified: 2008-11-24 12:33




Status:
RESOLVED
Resolution:
INVALID -
Priority:
P2
Severity:
normal

 

Reporter:
Andy Polaine
Assigned To:
fry

Attachment Type Created Size Actions

Description:   Opened: 2008-01-15 10:15
I'm getting frequent kernel panics (aka Gray Curtain of Death) whilst running Processing at the
moment, usually just in development mode, not in Run mode.

I know you'll need more info that this, but has anyone else been having this and what would you
need from me to help?

I'm on OS X 10.4.11 running Processing build 0135
Additional Comment #1 From fry 2008-01-15 21:02
it should be impossible for a java application to cause a kernel panic.

do you have developer pre-releases of java installed? or old versions of
jogl or other extensions? is your machine prone to kernel panics?
Additional Comment #2 From Andy Polaine 2008-01-15 22:05
My machine doesn't seem to be particularly prone to kernel panics - at the moment I'm only
getting them in Processing.

Here's everything Java-related that I could find via the System Profiler. No developer pre-
releases, etc. as far as I am aware.

---
Jar Bundler:

Version: 11.4.0
Last Modified: 31/10/2007 12:33
Kind: Universal
Get Info String: Jar Bundler 11.4.0 Copyright 1996-2006 Apple Computer, Inc.
Location: /Developer/Applications/Java Tools/Jar Bundler.app

Java 1.3.1 Plugin Settings:

Version: 11.4.2
Last Modified: 02/12/2006 03:57
Kind: PowerPC
Get Info String: 11.4.2 (for Java 1.3.1), Copyright 2002-2006 Apple Computer, Inc. All
Rights Reserved.
Location: /Applications/Utilities/Java/Java 1.3.1 Plugin Settings.app

Java 1.4.2 Plugin Settings:

Version: 11.7.0
Last Modified: 16/12/2007 12:33
Kind: Universal
Get Info String: 11.7.0 (for Java 1.4.2), Copyright © 2004-2007 Apple Inc. All Rights
Reserved.
Location: /Applications/Utilities/Java/Java 1.4.2 Plugin Settings.app

Java Preferences:

Version: 11.7.0
Last Modified: 16/12/2007 12:33
Kind: Universal
Get Info String: 11.7.0 (for J2SE 5.0), Copyright © 2005-2007 Apple Inc. All Rights
Reserved.
Location: /Applications/Utilities/Java/J2SE 5.0/Java Preferences.app

Java Web Start:

Version: 11.7.0
Last Modified: 16/12/2007 12:33
Kind: Universal
Get Info String: 11.7.0 (for J2SE 5.0), Copyright © 2001-2007 Apple Inc. All Rights
Reserved.
Location: /Applications/Utilities/Java/Java Web Start.app

JavaBrowser:

Version: 2.2
Last Modified: 31/10/2007 12:33
Kind: Universal
Get Info String: JavaBrowser 2.2
Location: /Developer/Applications/Java Tools/JavaBrowser.app

---

The jogl library is the library that came with the 0135 build, but maybe I'll download a clean
install of 0135.

Here's the list of all the libraries I have installed for Processing:

bluetoothDesktop
candy
dxf
howto.txt
javascript
minim
net
opengl
pdf
promidi
serial
sonia_v2_9
SoniaHelper
video
xml

If nobody else is having the problem I guess its likely to be my machine - I can't think what
might be interacting the Processing in such a way though.
Additional Comment #3 From fry 2008-01-15 22:18
well, keep an eye on it i guess... i develop processing primarily on an osx
machine and i don't thnk i've ever been able to make it kernel panic. look
for possible interactions with native code (e.g. the bluetooth or sonia
libraries) in your sketches as a possibility.
Additional Comment #4 From Andy Polaine 2008-01-15 22:36
It could be Ess or Minim - they're the two newer additions to the code.

Is it worth turning on any of the Java debugging stuff in the Java prefs? Looking through my
console logs I can't find anything useful in the java logs. I'm not really sure where else I might
look. I don't know how much gets logged during a kernel panic.
Additional Comment #5 From fry 2008-01-15 23:13
The Java Prefs aren't likely to do much for you...Logs during a kernel
panic are hit or miss--usually if things are hosed enough to cause a kernel
panic, then the machine is gonna be hard-pressed to actually write a file
to the file system. But sometimes there are telltale signs of what went
wrong just before that get spewed into the console log.

Ess and Minim are based on JavaSound, which Apple doesn't give a s* about,
so I wouldn't be surprised if there were problems (however a kernel panic
sounds really serious). But there are a number of people using both of
those and this is the first I've heard about kernel panics.

I'd be mostly likely to suspect the OpenGL renderer (via JOGL) to be the
most likely candidate to cause a kernel panic, but there doesn't seem to be
anything weird about your machine's setup from what you describe...
Additional Comment #6 From Andy Polaine 2008-01-16 00:49
I'll see if I can make it a repeatable, traceable bug (though I'm not that happy about hosing my
machine each time!). At the moment though it's pretty random - it doesn't appear to be when I
click on Run or anything in particular, it just keels over sometimes when I'm writing code.
Additional Comment #7 From Anney-N. 2008-01-29 09:42
I have the same problem, also running Processing 0135 on OS X 10.4.11
Are there any new suggestions about this topic?
Additional Comment #8 From fry 2008-01-29 10:53
Hm, that's not a good sign... If it's more than one person, I'd suspect the
Java update 6 for 10.4.11. Maybe try googling a bit to see if the Java
update is giving others trouble?

Or if it only happens during editing, I might suspect something quirky in
the editor drawing code triggering a nasty graphics bug. Like a divide by
zero that Apple's Java VM does not handle gracefully, causing a kernel panic.

Does it happen in any other Java-based applications?
Additional Comment #9 From Andy Polaine 2008-01-30 03:19
I don't have a lot of other Java apps to really try this out on, but I haven't noticed anything in
run-time versions of my Processing apps. It's only in editor mode that it happens and it seems
to be reasonably random [i]when[/i] it happens.

It's always on some kind of input, but doesn't seem to only happen when I click Run or anything
like that. Often just typing. The only thing I have noticed is that it [i]may[/i] be happening
often after a long pause of not doing anything. For example, when I've stopped to make a call
or explain something, coming back to the editor crashes it. That could be a red-herring though,
so be warned!
Additional Comment #10 From fry 2008-01-30 07:43
what sort of machine are you running on?
Additional Comment #11 From frederickk 2008-01-30 23:13
i too have been getting frequent kernel panics. at first i thought it was
just clunky code. but when i use two different machines (work and home) and
my home computer is the only getting the kernel panics.

however, unlike some of the posts here mine happens when running the code.
not when editing. usually a few seconds after hitting "run"

----
here's my home setup (plus the apple error report)

OSX 10.5.1
2.2 GHz Intel Core 2 Duo
1 GB 667 MHz DDR2 SDRAM
(black macbook)

--------------------------------------------------------------
error report:

system configuration:
Model: MacBook3,1, BootROM MB31.008D.B00, 2 processors, Intel Core 2 Duo,
2.2 GHz, 1 GB
Graphics: kHW_IntelGMA965Item, GMA X3100, spdisplays_builtin, 144 MB
Memory Module: BANK 0/DIMM0, 512 MB, DDR2 SDRAM, 667 MHz
Memory Module: BANK 1/DIMM1, 512 MB, DDR2 SDRAM, 667 MHz
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x88),
Broadcom BCM43xx 1.0 (4.170.25.8)
Bluetooth: Version 2.0.0f20, 2 service, 1 devices, 1 incoming serial ports
Network Service: AirPort, AirPort, en1
Serial ATA Device: FUJITSU MHY2160BH, 149,05 GB
Parallel ATA Device: HL-DT-ST DVDRW GSA-S10N
USB Device: Built-in iSight, Micron, high_speed, 500 mA
USB Device: Apple Internal Keyboard / Trackpad, Apple Computer, full_speed,
500 mA
USB Device: IR Receiver, Apple Computer, Inc., low_speed, 500 mA
USB Device: Bluetooth USB Host Controller, Apple, Inc., full_speed, 500 mA

----

problem details:
Wed Jan 30 22:46:49 2008
panic(cpu 1 caller 0x001A7BED): Kernel trap at 0x007c9c9e, type 14=page
fault, registers:
CR0: 0x80010033, CR2: 0x06baa000, CR3: 0x0108d000, CR4: 0x00000660
EAX: 0x00000076, EBX: 0x06baa000, ECX: 0x06ba90e2, EDX: 0x06ba90e3
CR2: 0x06baa000, EBP: 0x212a7e18, ESI: 0x06baa000, EDI: 0x06ba8000
EFL: 0x00010246, EIP: 0x007c9c9e, CS: 0x00000008, DS: 0x03be0010
Error code: 0x00000000

Backtrace, Format - Frame : Return Address (4 potential args on stack)
0x212a7388 : 0x12b0e1 (0x455670 0x212a73bc 0x133238 0x0)
0x212a73d8 : 0x1a7bed (0x45ea20 0x7c9c9e 0xe 0x45e1d4)
0x212a74b8 : 0x19e517 (0x212a74d0 0x64 0x212a7e18 0x7c9c9e)
0x212a74c8 : 0x7c9c9e (0xe 0x3be0048 0x212a0010 0x3e0010)
0x212a7e18 : 0x7ca101 (0x325d 0x3df1494 0x212a7e48 0x7cbec7)
0x212a7e48 : 0x7ca9d7 (0x60157b0 0x1e 0x1 0x6)
0x212a7e98 : 0x3b6b8d (0x3df1494 0x48c4cc0 0x0 0x1)
0x212a7ed8 : 0x3b6c4a (0x48c4cc0 0x31ded04 0x0 0x0)
0x212a7ef8 : 0x3a2a95 (0x48c4cc0 0x0 0x60157b0 0x36291f)
0x212a7f38 : 0x3a7632 (0x1e 0x212a7f5c 0x1 0x0)
0x212a7f78 : 0x3da847 (0x60157b0 0x524ed40 0x524ed84 0x0)
0x212a7fc8 : 0x19ea34 (0x651cf00 0x0 0x10 0x651cf00)
No mapping exists for frame pointer
Backtrace terminated-invalid frame pointer 0xb07fe978
Kernel loadable modules in backtrace (with dependencies):
at.obdev.nke.LittleSnitch(2.0.28)@0x7c3000->0x7ecfff

BSD process name corresponding to current thread: java

Mac OS version:
9B18

Kernel version:
Darwin Kernel Version 9.1.0: Wed Oct 31 17:46:22 PDT 2007;
root:xnu-1228.0.2~1/RELEASE_I386
System model name: MacBook3,1 (Mac-F22788C8)

-----
java stuff from system-profiler:
JavaDirectToWeb:

Version: 5.4
Zuletzt geändert: 23.09.07 18:17
Informationen: 5.4
Ort: /System/Library/Frameworks/JavaDirectToWeb.framework
Privat: Nein

JavaDTWGeneration:

Version: 5.4
Zuletzt geändert: 23.09.07 18:01
Ort: /System/Library/Frameworks/JavaDTWGeneration.framework
Privat: Nein

JavaEmbedding:

Version: 12.0.0
Zuletzt geändert: 24.11.07 15:20
Informationen: 12.0.0, Copyright 2002-2006, Apple Computer, Inc.
Ort: /System/Library/Frameworks/JavaEmbedding.framework
Privat: Nein

JavaEOAccess:

Version: 5.4
Zuletzt geändert: 23.09.07 17:52
Ort: /System/Library/Frameworks/JavaEOAccess.framework
Privat: Nein

JavaEOApplication:

Version: 5.4.1
Zuletzt geändert: 24.11.07 15:10
Informationen: 5.4
Ort: /System/Library/Frameworks/JavaEOApplication.framework
Privat: Nein

JavaEOControl:

Version: 5.4
Zuletzt geändert: 23.09.07 17:39
Ort: /System/Library/Frameworks/JavaEOControl.framework
Privat: Nein

JavaEODistribution:

Version: 5.4
Zuletzt geändert: 23.09.07 18:02
Ort: /System/Library/Frameworks/JavaEODistribution.framework
Privat: Nein

JavaEOGeneration:

Version: 5.4.1
Zuletzt geändert: 24.11.07 15:10
Informationen: 5.4
Ort: /System/Library/Frameworks/JavaEOGeneration.framework
Privat: Nein

JavaEOInterface:

Version: 5.4.1
Zuletzt geändert: 24.11.07 15:10
Ort: /System/Library/Frameworks/JavaEOInterface.framework
Privat: Nein

JavaEOInterfaceCocoa:

Version: 5.4
Zuletzt geändert: 24.11.07 15:10
Ort: /System/Library/Frameworks/JavaEOInterfaceCocoa.framework
Privat: Nein

JavaEOInterfaceSwing:

Version: 5.4.1
Zuletzt geändert: 24.11.07 15:10
Ort: /System/Library/Frameworks/JavaEOInterfaceSwing.framework
Privat: Nein

JavaEOProject:

Version: 5.4
Zuletzt geändert: 24.11.07 15:10
Ort: /System/Library/Frameworks/JavaEOProject.framework
Privat: Nein

JavaEORuleSystem:

Version: 5.4
Zuletzt geändert: 24.11.07 15:10
Informationen: 5.3
Ort: /System/Library/Frameworks/JavaEORuleSystem.framework
Privat: Nein

JavaEOTool:

Version: 5.4
Zuletzt geändert: 24.11.07 15:09
Informationen: 5.4
Ort: /System/Library/Frameworks/JavaEOTool.framework
Privat: Nein

JavaFoundation:

Version: 5.4
Zuletzt geändert: 23.09.07 16:12
Ort: /System/Library/Frameworks/JavaFoundation.framework
Privat: Nein

JavaFrameEmbedding:

Version: 12.0.0
Zuletzt geändert: 24.11.07 15:20
Informationen: JavaFrameEmbedding 12.0.0, Copyright 2001-2006, Apple
Computer, Inc.
Ort: /System/Library/Frameworks/JavaFrameEmbedding.framework
Privat: Nein

JavaJDBCAdaptor:

Version: 5.4
Zuletzt geändert: 23.09.07 18:04
Informationen: WebObjects JavaJDBCAdaptor
Ort: /System/Library/Frameworks/JavaJDBCAdaptor.framework
Privat: Nein

JavaJNDIAdaptor:

Version: 5.4
Zuletzt geändert: 23.09.07 18:15
Ort: /System/Library/Frameworks/JavaJNDIAdaptor.framework
Privat: Nein

JavaScriptCore:

Version: 5523.10.3
Zuletzt geändert: 24.11.07 15:20
Informationen: 5523.10.3, Copyright 2003-2007 Apple Inc.; Copyright
1999-2001 Harri Porten <porten@kde.org>; Copyright 2001 Peter Kelly
<pmk@post.com>; Copyright 1997-2005 University of Cambridge; Copyright
1991, 2000, 2001 by Lucent Technologies.
Ort: /System/Library/Frameworks/JavaScriptCore.framework
Privat: Nein

JavaVM:

Version: 12.0.0
Zuletzt geändert: 24.11.07 15:20
Informationen:
Ort: /System/Library/Frameworks/JavaVM.framework
Privat: Nein

JavaWebObjects:

Version: 5.4
Zuletzt geändert: 24.11.07 15:10
Ort: /System/Library/Frameworks/JavaWebObjects.framework
Privat: Nein

JavaWebServicesClient:

Version: 5.4
Zuletzt geändert: 23.09.07 18:05
Ort: /System/Library/Frameworks/JavaWebServicesClient.framework
Privat: Nein

JavaWebServicesGeneration:

Version: 5.4
Zuletzt geändert: 23.09.07 18:28
Ort: /System/Library/Frameworks/JavaWebServicesGeneration.framework
Privat: Nein

JavaWebServicesSupport:

Version: 5.4
Zuletzt geändert: 23.09.07 17:53
Ort: /System/Library/Frameworks/JavaWebServicesSupport.framework
Privat: Nein

JavaWOExtensions:

Version: 5.4.1
Zuletzt geändert: 23.09.07 18:01
Informationen: 5.4
Ort: /System/Library/Frameworks/JavaWOExtensions.framework
Privat: Nein

JavaWOJSPServlet:

Version: 5.4
Zuletzt geändert: 23.09.07 18:04
Ort: /System/Library/Frameworks/JavaWOJSPServlet.framework
Privat: Nein

JavaXML:

Version: 5.4
Zuletzt geändert: 23.09.07 18:23
Ort: /System/Library/Frameworks/JavaXML.framework
Privat: Nein

--------------------------------------------------------------

my work setup is (more or less)
OSX 10.4.11
not sure on speed... top of the pre-intel line g5 Dual PowerPC processors
maxed out on ram. again not sure of numbers
(pre-intel generation g5 tower)

----

ok that's a lot of info. if you need anything else from me let me know.
hope this can be resolved.

Ken
Additional Comment #12 From Andy Polaine 2008-01-30 23:59
Machine info:

Processing build: 0135

Machine specs:

Model Name: MacBook
Model Identifier: MacBook2,1
Processor Name: Intel Core 2 Duo
Processor Speed: 2 GHz
Number Of Processors: 1
Total Number Of Cores: 2
L2 Cache (per processor): 4 MB
Memory: 2 GB
Bus Speed: 667 MHz
Boot ROM Version: MB21.00A5.B07
SMC Version: 1.13f3
Serial Number: 4H708097WGQ
Sudden Motion Sensor:
State: Enabled

Java stuff:

JavaApplicationLauncher:

Version: 11.7.0
Last Modified: 16/12/2007 12:32
Get Info String: JavaApplicationLauncher, Copyright © 2001-2007 Apple Inc. All Rights
Reserved.
Location: /System/Library/PrivateFrameworks/JavaApplicationLauncher.framework
Private: Yes

JavaApplicationLauncherUI:

Version: 11.4.2
Last Modified: 05/10/2007 15:13
Get Info String: JavaApplicationLauncherUI 11.4.2, Copyright 2001-2006, Apple Computer,
Inc.
Location: /System/Library/PrivateFrameworks/JavaApplicationLauncherUI.framework
Private: Yes

JavaBrowser:

Version: 2.2
Last Modified: 31/10/2007 12:31
Get Info String: JavaBrowser Framework 2.2
Location: /System/Library/PrivateFrameworks/JavaBrowser.framework
Private: Yes

JavaCarbonSupport:

Version: 11.4.2
Last Modified: 05/10/2007 15:13
Get Info String: JavaCarbonSupport 11.4.2, Copyright 2001-2006, Apple Computer, Inc.
Location: /System/Library/PrivateFrameworks/JavaCarbonSupport.framework
Private: Yes

JavaEmbedding:

Version: 11.4.2
Last Modified: 31/10/2007 12:32
Get Info String: 11.4.2, Copyright 2002-2006, Apple Computer, Inc.
Location: /System/Library/Frameworks/JavaEmbedding.framework
Private: No

JavaKit:

Version: 4.3
Last Modified: 31/10/2007 12:31
Get Info String: Java Kit Framework v4.3
Location: /System/Library/PrivateFrameworks/JavaKit.framework
Private: Yes

JavaScriptCore:

Version: 523.12
Last Modified: 18/11/2007 11:55
Get Info String: 523.12, Copyright 2003-2007 Apple Inc.; Copyright 1999-2001 Harri Porten
<porten@kde.org>; Copyright 2001 Peter Kelly <pmk@post.com>; Copyright 1997-2005
University of Cambridge; Copyright 1991, 2000, 2001 by Lucent Technologies.
Location: /System/Library/Frameworks/JavaScriptCore.framework
Private: No

JavaScriptGlue:

Version: 523.12
Last Modified: 18/11/2007 11:55
Get Info String: 523.12, Copyright 2003-2007 Apple Inc.
Location: /System/Library/PrivateFrameworks/JavaScriptGlue.framework
Private: Yes

JavaVM:

Version: 11.7.0
Last Modified: 16/12/2007 12:32
Location: /System/Library/Frameworks/JavaVM.framework
Private: No

I have a few suspects based on these two threads:

http://discussions.apple.com/thread.jspa?messageID=6147412
http://www.macintouch.com/readerreports/macosx10_4_11/topic4681.html

The first is Application Enhancer (or APE). I use it because I use Airfoil, which uses it to
hijack the audio. However, APE seems to be the cause of a lot of weirdness. Frederick, are
you running this too?

The second are Input Managers. Again, I have a few of these. Inquisitor for Safari, Plaxo's
one (which plugs into the Address Book) and 1Password. I can discount the 1Password one
because the crashes were happening before that.

Lastly, it could be the Quicktime update, which seems to be causing some kernel panics. The
times when Processing had been crashing a lot I had been playing audio with Minim. But it
does crash on other projects too, but who knows what's left in memory without any crashlog?

Any of this useful? Frederick, are you running any of these?

Additional Comment #13 From frederickk 2008-01-31 15:51
i'm not running APE or any other input managers.

my quicktime is upto date and with all of the processing sketches that cause kernel panics,
they all impoer the OpenGL library. maybe that has something to do with it. (i think i read
somewhere that, that may cause it)

Ken
Additional Comment #14 From fry 2008-01-31 18:34
Please file a separate bug for kernel panics with OpenGL applications, as
that's an easily isolated and totally separate issues.
Additional Comment #15 From frederickk 2008-02-04 16:53
i just commented out the import OpenGL on some of my sketches and am still
getting kernel panics.

Ken
Additional Comment #16 From fry 2008-02-04 17:21
Ok, though if it's while running a sketch versus using the editor, please
file a separate bug.
Additional Comment #17 From Andy Polaine 2008-02-04 23:27
For me it seems to be when using the editor, not when running sketches.

But I had been using the OpenGL library, but had also commented it out and/or opened other
sketches. I don't know if it's possible for some interaction between the two to have happened
in memory. I don't want to send you off on a wild goose chase though - they might not have
anything to do with each other. I just thought I'd let you know so you have all the info.

I can't seem to make it happen at will, unfortunately, so it's a bit mysterious. Also I'm in the
middle of a (non Processing) design project at the moment coming up to deadlines, so I can't
really afford to keep crashing my machine to test. When I've got a bit of breathing space I'll
try again.
Additional Comment #18 From fry 2008-11-24 12:33
Unfortunately I can't reproduce any of this, so I need to close this bug.
There's simply nothing that we should be able to do from a Java application
to produce a kernel panic. The editor uses no native code, and while other
libraries may (video or OpenGL), those would be JOGL or QTJava bugs, which
we cannot fix, unfortunately.