Skip to content

[BUG] App crash when Gallery scrolling #129

@leinnus

Description

@leinnus

Describe the bug
ios . app crash when video gallery scrolling.
only simulator works fine.

To Reproduce
Use RN jwplayer official Example.(SourceExample.js)

Steps to reproduce the behavior:

  1. play video use multiple playlist(4 over)
  2. gallery button touch
  3. scrolling left right
  4. app crash

**Screenshots **

Image
ScreenRecording_02-28-2025.02-49-52_1.MP4

Device(s)

  • Device: iPhone 15 Pro, iPhone 16 Pro Max
  • OS: iOS 18.1, iOS 18.3.1

Additional context
*** Assertion failure in -[JWPlayerKit.GalleryCollectionView _updateVisibleCellsNow:], UICollectionView.m:5673
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Expected dequeued view to be returned to the collection view in preparation for display. When the collection view's data source is asked to provide a view for a given index path, ensure that a single view is dequeued and returned to the collection view. Avoid dequeuing views without a request from the collection view. For retrieving an existing view in the collection view, use -[UICollectionView cellForItemAtIndexPath:] or -[UICollectionView supplementaryViewForElementKind:atIndexPath:]. Dequeued view: <JWPlayerKit.GalleryMediaCell: 0x13d654300; baseClass = UICollectionViewCell; frame = (839.667 32.6667; 249.254 200); clipsToBounds = YES; opaque = NO; backgroundColor = UIExtendedGrayColorSpace 0 0.2; layer = <CALayer: 0x302024a20>>; Collection view: <JWPlayerKit.GalleryCollectionView: 0x125959c00; baseClass = UICollectionView; frame = (0 0; 734 265); clipsToBounds = YES; autoresize = W+H; gestureRecognizers = <NSArray: 0x302e05d70>; backgroundColor = UIExtendedGrayColorSpace 0 0; layer = <CALayer: 0x302032560>; contentOffset: {115, 0}; contentSize: {2989.7910447761192, 265}; adjustedContentInset: {0, 0, 0, 0}; layout: <UICollectionViewFlowLayout: 0x12eaea080>; dataSource: <JWPlayerKit.GalleryTopPicksDataSource: 0x303b64a80>>'

JWP Ticketing
SAMG Ent. korea

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingnative-sdk-issueWork is blocked by native SDK

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions