Skip to content

app crashing loading songs #2598

@woodland-paws

Description

@woodland-paws

Is there an existing issue for this? (Please read the description)

  • I have searched the existing issues

Current Behavior

on both spotube and spotube nightly (versions 4.0.2 and 4.0.1 respectively), after having closed the app while listening to a song and then opening the app later, the app crashes (about 2-3 seconds or so after opening) whilst trying to load the song that was previously being listened to. can be stopped by clearing the queue but its rather difficult. continued after clearing cache and force-stopping both apps.

Expected Behavior

app loads songs or does not crash while attempting to

Steps to reproduce

close app while listening to a song (maybe while a song is loading?)
reopen app
it should crash a few seconds after being opened

Logs


[2025-03-25 03:06:15.985883]---------------------
NoSuchMethodError: The method '[]' was called on null.
Receiver: null
Tried calling:
#0 Object.noSuchMethod (dart:core-patch/object_patch.dart:38)
#1 _objectNoSuchMethod (dart:core-patch/object_patch.dart:88)
#2 transformSectionItemTypeJsonMap (package:spotube/models/spotify/home_feed.dart:174)
#3 transformSectionItemJsonMap. (package:spotube/models/spotify/home_feed.dart:220)
#4 MappedIterable.elementAt (dart:_internal/iterable.dart:402)
#5 ListIterator.moveNext (dart:_internal/iterable.dart:371)
#6 WhereIterator.moveNext (dart:_internal/iterable.dart:467)
#7 new _GrowableList._ofOther (dart:core-patch/growable_array.dart:203)
#8 new _GrowableList.of (dart:core-patch/growable_array.dart:152)
#9 new List.of (dart:core-patch/array_patch.dart:40)
#10 Iterable.toList (dart:core/iterable.dart:499)
#11 transformSectionItemJsonMap (package:spotube/models/spotify/home_feed.dart:229)
#12 transformHomeFeedJsonMap. (package:spotube/models/spotify/home_feed.dart:241)
#13 MappedIterable.elementAt (dart:_internal/iterable.dart:402)
#14 ListIterator.moveNext (dart:_internal/iterable.dart:371)
#15 new _GrowableList._ofEfficientLengthIterable (dart:core-patch/growable_array.dart:190)
#16 new _GrowableList.of (dart:core-patch/growable_array.dart:150)
#17 new List.of (dart:core-patch/array_patch.dart:40)
#18 ListIterable.toList (dart:_internal/iterable.dart:224)
#19 transformHomeFeedJsonMap (package:spotube/models/spotify/home_feed.dart:244)
#20 CustomSpotifyEndpoints.getHomeFeed (package:spotube/services/custom_spotify_endpoints/spotify_endpoints.dart:164)

#21 FutureHandlerProviderElementMixin.handleFuture.. (package:riverpod/src/async_notifier/base.dart:355)

Operating System

android

Spotube version

v4.0.2 and 4.0.1-nightly

Installation source

Website (spotube.krtirtho.dev)

Additional information

No response

Self grab

  • I'm ready to work on this issue!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions