Zeroing in on my crashes

I know, I should just reinstall. But I’ve been too busy to risk that much disruption when I don’t currently have a good backup solution, and I seem to have figured out how to avoid the crashes most of the time.

I noticed fairly quickly that the crashes seem to always be related to modem use: they happen either while the modem is disconnecting, or very quickly thereafter. And I also noticed, shortly before the crashes started happening, that disconnecting was taking a lot longer than it used to. Something’s up.

After playing around for a while, I figured this out: if I unplug the phone cord from my laptop before I tell the modem to disconnect, the machine won’t crash. So far, that’s worked. Keeping my fingers crossed.

Beginning the Day …

(via my O’Reilly blog)

A month ago, I wrote about “TechnoPop: The Secret History of Technology and Pop Music”, Rick Karr’s series of reports running on NPR’s Morning Edition. This morning I was listening to part 5 while driving to work, and I heard Karr say this:

Over the past decade, all this technology making modern music has gone digital.

Those of you as old as I am might recognize the middle of that sentence as a near quote from Rush’s 1980 masterpiece, “The Spirit of Radio”. That little touch put a big smile on my face.

Thanks to the magic of iPod, I had the song close at hand. So I popped my cassette adapter into the slot in the dashboard, plugged in my iPod, and had a listen. And I was struck by just how appropriate it was for Karr to quote from that song, which was a scathing attack on the music industry.

The first part of “TechnoPop” made a rather pointed reference to the current conflicts between the music industry and their customers (and, for that matter, the artists), and there’ve been hints that the series will come back to that issue in its final installment next week. So far, the series has covered the phonograph, microphones and electrical recording, magnetic tape, LPs, and multitracking. At each stage, the theme has been clear: technology inevitably changes not only music itself, but also the music business – often over the protests of established players in the industry, but usually to the long-term benefit of the music industry as a whole.

One still likes to believe in the freedom of music, but even the illusion of integrity that Rush sang about has vanished. The gift of music that radio brings to us, far from being beyond price, seems firmly in its grip.

A weird Java2D bug under OSX

Last week I was playing with my toy line drawing editor again, and I noticed a very strange bug in the Java 2D graphics support under MacOS X. I wrote a tool to draw ovals, and it worked great. Then I wrote a tool to draw circles; it was just a subclass of the oval tool that constrained the vertical and horizontal axes to be the same dimension. It worked great, too, but I noticed that all my ovals (and other shapes, for that matter) were nicely antialiased, and all of the circles were jaggy.

Java2D circle bug

At first I thought I’d done something wrong, but the circle tool doesn’t change any of the drawing code from the oval tool.

It turns out that if you draw a circle using Java2D under MacOS X (at least using Java 1.3.1 under Jaguar) it does not do antialiasing at all. If you choose the oval tool and start sweeping out the bounding box, you can see it suddenly switch to jaggy pixels as the dimensions become completely circular, and then back to antialiased mode as you keep going. In the picture, both shapes were drawn with the oval tool; the only difference is that the one on the left has a square bounding box.

It doesn’t happen with Java on other platforms, or with Cocoa. My theory: there’s an optimization path in the Carbon port of Java2D. When it notices that it’s drawing a true circle, that optimization path kicks in, and there’s a bug so that it loses the quality hints.

Flouting user interface conventions

I remember the first time I tried a web browser with this behavior: you click once in the URL field, and the entire contents of the field is selected, ready to be replaced with a single keystroke. I don’t know for sure whether IE or Netscape for Windows was the first to do that, but I was definitely annoyed: “That’s not the way text fields are supposed to work!”

It still annoys me. But I am used to it. I know I’m used to it because Chimera doesn’t have that behavior, and it really throws me. Click … click … click click … drag … oh yeah, gotta remember, it’s easier if I use Command-L.

I’m glad the Chimera folks have decided to stick to UI conventions. (Of course, Chimera’s in beta, so perhaps they just haven’t added that “feature” yet.) It’s not as though the right way is really difficult. There are three easy ways to select the whole URL field: drag across it, triple-click, or Command-L. But it’s annoying that I’ve had several years of training in the wrong way.

Crashes …

I’ve had my PowerBook for over 3 months now. Saturday, for the first time, it crashed. (Early on, I had a few instances where it would power down instead of going to sleep, but I found out what was causing that.) Saturday was the first time it crashed on me while I was using it. I’ve got to hand it to those Apple guys: crashing on a Mac has a much better user interface than the Blue Screen O’ Death.

This morning, it happened again. Two crashes in four days. *sigh*. How disappointing.

Update: Again tonight. Time to figure out how to turn on crash dumps.

subscribe via RSS