The Wolfram|Alpha Blog is now part of the Wolfram Blog. Join us there for the latest on Wolfram|Alpha and other Wolfram offerings »
The Wolfram|Alpha Team

Excitement and a Little Glitch with the Wolfram|Alpha App

October 26, 2009 —
Comments Off

It’s now been a week since the first version of the Wolfram|Alpha App for the iPhone and iPod touch was released, and we’re excited to see how people are using it.

Our excitement was heightened by the opportunity to showcase the Wolfram|Alpha App at our Homework Day event and by the surprise of discovering—right in the middle of Homework Day—that there were reports of the app crashing unexpectedly.

Our company has been focused on software quality for more than 20 years, and extensive testing of the app had shown no such problems. But we immediately set about trying to find out what was going on.

Thanks in part to user reports and perhaps to the good fortune that many of our senior technical staff were actually in the same building at the Homework Day event, we were able to locate the issue early on Wednesday evening.

Upon getting everyone together, we created a server-side patch that remediated the problem—and that was deployed around 2am that night. This patch delivered an immediate fix for our Wolfram|Alpha App users.

We have now finished creating and testing a new version of the app—which will be supplied as an automatic update as soon as Apple completes its review.

We greatly appreciate the feedback on features you are enjoying. Just as much, we appreciate your feedback regarding any problems or quirky behavior that you’ve encountered. Of course, we can’t guarantee that we’ll be able to resolve all issues this quickly, but you can be sure that we’ll listen and do our best.

You can reach us directly at

For those of you with an interest in knowing the details of the “crashing” last week, here is a description of the problem.

Within the Wolfram|Alpha App is a collection of example queries. Initially, this was planned to be a static collection, updated only when the app itself was updated. But since the main Wolfram|Alpha codebase is updated every week, we were keen to make sure the examples in the app continually reflected new capabilities.

So, a few days from the end of the development process, we added a feature whereby every week, if examples were requested, the app would check for a new XML file of examples on our servers.

Unfortunately, there was a bug in this—essentially a race condition that surfaced when a particular length of time was spent downloading the XML file.

The bug was never visible in Wolfram|Alpha queries that successfully generated results. It only revealed itself when Wolfram|Alpha couldn’t generate any direct results, and so tried to pull up “related examples” to show.

But in the end the result was that exactly seven days after the final build of the app, in rare cases that build started to show crashes.

Usually, this kind of bug can’t be fixed except by updating the software that has been distributed. But our system architecture was good enough that on Wednesday evening, we were able to figure out a way to avoid exciting the bug—just by changing the data that is sent back to the app from the Wolfram|Alpha servers when a query is processed.

It isn’t a perfect solution, because it makes Wolfram|Alpha give somewhat less information in cases where it doesn’t give a direct result. But it completely avoids the crash. And it’s a very satisfactory stop-gap measure as we wait for the fully updated version of the app to be propagated through the distribution system.

We’re embarrassed that our testing didn’t catch the bug. Of course, it’s always tricky to test things that happen after only a week has elapsed. We have a very extensive automated testing system for Wolfram|Alpha (needless to say, it’s a giant Mathematica program). But right now, we can’t apply the automated system directly to the iPhone. So we have to use a much lower-throughput manual method. And we missed this bug. It’s disappointing, but it’ll be a good future case study for our software testing group.

Meanwhile, even without explicitly updating the app, it’s getting more and more powerful—just as a result of the weekly updates to Wolfram|Alpha on the server side. Of course, we’re working on the app itself as well. Stay tuned for some exciting new capabilities….


It’s great to see a quick ID of the issue and a fast workaround. Nicely done.

Perhaps this isn’t the best forum for this question, but reading the post made me wonder: with Wolfram|Alpha’s code being updated regularly, is there an easy way to know what new queries or data types are supported by it? Put another way, is there a simple way to discover new capabilities in the system other than trial and error?

Thanks in advance,
Jim Coyer

Posted by Jim Coyer October 27, 2009 at 12:42 pm

    The nearest thing to an update report is the blog. Stephen Wolfram has done a couple of webcasts but it takes alot of time to go through them so I would like any updates mentioned to be included in the text of the blog..

    Posted by Brian Gilbert October 27, 2009 at 5:14 pm

I only stumbled on this because of the TWIG podcast.
Amazing work. I can only see this getting better.

Posted by Zac October 28, 2009 at 8:14 am

I would like to know how to introduce several lines in the application of the Iphone. For example if I made an integral depending in one parameter and I want to make the Plot. The other question I have is how to use Greek letters. Could Wolfram Alpha be use as a remote kernel to Mathematica?



Posted by Gustavo November 7, 2009 at 9:57 pm

I really appreciate the rebate for those who paid the full price for the app prior to April 1st. I sincerely hope my filling out that rebate form wasn’t an April Fools joke 😉 The one thing I would really like to see is some way to store favorite common variables or constants locally. It’s kind of a hassle to type “Permittivity of Free Space” every time in an equation. Otherwise a scrollable list to select constants alphabetically would be nice and automatically insert them. Now that I have 3G coverage in my area this has replaced SpaceTime 4.0 on the iPhone as my main calculator.

Posted by Steve April 1, 2010 at 9:01 am