App works on desktop but not in devices

Hi everybody, I have an app that works good in desktop but when I test it in both platforms. Some times I got this error.

ERROR: Object reference was null
    Uno.NullReferenceException occured.
       at Fuse.DrawContext.GetLocalToClipTransform(Fuse.Visual)
       at Fuse.Elements.ElementBatcher.Draw(Fuse.DrawContext)
       at Fuse.Elements.Element.OnDraw(Fuse.DrawContext)
       at Fuse.Controls.Control.OnDraw(Fuse.DrawContext)
       at Fuse.Elements.Element.CompositEffects(Fuse.DrawContext)
       at Fuse.Elements.Cache.DrawHeuristically(Fuse.DrawContext)
       at Fuse.Elements.Element.Composit(Fuse.DrawContext)
       at Fuse.Elements.Element.Draw(Fuse.DrawContext)
       at Fuse.Elements.Element.OnDraw(Fuse.DrawContext)
       at Fuse.Controls.Control.OnDraw(Fuse.DrawContext)
       at Fuse.Elements.Element.CompositEffects(Fuse.DrawContext)
       at Fuse.Elements.Cache.DrawHeuristically(Fuse.DrawContext)
       at Fuse.Elements.Element.Composit(Fuse.DrawContext)
       at Fuse.Elements.Element.Draw(Fuse.DrawContext)
       at Fuse.Elements.Element.OnDraw(Fuse.DrawContext)
       at Fuse.Controls.Control.OnDraw(Fuse.DrawContext)
       at Fuse.Elements.Element.CompositEffects(Fuse.DrawContext)
       at Fuse.Elements.Cache.DrawHeuristically(Fuse.DrawContext)
       at Fuse.Elements.Element.Composit(Fuse.DrawContext)
       at Fuse.Elements.Element.Draw(Fuse.DrawContext)
       at Fuse.Elements.Element.OnDraw(Fuse.DrawContext)
       at Fuse.Controls.Control.OnDraw(Fuse.DrawContext)
       at Fuse.Elements.Element.CompositEffects(Fuse.DrawContext)
       at Fuse.Elements.Cache.DrawHeuristically(Fuse.DrawContext)
       at Fuse.Elements.Element.Composit(Fuse.DrawContext)
       at Fuse.Elements.Element.Draw(Fuse.DrawContext)
       at Fuse.Elements.Element.OnDraw(Fuse.DrawContext)
       at Fuse.Controls.Control.OnDraw(Fuse.DrawContext)
       at Fuse.Elements.Element.CompositEffects(Fuse.DrawContext)
       at Fuse.Elements.Cache.DrawHeuristically(Fuse.DrawContext)
       at Fuse.Elements.Element.Composit(Fuse.DrawContext)
       at Fuse.Elements.Element.Draw(Fuse.DrawContext)
       at Fuse.Elements.Element.OnDraw(Fuse.DrawContext)
       at Fuse.Controls.Control.OnDraw(Fuse.DrawContext)
       at Fuse.Elements.Element.CompositEffects(Fuse.DrawContext)
       at Fuse.Elements.Cache.DrawHeuristically(Fuse.DrawContext)
       at Fuse.Elements.Element.Composit(Fuse.DrawContext)
       at Fuse.Elements.Element.Draw(Fuse.DrawContext)
       at Fuse.Elements.Element.OnDraw(Fuse.DrawContext)
       at Fuse.Controls.Control.OnDraw(Fuse.DrawContext)
       at Fuse.Controls.GraphicsView.OnDraw(Fuse.DrawContext)
       at Fuse.Elements.Element.CompositEffects(Fuse.DrawContext)
       at Fuse.Elements.Cache.DrawHeuristically(Fuse.DrawContext)
       at Fuse.Elements.Element.Composit(Fuse.DrawContext)
       at Fuse.Elements.Element.Draw(Fuse.DrawContext)
       at Fuse.Controls.GraphicsView.DrawFrame()
       at Fuse.UpdateListener.Invoke()
       at Fuse.UpdateManager.Update(Fuse.Stage)
       at Fuse.UpdateManager.Update()
       at Fuse.AppBase.OnUpdate()
       at Outracks.Simulator.Application.OnUpdate()
       at Fuse.App.OnFrameCallback(double,double)

But it just doesn’t told me in which line or event is the problem :c

I appreciete a lot any idea, here is the project:

Visit https://drive.google.com/file/d/0B_9FSsmiapzdTHhJUlByWXhTRTQ/view?usp=sharing

To reproduce the problem just open the app, select a magazine and scroll to find more ads.

Thank you

PD: Sorry for the spaguetti code.

I found it is related with this…

https://www.fusetools.com/community/forums/bug_reports/unonullreferenceexception_object_reference_was_nul?page=1&highlight=6ebd7788-c0b7-448d-a244-39eb1d69795e#post-6ebd7788-c0b7-448d-a244-39eb1d69795e

Thanks for the report! I’m not sure entirely if it’s related to the older issue, but I was able to reproduce it on my device. I’ll make a ticket internally for it.

Hi!

What device are you running this on? I tested this on a Nexus 5 and Nexus 9, ran without problems.

Please provide any steps needed to reproduce this :slight_smile:

Thank you for tested it. I ran on a Moto X 2013. To reproduce it, scroll fast in the ads section (GUIA TU EVENTO)