0.16 crashes on startup (OS X)

Bug #1706187 reported by Szabolcs
22
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Stellarium
Fix Released
High
Alexander Wolf

Bug Description

I used to have Stellarium 0.15.1, which worked fine. After upgrading to 0.16, it crashes on startup. The splash screen does appear, but before the main window can be shown, the program crashes.

I tried deleting ~/Library/Application Support/Stellarium, but it did not help.

I have a 2014 MacBook Pro with dual graphics (Intel Iris Pro & NVIDIA GeForce GT 750M). OS: macOS Sierra 10.12.6.

Tags: mac-os-x

Related branches

Revision history for this message
Szabolcs (szhorvat) wrote :
Revision history for this message
gzotti (georg-zotti) wrote :

What does Stellarium's own logfile say? (Not this Apple crashlog.)

Changed in stellarium:
status: New → Incomplete
Revision history for this message
Szabolcs (szhorvat) wrote :

Is this the file you need?

Revision history for this message
gzotti (georg-zotti) wrote :

Yes, but it shows no issues I can see. Can you try current beta?

Revision history for this message
Szabolcs (szhorvat) wrote :

I tested all versions since 15.0, including the beta, and all of them crash.

This means that I was wrong when I said that 0.15.1 worked fine. It must be some other change on my system that triggered the problem. It was a few months ago that I last used 0.15.1 (when it worked fine), and there were several 10.12.x OS updates since then.

Could you tell me how to restore Stellarium to a pristine state? Is it sufficient to remove ~/Library/Application Support/Stellarium, or are there other files I should delete too?

Revision history for this message
Alexander Wolf (alexwolf) wrote :

Nope, deleting ~/Library/Application Support/Stellarium should be enough for remove all user data.

I see from the first log that Stellarium was crashed because he got a unpredictable data on early stage of running. It's very strange, but possible this failure was caused by switching between graphics cards. Could you check it?

Revision history for this message
Szabolcs (szhorvat) wrote :

I use the utility gfxCardStatus, which makes it possible to manually switch between the graphics cards (and see which one is in use at a certain time). Using this utility, I disabled switching and tried starting Stellarium both with the Intel and the NVIDIA cards. It crashes in both instances.

In each case I removed the user data before startup.

Perhaps I should mention that each time I get a popup window with this text:

"The last time you opened Stellarium, it unexpectedly quit while reopening windows. Do you want to try to reopen its windows again?"

This appears together with the splash screen and offers two choices: "Don't Reopen" and "Reopen". I always choose "Don't Reopen" (but I tried that it crashes with Reopen as well). If Stellarium really does not store user data anywhere else, I assume that this window is shown by the OS itself (not Stellarium), and that the OS itself keeps track of the last crash.

I attached another log.

tags: added: mac-os-x
Revision history for this message
Szabolcs (szhorvat) wrote :

Was anyone able to reproduce this problem?

Is there anyone who tested Stellarium on OS X 10.12.6 and it works without crashes?

Revision history for this message
Alexander Wolf (alexwolf) wrote :

No crashes on macOS. For example I cannot reproduce the issue.

Revision history for this message
Szabolcs (szhorvat) wrote :

Is there anything I can do to debug this? I quite miss this program ...

Revision history for this message
Alexander Wolf (alexwolf) wrote :

Could you try latest beta?

Revision history for this message
Szabolcs (szhorvat) wrote :

I tried 0.90.0.9732, released Aug 6th.

It does NOT crash.

You found the cause of the crash then?

Revision history for this message
Szabolcs (szhorvat) wrote :

I just tried a second time, and it crashed again, every single time I tried.

Thinking about what was different from my earlier test, I realized that I was using a different network connection.

It turns out that if I disable WiFi, Stellarium works fine. If I enable it, it crashes.

Revision history for this message
Szabolcs (szhorvat) wrote :

Further update:

Stellarium crashes because I am using the DNS blocker pi-hole (see https://pi-hole.net/) and in its default configuration it is blocking freegeoip.net (which Stellarium tries to access).

Having figured this out, I can now easily fix this by whitelisting this domain.

However, this still looks like a bug. Stellarium should not just crash if this service does not work or returns bad data.

Changed in stellarium:
importance: Undecided → Medium
milestone: none → 0.16.1
assignee: nobody → Alexander Wolf (alexwolf)
Revision history for this message
Alexander Wolf (alexwolf) wrote :

Please check version 0.90.0.9744

Changed in stellarium:
status: Incomplete → In Progress
Revision history for this message
Szabolcs (szhorvat) wrote :

I cannot test at this time, but I will get back to you in about 10 days.

Revision history for this message
Szabolcs (szhorvat) wrote :

@alexwolf, I just tested 0.90.0.9767 (the latest beta at the moment) and the crash is still present. Should I test .9744 instead?

Revision history for this message
Alexander Wolf (alexwolf) wrote :

Bad news. Could you write firewall rule for blocking freegeoip.net host?

Changed in stellarium:
status: In Progress → Fix Committed
importance: Medium → High
Revision history for this message
Szabolcs (szhorvat) wrote :

I am sorry for not responding. I wasn't sure how to block a single domain using OS X's firewall, and after a while, I gave up. Could you please give me some pointers on this?

How pi-hole works is that it returns its own IP for blocked domains (I think! I'm not very familiar with DNS) and it just shows a page where I can whitelist the domain if I want to. Of course, this does not work for HTTPS sites like freegeoip.net. For those, I just get a "refused to connect" error in the browser.

It could be that when Stellarium tries to contact freegeoip.net, it does receive a response, but that response doesn't conform to its expectations, and therefore it crashes.

Revision history for this message
jeshansen (jeshansen) wrote :

Just adding freegeoip.net to pi.hole's whitelist is enough to stop the crash from happening for me. In your browser open http://pi.hole/admin/list.php?l=white and add freegeoip.net. After a few seconds the list updates, and you are now likely to be able to start Stellarium without crashes.

Revision history for this message
Szabolcs (szhorvat) wrote :

I know, I did in fact say that in #14.

Revision history for this message
Alexander Wolf (alexwolf) wrote :

Stellarium 0.90.0.9808 (0.16.1RC2) is available for testing.

Revision history for this message
Szabolcs (szhorvat) wrote :

I can confirm that this version does not crash.

Changed in stellarium:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.