eichblatt / deadstream

A time machine to play GD tapes from archive.org
GNU General Public License v3.0
51 stars 14 forks source link

Player hangs with empty "play" symbol. Buttons responsive, but confusing #282

Closed eichblatt closed 2 years ago

eichblatt commented 2 years ago

After playing for a while, the player moves into a strange state where it isn't playing. The buttons work, and through a combination of select and play/pause, it eventually continues.

eichblatt commented 2 years ago

This may be a clue, or an unrelated bug:

May 27 11:20:28 deadstreamv3 bash[5135]: 2022-05-27 11:20:28.078 WARNING: timemachine.m78rpm 'casa loma'
May 27 11:20:28 deadstreamv3 bash[5135]: 2022-05-27 11:20:28.078 WARNING: timemachine.m78rpm 1 key errors

casa loma is one of the artists in the list of CHOSEN_ARTISTS

'CHOSEN_ARTISTS': ['victor fischer', 'arthur warren', 'kanui lulu', 'marcel wittrisch', 'casa loma', 'bing crosby', 'harald andersen', 'barnabas von', 'paul robeson', 'elmer feldkamp', 'will osborn', 'ben bernie', 'adalbert lutter', 'wilhelm backhaus', 'wendell hall', 'casper reardon', 'jesse crawford', 'massed bands', 'gene arnold', 'bee sharp', 'georgia washboard', 'herb gordon', 'ignacy podgorski', 'colombo tzigane', 'muzzy marcellino', 'tex ritter', 'solomon liszt', 'wayne king', 'leopold', 'gbia7003361a', 'reggie childs', 'gus arnheim', 'jose mojica', 'gbia7003369b', 'wenatohee mountaineers', 'zora layman', 'bessie smith', 'gene kardos', 'charles harrison', 'mezz mezzrow', 'ted lewis', 'owen fallon', 'francisco canaro', 'henry', 'horace henderson', 'roy smecks', 'orlando son', 'gbia0309749b', 'viorica ursuleac', 'alfonso ortiz']}

I think that what's happening is that the year has updated, but the list of CHOSEN_ARTISTS is from a different year, in which 'casa loma' is not present.

eichblatt commented 2 years ago

Failed again. The last song played was Tony Martin.

Last journalctl output:

May 27 12:57:53 deadstreamv3 bash[6489]: 2022-05-27 12:57:53.489 DEBUG: timemachine.m78rpm current state after select button state is {'NOT_READY': -1, 'INIT': 0, 'READY': 1, 'PAUSED': 2, 'STOPPED': 3, 'PLAYING': 4, 'ENDED': 5, 'PLAY_STATE': 1, 'SELECT_STAGED_DATE': False, 'DATE': datetime.date(1942, 1, 1), 'VENUE': 'tony martin lou rica barbs furman victor young', 'ARTIST': 'tony martin lou rica barbs furman victor young', 'STAGED_DATE': None, 'PAUSED_AT': datetime.datetime(2022, 5, 27, 12, 57, 51, 464664), 'WOKE_AT': datetime.datetime(2022, 5, 27, 12, 57, 45, 423512), 'ON_TOUR': False, 'EXPERIENCE': False, 'TOUR_YEAR': None, 'TOUR_STATE': 0, 'DATE_READER': datetime.date(1942, 1, 1), 'VOLUME': 100.0, 'TRACK_NUM': -1, 'TAPE_ID': '', 'TRACK_TITLE': '', 'NEXT_TRACK_TITLE': '', 'TRACK_ID': 'track-1', 'CHOSEN_ARTISTS': ['hermanas abraham', 'dick haymes', 'imperio argentina', 'alice remsen', 'beniamino gigli', 'vladimir horowitz', 'tony martin', 'gbia0124988a', 'emil davis', 'art kassel', 'alfredo mendez', 'john mccormack', 'hermanas padilla', 'skertich brothers', 'gbia0209191b', 'gbia0372869a', 'burl ives', 'maria v', 'xavier cugat', 'alfredo de', 'jennys country', 'los portenos', 'the variety', 'maria karelas', 'pete brown', 'miguelito valdes', 'eddie cantor', 'lew brown', 'staff sgt.', 'ginny simms', 'musikkorps des', 'jimmy shand', 'marguerite viby', 'gbia0309832a', 'andre musette', 'denver darling', 'bunny berigan', 'arne hlphers', 'pipe band', 'karl schmitt', 'carlos molina', 'haymes forrest', 'braa kapugi', 'polish merry', 'morgan', 'mal hallett', 'tschaikowsky ray', 'gbia8000217e', 'liberty glee', 'betty bradley']}

Test to see if gbia0124988a can be played.

NOTE: In this case, the buttons are unresponsive and the service must be restarted

eichblatt commented 2 years ago

This could be another clue:

Exception in thread Thread-9:
Traceback (most recent call last):
  File "/home/deadhead/deadstream/timemachine/Archivary.py", line 1088, in get_metadata
    page_meta = json.load(open(self.meta_path, 'r'))
FileNotFoundError: [Errno 2] No such file or directory: '/home/deadhead/deadstream/timemachine/metadata/1950/1/78_me-and-my-teddy-bear_jack-rivers-j-fred-coots-jack-winters_gbia0436041a.json'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 169, in _new_conn
    conn = connection.create_connection(
  File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 73, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.9/socket.py", line 953, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Temporary failure in name resolution