HermesApp / Hermes

Compact macOS Pandora client that doesn’t use Flash
http://hermesapp.org/
MIT License
382 stars 99 forks source link

An error has occurred with Pandora every time #98

Closed mtitolo closed 11 years ago

mtitolo commented 12 years ago

For the past few days, every time I open Hermes, I get "An error has occurred with Pandora." and a connection timeout. Music will not play. Running Pandora via their website is fine, and I'm using the same account.

OSX 10.8 running on a rMPB.

alexcrichton commented 12 years ago

Could you try running this build and seeing if anything suspicious comes up in Console.app? It should have a lot more logging enabled when you use this.

mtitolo commented 12 years ago

Here's what happens when the station stops:

11/5/12 10:46:46.688 AM Hermes[2677]: -[Pandora getFragment:] Getting fragment for Gorillaz Radio...
11/5/12 10:46:46.689 AM Hermes[2677]: -[API sendRequest:] https://tuner.pandora.com/services/json/?method=station.getPlaylist&partner_id=20&auth_token=VITJTAXmgDxRq62KqFzJLLLxdZLv4rh8v%2BReoMtZTxyP0%3D&user_id=212397074
11/5/12 10:46:48.603 AM Hermes[2677]: -[PlaybackController playbackStateChanged:] Stream playing now...
11/5/12 10:46:49.316 AM Hermes[2677]: -[Station songsLoaded:] songsLoaded
11/5/12 10:46:49.317 AM Hermes[2677]: -[Station songsLoaded:] quality med
11/5/12 10:46:49.317 AM Hermes[2677]: -[Station songsLoaded:] quality med
11/5/12 10:46:49.317 AM Hermes[2677]: -[Station songsLoaded:] quality med
11/5/12 10:46:49.317 AM Hermes[2677]: -[Station songsLoaded:] quality med
11/5/12 10:46:49.318 AM Hermes[2677]: -[Station songsLoaded:] songsLoaded
11/5/12 10:46:49.318 AM Hermes[2677]: -[Station songsLoaded:] quality med
11/5/12 10:46:49.318 AM Hermes[2677]: -[Station songsLoaded:] quality med
11/5/12 10:46:49.319 AM Hermes[2677]: -[Station songsLoaded:] quality med
11/5/12 10:46:49.319 AM Hermes[2677]: -[Station songsLoaded:] quality med
11/5/12 10:48:29.798 AM Hermes[3819]: -[API sendRequest:] https://tuner.pandora.com/services/json/?method=auth.partnerLogin&partner_id=&auth_token=&user_id=
11/5/12 10:48:39.808 AM Hermes[3819]: -[HermesAppDelegate handlePandoraError:] error received {
    error = "The operation couldn\U2019t be completed. (Connection timeout. error 0.)";
    request = "<PandoraRequest: 0x10021df80>";
}

EDIT: The error occurs when trying to load album art as well. Sometimes the song is playing but I get the error message, or vice versa.

11/5/12 11:35:22.576 AM Hermes[3819]: -[ImageLoader loadImageURL:callback:] queueing http://cont-sv5-3.pandora.com/images/public/amz/1/2/1/4/5099950984121_500W_492H.jpg
11/5/12 11:35:29.888 AM Hermes[3819]: -[HermesAppDelegate handlePandoraError:] error received {
    error = "The operation couldn\U2019t be completed. (Connection timeout. error 0.)";
    request = "<PandoraRequest: 0x1002bc150>";
}
11/5/12 11:35:51.625 AM Hermes[3819]: -[API sendRequest:] https://tuner.pandora.com/services/json/?method=station.getPlaylist&partner_id=20&auth_token=VI6AYcaFJiMUyTAqaYOH9UlRiSgvxhBnlvQgZxYLmQaps%3D&user_id=212397074
11/5/12 11:36:01.627 AM Hermes[3819]: -[HermesAppDelegate handlePandoraError:] error received {
    error = "The operation couldn\U2019t be completed. (Connection timeout. error 0.)";
    request = "<PandoraRequest: 0x1002bc150>";
}
mtitolo commented 12 years ago

PS It also crashed

Process:         Hermes [10612]
Path:            /Users/USER/Desktop/Hermes.app/Contents/MacOS/Hermes
Identifier:      com.alexcrichton.Hermes
Version:         1.1.11 (1920)
Code Type:       X86-64 (Native)
Parent Process:  launchd [135]
User ID:         501

Date/Time:       2012-11-05 11:58:00.628 -0800
OS Version:      Mac OS X 10.8 (12A269)
Report Version:  10

Interval Since Last Report:          695969 sec
Crashes Since Last Report:           5
Per-App Interval Since Last Report:  198908 sec
Per-App Crashes Since Last Report:   1
Anonymous UUID:                      62908D83-F2E8-4B53-8B48-F4D1251A0DC8

Crashed Thread:  0  Dispatch queue: com.apple.main-thread

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000

Application Specific Information:
Assertion failed: ([songs count] == [urls count]), function -[Station newSongPlaying:], file /Users/alex/code/hermes/Classes/Pandora/Station.m, line 175.

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib          0x00007fff91613212 __pthread_kill + 10
1   libsystem_c.dylib               0x00007fff8daccb34 pthread_kill + 90
2   libsystem_c.dylib               0x00007fff8db10dfa abort + 143
3   libsystem_c.dylib               0x00007fff8db11dd5 __assert_rtn + 146
4   com.alexcrichton.Hermes         0x000000010000fa49 -[Station newSongPlaying:] + 313
5   com.apple.CoreFoundation        0x00007fff8d03cb8a _CFXNotificationPost + 2554
6   com.apple.Foundation            0x00007fff8e3b8a76 -[NSNotificationCenter postNotificationName:object:userInfo:] + 64
7   AudioStreamer                   0x000000010006baae -[ASPlaylist bitrateReady:] + 510
8   com.apple.CoreFoundation        0x00007fff8d03cb8a _CFXNotificationPost + 2554
9   com.apple.Foundation            0x00007fff8e3b8a76 -[NSNotificationCenter postNotificationName:object:userInfo:] + 64
10  AudioStreamer                   0x000000010006a612 -[AudioStreamer handlePacket:desc:] + 562
11  AudioStreamer                   0x000000010006a192 -[AudioStreamer handleAudioPackets:numberBytes:numberPackets:packetDescriptions:] + 434
12  AudioStreamer                   0x000000010006930c MyPacketsProc + 76
13  com.apple.audio.toolbox.AudioToolbox    0x00007fff97952ca8 ADTSAudioStream::GeneratePackets(AudioFileStreamContinuation&) + 1328
14  com.apple.audio.toolbox.AudioToolbox    0x00007fff9792c6bc AudioFileStreamObject::ParseBytes(unsigned int, AudioFileStreamContinuation&) + 102
15  com.apple.audio.toolbox.AudioToolbox    0x00007fff9792bdb8 AudioFileStreamWrapper::ParseBytes(unsigned int, void const*, unsigned int) + 94
16  com.apple.audio.toolbox.AudioToolbox    0x00007fff97929cd6 AudioFileStreamParseBytes + 67
17  AudioStreamer                   0x00000001000691d8 -[AudioStreamer handleReadFromStream:eventType:] + 1736
18  AudioStreamer                   0x0000000100068aef ASReadStreamCallBack + 63
19  com.apple.CoreFoundation        0x00007fff8d04fcec _signalEventSync + 108
20  com.apple.CoreFoundation        0x00007fff8d04fc74 _cfstream_solo_signalEventSync + 100
21  com.apple.CoreFoundation        0x00007fff8d04faa7 _CFStreamSignalEvent + 615
22  com.apple.CFNetwork             0x00007fff8d3c9429 CoreReadStreamCFStreamSupport::coreStreamReadEvent(__CoreReadStream*, unsigned long) + 121
23  com.apple.CFNetwork             0x00007fff8d3c9385 CoreReadStreamClient::coreStreamEventsAvailable(unsigned long) + 53
24  com.apple.CFNetwork             0x00007fff8d3c9330 CoreStreamBase::_callClientNow() + 62
25  com.apple.CFNetwork             0x00007fff8d3c9146 CoreStreamBase::_streamSetEventAndScheduleDelivery(unsigned long, unsigned char) + 112
26  com.apple.CFNetwork             0x00007fff8d40240f HTTPReadStream::selfSignalEvent(unsigned long, CFStreamError const*) + 487
27  com.apple.CFNetwork             0x00007fff8d401587 HTTPReadStream::streamEvent(unsigned long) + 269
28  com.apple.CFNetwork             0x00007fff8d3c9385 CoreReadStreamClient::coreStreamEventsAvailable(unsigned long) + 53
29  com.apple.CFNetwork             0x00007fff8d3c9330 CoreStreamBase::_callClientNow() + 62
30  com.apple.CoreFoundation        0x00007fff8d009841 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
31  com.apple.CoreFoundation        0x00007fff8d009165 __CFRunLoopDoSources0 + 245
32  com.apple.CoreFoundation        0x00007fff8d02c4e5 __CFRunLoopRun + 789
33  com.apple.CoreFoundation        0x00007fff8d02bdd2 CFRunLoopRunSpecific + 290
34  com.apple.HIToolbox             0x00007fff8ca5b774 RunCurrentEventLoopInMode + 209
35  com.apple.HIToolbox             0x00007fff8ca5b512 ReceiveNextEventCommon + 356
36  com.apple.HIToolbox             0x00007fff8ca5b3a3 BlockUntilNextEventMatchingListInMode + 62
37  com.apple.AppKit                0x00007fff8bdaffa3 _DPSNextEvent + 685
38  com.apple.AppKit                0x00007fff8bdaf862 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 128
39  com.apple.AppKit                0x00007fff8bda6c03 -[NSApplication run] + 517
40  com.apple.AppKit                0x00007fff8bd4b656 NSApplicationMain + 869
41  com.alexcrichton.Hermes         0x0000000100001492 main + 34
42  com.alexcrichton.Hermes         0x0000000100001464 start + 52
alexcrichton commented 12 years ago

If you re-download the build from the previous link the crash should be fixed, but I'm still not sure about the errors that are happening. Timeouts are normally indicative of something else at play.

When you get these timeout errors are you sure that the host tuner.pandora.com is reachable? You're connected to the internet and everything without any odd configuration or firewall or something? One thing you can try is when album art fails if you can open up the url in a browser. Hermes should be ok if the art can't load, but something may be going wrong with that logic...

alexcrichton commented 11 years ago

Tentatively closing this from recent commits. If you want to try out this build, that'd be awesome. Feel free to reopen if this crops up again.