Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Images randomly get swapped on Android #3747

Closed
alexziskind1 opened this issue Mar 7, 2017 · 12 comments
Closed

Images randomly get swapped on Android #3747

alexziskind1 opened this issue Mar 7, 2017 · 12 comments

Comments

@alexziskind1
Copy link

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

@alexziskind1 alexziskind1 changed the title Images randomly get swapped on Android (video and code links included) Images randomly get swapped on Android Mar 7, 2017
@NickIliev
Copy link
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

@davek1979
Copy link

davek1979 commented Mar 13, 2017

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.

@alexziskind1
Copy link
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

--

@NathanaelA

This comment was marked as abuse.

@alexziskind1
Copy link
Author

alexziskind1 commented Mar 13, 2017 via email

@alexziskind1
Copy link
Author

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

@NickIliev NickIliev added bug and removed question labels Mar 16, 2017
@NickIliev NickIliev added this to the 3.0 milestone Mar 16, 2017
@NickIliev
Copy link
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.

@TLmaK0
Copy link

TLmaK0 commented Mar 16, 2017

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.

@SvetoslavTsenov SvetoslavTsenov modified the milestones: 3.0, 3.1 TBD Apr 26, 2017
@SvetoslavTsenov
Copy link
Contributor

Also reproducible with Groceries on api level 19

@codeback
Copy link

codeback commented May 18, 2017

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!

@hshristov
Copy link
Contributor

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

@hshristov hshristov removed the backlog label May 18, 2017
@dtopuzov dtopuzov modified the milestones: 3.0.1, 3.1 May 22, 2017
@lock
Copy link

lock bot commented Aug 28, 2019

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.

@lock lock bot locked and limited conversation to collaborators Aug 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

9 participants