vinszent / gnome-twitch

Enjoy Twitch on your GNU/Linux desktop
http://gnome-twitch.vinszent.com
Other
440 stars 40 forks source link

[segfault] Gnome-Twitch crash when trying to play a stream. #400

Open gpicchiarelli opened 4 years ago

gpicchiarelli commented 4 years ago

Version 0.4.1

Errore di segmentazione means segmentation fault.

After trying to search follows and trying to play the stream found.

[15:22:11] Warning - GNOME-Twitch : {GtTwitch:336} Received unsuccessful response from url 'https://api.twitch.tv/api/channels/kimgapju/access_token' with code '410' and body '{"error":"Gone","status":410,"message":"this API has been removed."}'
[15:22:11] Warning - GNOME-Twitch : {GtTwitch:594} Error getting stream access token for channel 'kimgapju' because: Received unsuccessful response from url 'https://api.twitch.tv/api/channels/kimgapju/access_token' with code '410' and body '{"error":"Gone","status":410,"message":"this API has been removed."}'
Errore di segmentazione 

Smoke Test [click on a random stream]

`[15:25:39] Message - GNOME-Twitch : {GtApp:370} Startup, running version '0.4.1'
[15:25:39] Message - GNOME-Twitch : {GtApp:339} Activate
[15:25:40] Message - GNOME-Twitch : {GtPlayer:132} Loading chat settings
[15:25:40] Message - GNOME-Twitch : {GtPlayer:999} Loaded player backend 'GStreamer Cairo player backend'
[15:25:40] Message - GNOME-Twitch : {GtPlayerBackendGstreamerCairo:246} Init
[15:25:40] Warning - GNOME-Twitch : cannot set NULL uri
[15:25:40] Message - GNOME-Twitch : {GtApp:147} Succesfully fetched oauth info with name 'gpicchiarelli', id '457940178' and oauth token '9m77zqjnwm1y456v7du0iet9s5vskw'
[15:25:40] Message - GNOME-Twitch : {GtApp:182} Succesfully fetched user info with name 'gpicchiarelli', id '457940178' and oauth token '9m77zqjnwm1y456v7du0iet9s5vskw'
[15:25:40] Warning - GNOME-Twitch : {GtTwitch:2057} Unable to read JSON member with name '_total' because: Non è definito il membro «_total» nell'oggetto alla posizione corrente.
[15:25:40] Warning - GNOME-Twitch : {GtTwitch:2155} Unable to fetch all followed channels because: Unable to read JSON member with name '_total' because: Non è definito il membro «_total» nell'oggetto alla posizione corrente.
[15:25:40] Warning - GNOME-Twitch : {GtFollowsManager:479} Unable to fetch Twitch follows because: Unable to fetch all followed channels because: Unable to read JSON member with name '_total' because: Non è definito il membro «_total» nell'oggetto alla posizione corrente.
[15:25:42] Message - GNOME-Twitch : {GtPlayer:1310} Opening stream 'buster' with quality 'source'
[15:25:42] Warning - GNOME-Twitch : {GtTwitch:336} Received unsuccessful response from url 'https://api.twitch.tv/api/channels/buster/access_token' with code '410' and body '{"error":"Gone","status":410,"message":"this API has been removed."}'
[15:25:42] Warning - GNOME-Twitch : {GtTwitch:594} Error getting stream access token for channel 'buster' because: Received unsuccessful response from url 'https://api.twitch.tv/api/channels/buster/access_token' with code '410' and body '{"error":"Gone","status":410,"message":"this API has been removed."}'
Errore di segmentazione
`
leyouki commented 4 years ago

same here (0.4.1). Looks like the twitch API changed since last release of gnome-twitch. "error":"Gone","status":410,"message":"this API has been removed."

vincenzoromeo commented 4 years ago

Yep, this is a major bug. The backend API has changed and the source code has not been changed to reflect this, hence the 410 from the remote server.

This is a serious deal breaker for the app, unfortunately. And poor form the Twitch devs - they provide the slightest indication that the API has been removed but no remediation instructions! C'mon, a URL to the bloody new API docs would've been a start.

Perhaps the new API has obsoleted the current API that our call segfaults from:

As of April 30, 2020, all Helix endpoints require OAuth and matching client IDs. See this announcement for more details.