# App works on desktop but not in devices

**URL:** https://forums.fusetools.com/t/app-works-on-desktop-but-not-in-devices/3730
**Category:** Bug Reports
**Created:** [August 15, 2016, 8:06pm UTC](https://forums.fusetools.com/t/app-works-on-desktop-but-not-in-devices/3730 "2016-08-15T20:06:23Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![jesusmartinoza](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/jesusmartinoza/32/659_2.png) [@jesusmartinoza](https://forums.fusetools.com/u/jesusmartinoza)
#### Post date: [August 15, 2016, 8:06pm UTC](https://forums.fusetools.com/t/app-works-on-desktop-but-not-in-devices/3730/1 "2016-08-15T20:06:23Z")

</div>

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.

```auto
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](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.

---

<div class="post-metadata">

### Author: ![jesusmartinoza](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/jesusmartinoza/32/659_2.png) [@jesusmartinoza](https://forums.fusetools.com/u/jesusmartinoza)
#### Post date: [August 15, 2016, 9:08pm UTC](https://forums.fusetools.com/t/app-works-on-desktop-but-not-in-devices/3730/2 "2016-08-15T21:08:32Z")

</div>

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](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)

---

<div class="post-metadata">

### Author: ![Jake\_Taylor](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/jake_taylor/32/512_2.png) [@Jake\_Taylor](https://forums.fusetools.com/u/Jake_Taylor)
#### Post date: [August 16, 2016, 2:20pm UTC](https://forums.fusetools.com/t/app-works-on-desktop-but-not-in-devices/3730/3 "2016-08-16T14:20:14Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![Vegard\_Strand\_Lende](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/vegard_strand_lende/32/349_2.png) [@Vegard\_Strand\_Lende](https://forums.fusetools.com/u/Vegard_Strand_Lende)
#### Post date: [August 16, 2016, 2:41pm UTC](https://forums.fusetools.com/t/app-works-on-desktop-but-not-in-devices/3730/4 "2016-08-16T14:41:17Z")

</div>

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 🙂

---

<div class="post-metadata">

### Author: ![jesusmartinoza](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/jesusmartinoza/32/659_2.png) [@jesusmartinoza](https://forums.fusetools.com/u/jesusmartinoza)
#### Post date: [August 16, 2016, 4:23pm UTC](https://forums.fusetools.com/t/app-works-on-desktop-but-not-in-devices/3730/5 "2016-08-16T16:23:36Z")

</div>

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