[mythtv-users] MythTV for Android null Pointer Exception

Daniel Frey dmfrey at gmail.com
Fri Sep 21 17:39:10 UTC 2012


On Wed, Sep 19, 2012 at 1:19 PM, Timothy Krantz
<tkrantz at stahurabrenner.com>wrote:

> **
>
>
>  ------------------------------
> *From:* mythtv-users-bounces at mythtv.org [mailto:
> mythtv-users-bounces at mythtv.org] *On Behalf Of *Daniel Frey
> *Sent:* Wednesday, September 19, 2012 8:00 AM
>
> *To:* Discussion about MythTV
> *Subject:* Re: [mythtv-users] MythTV for Android null Pointer Exception
>
>
> On Sep 18, 2012 5:10 PM, "Timothy Krantz" <tkrantz at stahurabrenner.com>
> wrote:
> >
> >
> >
> >> ________________________________
> >> From: mythtv-users-bounces at mythtv.org [mailto:
> mythtv-users-bounces at mythtv.org] On Behalf Of Daniel Frey
> >> Sent: Tuesday, September 18, 2012 4:47 PM
> >>
> >> To: Discussion about MythTV
> >> Subject: Re: [mythtv-users] MythTV for Android null Pointer Exception
> >>
> >>
> >> On Sep 18, 2012 3:09 PM, "Timothy Krantz" <tkrantz at stahurabrenner.com>
> wrote:
> >> >
> >> >
> >> >
> >> >> ________________________________
> >> >> From: mythtv-users-bounces at mythtv.org [mailto:
> mythtv-users-bounces at mythtv.org] On Behalf Of Daniel Frey
> >> >> Sent: Tuesday, September 18, 2012 2:53 PM
> >> >>
> >> >> To: Discussion about MythTV
> >> >> Subject: Re: [mythtv-users] MythTV for Android null Pointer Exception
> >> >>
> >> >>
> >> >> On Sep 18, 2012 2:50 PM, "Daniel Frey" <dmfrey at gmail.com> wrote:
> >> >> >
> >> >> >
> >> >> > On Sep 18, 2012 2:39 PM, "Timothy Krantz" <
> tkrantz at stahurabrenner.com> wrote:
> >> >> > >
> >> >> > >
> >> >> > >
> >> >> > >> ________________________________
> >> >> > >> From: mythtv-users-bounces at mythtv.org [mailto:
> mythtv-users-bounces at mythtv.org] On Behalf Of Daniel Frey
> >> >> > >> Sent: Tuesday, September 18, 2012 2:23 PM
> >> >> > >> To: Discussion about MythTV
> >> >> > >> Subject: Re: [mythtv-users] MythTV for Android null Pointer
> Exception
> >> >> > >>
> >> >> > >>
> >> >> > >> On Sep 18, 2012 2:01 PM, "Timothy Krantz" <
> tkrantz at stahurabrenner.com> wrote:
> >> >> > >> >
> >> >> > >> > For the last couple of days when running the latest git code
> I am getting a
> >> >> > >> > null pointer exception when selecting a Program title from
> the list of
> >> >> > >> > program titles.
> >> >> > >> >
> >> >> > >> > In particular it is on line 92 of ProgramGroupFragment.  Whe
> it tries to
> >> >> > >> > dereference cache, cache is null.
> >> >> > >> >
> >> >> > >> > I have tried uninstalling and reinstalling, removing all the
> local data from
> >> >> > >> > the device etc but am still having a problem.
> >> >> > >> >
> >> >> > >> > Anything I can do to help diagnose?
> >> >> > >> >
> >> >> > >> > Tim
> >> >> > >> >
> >> >> > >> >
> >> >> > >> > _______________________________________________
> >> >> > >> > mythtv-users mailing list
> >> >> > >> > mythtv-users at mythtv.org
> >> >> > >> > http://www.mythtv.org/mailman/listinfo/mythtv-users
> >> >> > >>
> >> >> > >> Tim,
> >> >> > >>
> >> >> > >> Try and pull again. Made some changes this morning.
> >> >> > >>
> >> >> > >> That one sounds familiar. Might be what I fixed this morning.
> >> >> > >>
> >> >> > >>
> >> >> > >>
> >> >> > >> Did a fresh pull, uninstall/re install etc.  Same issue.
> >> >> > >>
> >> >> > >>
> >> >> > >>
> >> >> > >> Tim
> >> >> > >
> >> >> > >
> >> >> > > _______________________________________________
> >> >> > > mythtv-users mailing list
> >> >> > > mythtv-users at mythtv.org
> >> >> > > http://www.mythtv.org/mailman/listinfo/mythtv-users
> >> >> > >
> >> >> >
> >> >> > Can you send me the java stacktrace from the location window?
> >> >>
> >> >> Also, what phone/tablet? Version of android?
> >> >>
> >> >>
> >> >>
> >> >>
> >> >>
> >> >> Thread [<1> main] (Suspended (exception NullPointerException))
> >> >>  ProgramGroupFragment.loadPrograms(String) line: 92
> >> >>  RecordingsActivity.onProgramGroupSelected(String) line: 73
> >> >>  RecordingsFragment.onListItemClick(ListView, View, int, long) line:
> 245
> >> >>  ListFragment$2.onItemClick(AdapterView, View, int, long) line: 58
> >> >>  ListView(AdapterView).performItemClick(View, int, long) line: 292
> >> >>  ListView(AbsListView).performItemClick(View, int, long) line: 1185
> >> >>  AbsListView$PerformClick.run() line: 2715
> >> >>  AbsListView$1.run() line: 3476
> >> >>  ViewRootImpl(Handler).handleCallback(Message) line: 605
> >> >>  ViewRootImpl(Handler).dispatchMessage(Message) line: 92
> >> >>  Looper.loop() line: 137
> >> >>  ActivityThread.main(String[]) line: 4512
> >> >>  Method.invokeNative(Object, Object[], Class, Class[], Class, int,
> boolean) line: not available [native method]
> >> >>  Method.invoke(Object, Object...) line: 511
> >> >>  ZygoteInit$MethodAndArgsCaller.run() line: 978
> >> >>  ZygoteInit.main(String[]) line: 745
> >> >>  NativeStart.main(String[]) line: not available [native method]
> >> >>
> >> >> Interestingly it fails on my samsung 8.9 galaxy tablet running
> android 4.0.4 but works on my Galaxy S Epic phone running 2.3.6.
> >> >>
> >> >>
> >> >>
> >> >> The stacktrace above is from the failure on the Tablet.
> >> >>
> >> >>
> >> >>
> >> >> Tim
> >> >
> >> >
> >> > _______________________________________________
> >> > mythtv-users mailing list
> >> > mythtv-users at mythtv.org
> >> > http://www.mythtv.org/mailman/listinfo/mythtv-users
> >> >
> >>
> >> Does the tab have an sd card mounted in it?  We are storing all
> resources downloaded from the backend in cache in external storage.
> >>
> >>
> >>
> >> It does.
> >
> >
> > _______________________________________________
> > mythtv-users mailing list
> > mythtv-users at mythtv.org
> > http://www.mythtv.org/mailman/listinfo/mythtv-users
> >
>
> Strange. Some of the guys have it running on the nexus 7 with no issue.
>
> I had to go out of town on business. Will take a look in a couple days.
> One of the guys was looking into this for me so keep an eye on the repo. He
> might checked some changes in regarding this.
>
> Is there anything else about the specs of that tablet that could be
> relevant here?
>
> Thanks,
> Dan
>
> I have been running this on the tablet for quite a while not.  Just quit
> working the last few days.
>
>
>
> I put some breakpoints in ProgramGroupFragment and can say for sure that I
> am getting to the call of loadPrograms at line 87 BEFORE the onCreate is
> called.
>
>
>
> I think you will see that from the last few lines of the attached logcat
> capture.
>
>
>
> Tim
>
> 09-19 13:05:03.210: V/BannerLruMemoryCache(22914): create : enter
> 09-19 13:05:03.210: V/BannerLruMemoryCache(22914): create : exit
> 09-19 13:05:03.210: V/RecordingsFragment(22914): getView : banner not
> found in adapter cache
> 09-19 13:05:03.210: V/RecordingsFragment(22914):
> ProgramGroupRowAdapter.getView : exit
> 09-19 13:05:03.220: V/RecordingsFragment(22914):
> ProgramGroupRowAdapter.getView : enter
> 09-19 13:05:03.230: V/BannerLruMemoryCache(22914): create : enter
> 09-19 13:05:03.230: V/BannerLruMemoryCache(22914): create : exit
> 09-19 13:05:03.230: V/RecordingsFragment(22914): getView : banner not
> found in adapter cache
> 09-19 13:05:03.230: V/RecordingsFragment(22914):
> ProgramGroupRowAdapter.getView : exit
> 09-19 13:05:03.240: V/RecordingsFragment(22914):
> ProgramGroupRowAdapter.getView : enter
> 09-19 13:05:03.250: V/BannerLruMemoryCache(22914): create : enter
> 09-19 13:05:03.250: V/BannerLruMemoryCache(22914): create : exit
> 09-19 13:05:03.250: V/RecordingsFragment(22914): getView : banner not
> found in adapter cache
> 09-19 13:05:03.250: V/RecordingsFragment(22914):
> ProgramGroupRowAdapter.getView : exit
> 09-19 13:05:03.260: D/OpenGLRenderer(22914): Flushing caches (mode 0)
> 09-19 13:05:03.280: V/RecordingsFragment(22914):
> ProgramGroupRowAdapter.getView : enter
> 09-19 13:05:03.300: V/BannerLruMemoryCache(22914): create : enter
> 09-19 13:05:03.310: V/BannerLruMemoryCache(22914): create : exit
> 09-19 13:05:03.310: V/RecordingsFragment(22914): getView : banner not
> found in adapter cache
> 09-19 13:05:03.310: V/RecordingsFragment(22914):
> ProgramGroupRowAdapter.getView : exit
> 09-19 13:05:03.650: V/AbstractLocationAwareFragmentActivity(22914): onStop
> : enter
> 09-19 13:05:03.650: V/AbstractLocationAwareFragmentActivity(22914): onStop
> : exit
> 09-19 13:05:07.060: V/RecordingsFragment(22914): onListItemClick : enter
> 09-19 13:05:07.060: V/RecordingsFragment(22914): onListItemClick :
> position=6, id=6,
> tag=org.mythtv.client.ui.dvr.RecordingsFragment$ViewHolder at 417521c8
> 09-19 13:05:07.060: D/RecordingsActivity(22914): onProgramGroupSelected :
> enter
> 09-19 13:05:07.060: V/RecordingsActivity(22914): onProgramGroupSelected :
> adding program group to pane
> 09-19 13:05:07.060: V/RecordingsActivity(22914): onProgramGroupSelected :
> creating new programGroupFragment
> 09-19 13:05:07.120: V/RecordingsActivity(22914): onProgramGroupSelected :
> setting program group to display
> 09-19 13:05:07.120: I/ProgramGroupFragment(22914): loadPrograms : enter
>
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://www.mythtv.org/mailman/listinfo/mythtv-users
>
>
Tim,

Can you try it again with the latest code?

Thanks,
Dan

-- 
My Google Profile <http://www.google.com/profiles/dmfrey>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mythtv.org/pipermail/mythtv-users/attachments/20120921/e2c0ce6d/attachment.html>


More information about the mythtv-users mailing list