Skip to content

Images randomly get swapped on Android #3747

Closed

Description

@alexziskind1

Please, provide the details below:

On Android (not iOS) images that are either deployed as resources or in a separate folder sometimes get swapped for other images at random. The repository with all the code is listed below and a video was created to demonstrate the problem.

Did you verify this is a real problem by searching Stack Overflow and the other open issues in this repo?

I could not find an existing issue.

Which platform(s) does your issue occur on?

iOS/Android/Both
The problem is on Android. It is working fine on iOS.

Please provide the following version numbers that your issue occurs with:

  • CLI: 2.5.2
  • Cross-platform modules: 2.5.1
  • Runtime(s): 2.5.0 for iOS and Android
  • Plugin(s):
    "nativescript-angular": "1.4.1",
    "nativescript-telerik-ui": "1.6.1",
    "nativescript-theme-core": "1.0.3",
    "reflect-metadata": "0.1.10",
    "rxjs": "5.2.0",
    "tns-core-modules": "2.5.1"

Please tell us how to recreate the issue in as much detail as possible.

I created a video of the problem and it can be seen on youtube here: https://youtu.be/WUszWXxHjWI
Clone the repo and run the project. I use Genymotion as my emulator on Mac Sierra and I've tried this on two different Macs.

Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.

Yes, the complete project is in the following repo: https://github.com/alexziskind1/looptidoo

Thanks,
Alex

Activity

  1. changed the title [-]Images randomly get swapped on Android (video and code links included)[/-] [+]Images randomly get swapped on Android[/+] on Mar 7, 2017
  2. NickIliev commented on Mar 13, 2017

    @NickIliev
    Contributor

    Hey, @alexziskind1 we've tested your application on several AVD emulators and on several real devices (API25, API23 and API19) and it seems that this issue is only reproducible under one LG G3 API19 and in the same time everything is working as expected on the other AVD emulators and devices. I had a similar issue caused by the Geny emulators (the reason I stopped using Genymotion).

    Can you try testing your application against a real device or an AVD emulator.

    Meanwhile, I will investigate what's the reason for this one to be reproducible only on a single LG device and will come back to you when additional info is available

  3. davek1979 commented on Mar 13, 2017

    @davek1979

    I'd like to report I have encountered the same problem on a generic 10.1 WXGA Tablet AVD emulator.
    I have 2 different images in my view and somehow, the view contained the same image twice despite having been recompiled and resynced on emulator start. XML contained the correct markup of course. Only a subsequent resync corrected the issue. Cannot comment on iOS as my project is Android only for now.

  4. alexziskind1 commented on Mar 13, 2017

    @alexziskind1
    Author

    Just tried with a standard (non-Genymotion) Android emulator and the problem doesn't exist there.
    For those interested, I'm now using an AVD with the following config:
    Nexus 5
    Android 7.1.1 API Level 25
    Google APIs Intel Atom (x86) (with HAXM)
    RAM 2048 VM Heap 64
    Storage 500MiB

    --

  5. NathanaelA commented on Mar 13, 2017

    @NathanaelA
  6. alexziskind1 commented on Mar 13, 2017

    @alexziskind1
    Author
  7. alexziskind1 commented on Mar 15, 2017

    @alexziskind1
    Author

    @NickIliev I've moved the effected code into the master branch in the referenced repo. I omitted the branch in my original post.

  8. added this to the 3.0 milestone on Mar 16, 2017
  9. NickIliev commented on Mar 16, 2017

    @NickIliev
    Contributor

    related to #2861

    Note - The issue is not related to file naming and occurs randomly only on some specific devices and mainly when using Genymotion.

  10. TLmaK0 commented on Mar 16, 2017

    @TLmaK0

    Same problem here, this happens after last release I did without change app code. It was working until last month. I think it's a problem with a library update.

    edit: The app list images, I have increased the image list in the backend, so It could be a memory problem as @alexziskind1 said.

  11. 1 remaining item

  12. added this to the milestone on May 3, 2017
  13. SvetoslavTsenov commented on May 4, 2017

    @SvetoslavTsenov
    Contributor

    Also reproducible with Groceries on api level 19

  14. self-assigned this
    on May 16, 2017
  15. codeback commented on May 18, 2017

    @codeback

    I am experiencing the same problem. Please, see attached file.

    hoppin_bug_images

    And here and example view:

    <RadListView [items]="dataItems" class="container" loadOnDemandMode="Auto" (loadMoreDataRequested)="onLoadMoreItems($event)">
      <ng-template tkListItemTemplate let-item="item">
    
        <GridLayout [nsRouterLink]="['/products', item._id]">
          <CardView row="0" col="0" shadowColor="#FE00FC" elevation="5" margin="10">
            <GridLayout rows="100, auto" columns="*">
    
              <Image row="0" col="0" [src]="item.mainImage.medium" decodeHeight="100" stretch="aspectFill"></Image>
    
              <StackLayout row="0" height="30" class="productPriceTag" horizontalAlignment="right" verticalAlignment="center">
                <Label [text]="item.currentValue | currency:item.currency:true:'1.0-2'" verticalAlignment="center" textWrap="true"></Label>
              </StackLayout>
    
              <StackLayout row="1" orientation="vertical">
                <Label col="0" class="productName" horizontalAlignment="center" verticalAlignment="center" [text]="item.name" class="m-5"></Label>
              </StackLayout>
    
            </GridLayout>
          </CardView>
        </GridLayout>
    
      </ng-template>
    
      <ListViewGridLayout tkListViewLayout scrollDirection="Vertical" itemHeight="200" spanCount="2"></ListViewGridLayout>
    
    </RadListView>
    

    I've installed the latest version of tns-core-modules (tns-core-modules@3.1.0-2017-05-17-6629) and the problem persists.

    Is there any way to test the proposed solution?

    Thanks!

  16. hshristov commented on May 18, 2017

    @hshristov
    Contributor

    @codeback You need the latest version of tns-core-modules-widgets@next

  17. modified the milestones: 3.0.1, 3.1 on May 22, 2017
  18. lock commented on Aug 28, 2019

    @lock

    This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

  19. locked and limited conversation to collaborators on Aug 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions