iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
Testing the sample on my Motorola E2 API21 I encountered the following errors:
- ItemRepository: Line 54: Missing CultureInfo.InvariantCulture -> App crashes in none US culturesI reported this bug like 2 years ago and it seams you are not able to fix this in your samples.
- Clicking through all the pages (sometimes more than one time / slide show pages seem critical) I receive at some point the following error:02-14 15:37:12.021 E/AndroidRuntime( 5695): FATAL EXCEPTION: main02-14 15:37:12.021 E/AndroidRuntime( 5695): Process: ViewSliderSamples.Android.Material, PID: 569502-14 15:37:12.021 E/AndroidRuntime( 5695): java.lang.OutOfMemoryError: Failed to allocate a 1654572 byte allocation with 507732 free bytes and 495KB until OOM02-14 15:37:12.021 E/AndroidRuntime( 5695): at dalvik.system.VMRuntime.newNonMovableArray(Native Method)02-14 15:37:12.021 E/AndroidRuntime( 5695): at android.graphics.Bitmap.nativeCreate(Native Method)02-14 15:37:12.021 E/AndroidRuntime( 5695): at android.graphics.Bitmap.createBitmap(Bitmap.java:843)02-14 15:37:12.021 E/AndroidRuntime( 5695): at android.graphics.Bitmap.createBitmap(Bitmap.java:820)02-14 15:37:12.021 E/AndroidRuntime( 5695): at android.graphics.Bitmap.createBitmap(Bitmap.java:787)02-14 15:37:12.021 E/AndroidRuntime( 5695): at android.transition.TransitionUtils.createViewBitmap(TransitionUtils.java:134)02-14 15:37:12.021 E/AndroidRuntime( 5695): at android.transition.TransitionUtils.copyViewImage(TransitionUtils.java:100)02-14 15:37:12.021 E/AndroidRuntime( 5695): at android.transition.Visibility.onDisappear(Visibility.java:378)02-14 15:37:12.021 E/AndroidRuntime( 5695): at android.transition.Visibility.createAnimator(Visibility.java:247)02-14 15:37:12.021 E/AndroidRuntime( 5695): at android.transition.Transition.createAnimators(Transition.java:723)02-14 15:37:12.021 E/AndroidRuntime( 5695): at android.transition.TransitionSet.createAnimators(TransitionSet.java:405)02-14 15:37:12.021 E/AndroidRuntime( 5695): at android.transition.Transition.playTransition(Transition.java:1761)02-14 15:37:12.021 E/AndroidRuntime( 5695): at android.transition.TransitionManager$MultiListener.onPreDraw(TransitionManager.java:298)02-14 15:37:12.021 E/AndroidRuntime( 5695): at android.view.ViewTreeObserver.dispatchOnPreDraw(ViewTreeObserver.java:847)02-14 15:37:12.021 E/AndroidRuntime( 5695): at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1986)02-14 15:37:12.021 E/AndroidRuntime( 5695): at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1077)02-14 15:37:12.021 E/AndroidRuntime( 5695): at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5884)02-14 15:37:12.021 E/AndroidRuntime( 5695): at android.view.Choreographer$CallbackRecord.run(Choreographer.java:767)02-14 15:37:12.021 E/AndroidRuntime( 5695): at android.view.Choreographer.doCallbacks(Choreographer.java:580)02-14 15:37:12.021 E/AndroidRuntime( 5695): at android.view.Choreographer.doFrame(Choreographer.java:550)02-14 15:37:12.021 E/AndroidRuntime( 5695): at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:753)02-14 15:37:12.021 E/AndroidRuntime( 5695): at android.os.Handler.handleCallback(Handler.java:739)02-14 15:37:12.021 E/AndroidRuntime( 5695): at android.os.Handler.dispatchMessage(Handler.java:95)02-14 15:37:12.021 E/AndroidRuntime( 5695): at android.os.Looper.loop(Looper.java:135)02-14 15:37:12.021 E/AndroidRuntime( 5695): at android.app.ActivityThread.main(ActivityThread.java:5310)02-14 15:37:12.021 E/AndroidRuntime( 5695): at java.lang.reflect.Method.invoke(Native Method)02-14 15:37:12.021 E/AndroidRuntime( 5695): at java.lang.reflect.Method.invoke(Method.java:372)02-14 15:37:12.021 E/AndroidRuntime( 5695): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:901)02-14 15:37:12.021 E/AndroidRuntime( 5695): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:696)02-14 15:37:17.954 I/art ( 5695): Clamp target GC heap from 103MB to 96MBThread finished: <Thread Pool> #13The thread 'Unknown' (0xd) has exited with code 0 (0x0).
- Slide Show: There are sometimes only white pages with no image
Please fix until RTM.
Sorry for any inconvenience this problem may have caused you.
Need to add InvariantCulture when parsing Price property in ItemRepository.cs. This change has been submitted to the git. Please obtain the latest update of this sample and let me know if the problem still persist.
Hello Yudi,
I just re-tested and the problem seems to be fixed.
Thanks,
Thomas
Any news about the memory leak?
Deeply apologize for the delay in sending this.
I’m currently working on this ticket and need more time to provide you with solution, suggestion, or sample.
I’ll get back to you as soon as possible.
Edited on March 2, 2016 4:30 AMReason: Update recent progress
The reported problem is fixed in sample level by setting ImageMemberPath to ThumbnailImage in ItemListBindingProvider.
For more detail, kindly check my respond in this thread.
Thank you and have a nice day.
I re-tested with the final version of the sample and the memory leak problem seems to be fixed.
There is still another problem on my test device (Motorola E2 API21): Start the app and navigate to Slide Show. Big Gulp soft drink image appears. Then I have three white pages for the next three pictures. Then Today's Savings picture appears. Then it starts over and in this turn all pictures show up.
Please, fix.
Hi Thomas,
The "white pages" doesn't seem to occur per our test. Could you re-check again if the issue persist? And also check on more devices or simulators to see if it's specific to an environment.
Hello Crosslight Support,
I tested now on different devices and the problem is still reproducable. On some devices it is even worse. For the first round trip I see no images only white pages.
In the slide sample there is a binding to the Image property of the Ad class. This property represents the file path. I added a LargeImage property to the Ad class which holds the image as byte array. In the AdSliderBindingProvider I change ImageMemberPath = "Image" to ImageMemberPath = "LargeImage".
Doing this the problem is gone. I can use this work around, but maybe this is not as memory efficient than the original approach.
It would be nice if the original approach with the ImageMemberPath = "Image" would work, too. Maybe this helps you to figure out the problem.
This has been reported to Crosslight development team under CROS-1042. I will update this thread with any news I heard from the team regarding CROS-1042.
In the slide sample there is a binding to the Image property of the Ad class. This property represents the file path. I added a LargeImage property to the Ad class which holds the image as byte array. In the AdSliderBindingProvider I change ImageMemberPath = "Image" to ImageMemberPath = "LargeImage".Doing this the problem is gone. I can use this work around, but maybe this is not as memory efficient than the original approach.It would be nice if the original approach with the ImageMemberPath = "Image" would work, too. Maybe this helps you to figure out the problem.
Thank you for this valuable information. Currently the team is working on the reported problem.
Will inform you when the hotfix is ready to be evaluated.
Edited on March 16, 2016 8:50 PMReason: Update recent progress of CROS-1042
CROS-1042 has been resolved. The hotfix is now available in NuGet.
Per my test, the reported problem is no longer persist. The images on View Slider - Slide Show sample are now loaded properly. Please update the Crosslight NuGet package in your ViewSlider sample project and let me know if you have different result.
Glad to hear the good news.
Should you need further assistance or run into any problems regarding our controls, feel free to post it into our community site. We would be happy to assist you again.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname