<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.19298"></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT color=#0000ff size=2
face=Arial></FONT> </DIV><BR>
<BLOCKQUOTE
style="BORDER-LEFT: #0000ff 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px"
dir=ltr>
<DIV dir=ltr lang=en-us class=OutlookMessageHeader align=left>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>From:</B> mythtv-users-bounces@mythtv.org
[mailto:mythtv-users-bounces@mythtv.org] <B>On Behalf Of </B>Daniel
Frey<BR><B>Sent:</B> Friday, September 21, 2012 4:55 PM<BR><B>To:</B>
Discussion about MythTV<BR><B>Subject:</B> Re: [mythtv-users] MythTV for
Android null Pointer Exception<BR></FONT><BR></DIV>
<DIV></DIV><BR><BR>
<DIV class=gmail_quote>On Fri, Sep 21, 2012 at 4:28 PM, Timothy Krantz <SPAN
dir=ltr><<A href="mailto:tkrantz@stahurabrenner.com"
target=_blank>tkrantz@stahurabrenner.com</A>></SPAN> wrote:<BR>
<BLOCKQUOTE
style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex"
class=gmail_quote><U></U>
<DIV>
<DIV dir=ltr align=left><FONT color=#0000ff
face=Arial></FONT> </DIV><BR>
<BLOCKQUOTE
style="BORDER-LEFT: #0000ff 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px"
dir=ltr>
<DIV dir=ltr lang=en-us align=left>
<HR>
<FONT face=Tahoma>
<DIV class=im><B>From:</B> <A
href="mailto:mythtv-users-bounces@mythtv.org"
target=_blank>mythtv-users-bounces@mythtv.org</A> [mailto:<A
href="mailto:mythtv-users-bounces@mythtv.org"
target=_blank>mythtv-users-bounces@mythtv.org</A>] <B>On Behalf Of
</B>Daniel Frey<BR></DIV><B>Sent:</B> Friday, September 21, 2012 1:39 PM
<DIV>
<DIV class=h5><BR><B>To:</B> Discussion about MythTV<BR><B>Subject:</B>
Re: [mythtv-users] MythTV for Android null Pointer
Exception<BR></DIV></DIV></FONT><BR></DIV>
<DIV>
<DIV class=h5>
<DIV></DIV><BR><BR>
<DIV class=gmail_quote>On Wed, Sep 19, 2012 at 1:19 PM, Timothy Krantz
<SPAN dir=ltr><<A href="mailto:tkrantz@stahurabrenner.com"
target=_blank>tkrantz@stahurabrenner.com</A>></SPAN> wrote:<BR>
<BLOCKQUOTE
style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex"
class=gmail_quote><U></U>
<DIV>
<DIV dir=ltr align=left><FONT color=#0000ff
face=Arial></FONT> </DIV><BR>
<BLOCKQUOTE
style="BORDER-LEFT: #0000ff 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px"
dir=ltr>
<DIV dir=ltr lang=en-us align=left>
<HR>
<FONT face=Tahoma>
<DIV><B>From:</B> <A href="mailto:mythtv-users-bounces@mythtv.org"
target=_blank>mythtv-users-bounces@mythtv.org</A> [mailto:<A
href="mailto:mythtv-users-bounces@mythtv.org"
target=_blank>mythtv-users-bounces@mythtv.org</A>] <B>On Behalf Of
</B>Daniel Frey<BR></DIV><B>Sent:</B> Wednesday, September 19, 2012
8:00 AM
<DIV>
<DIV><BR><B>To:</B> Discussion about MythTV<BR><B>Subject:</B> Re:
[mythtv-users] MythTV for Android null Pointer
Exception<BR></DIV></DIV></FONT><BR></DIV>
<DIV>
<DIV>
<DIV></DIV>
<P><BR>On Sep 18, 2012 5:10 PM, "Timothy Krantz" <<A
href="mailto:tkrantz@stahurabrenner.com"
target=_blank>tkrantz@stahurabrenner.com</A>>
wrote:<BR>><BR>> <BR>><BR>>>
________________________________<BR>>> From: <A
href="mailto:mythtv-users-bounces@mythtv.org"
target=_blank>mythtv-users-bounces@mythtv.org</A> [mailto:<A
href="mailto:mythtv-users-bounces@mythtv.org"
target=_blank>mythtv-users-bounces@mythtv.org</A>] On Behalf Of Daniel
Frey<BR>>> Sent: Tuesday, September 18, 2012 4:47
PM<BR>>><BR>>> To: Discussion about MythTV<BR>>>
Subject: Re: [mythtv-users] MythTV for Android null Pointer
Exception<BR>>><BR>>><BR>>> On Sep 18, 2012 3:09 PM,
"Timothy Krantz" <<A href="mailto:tkrantz@stahurabrenner.com"
target=_blank>tkrantz@stahurabrenner.com</A>> wrote:<BR>>>
><BR>>> > <BR>>> ><BR>>> >>
________________________________<BR>>> >> From: <A
href="mailto:mythtv-users-bounces@mythtv.org"
target=_blank>mythtv-users-bounces@mythtv.org</A> [mailto:<A
href="mailto:mythtv-users-bounces@mythtv.org"
target=_blank>mythtv-users-bounces@mythtv.org</A>] On Behalf Of Daniel
Frey<BR>>> >> Sent: Tuesday, September 18, 2012 2:53
PM<BR>>> >><BR>>> >> To: Discussion about
MythTV<BR>>> >> Subject: Re: [mythtv-users] MythTV for
Android null Pointer Exception<BR>>> >><BR>>>
>><BR>>> >> On Sep 18, 2012 2:50 PM, "Daniel Frey"
<<A href="mailto:dmfrey@gmail.com"
target=_blank>dmfrey@gmail.com</A>> wrote:<BR>>> >>
><BR>>> >> ><BR>>> >> > On Sep 18,
2012 2:39 PM, "Timothy Krantz" <<A
href="mailto:tkrantz@stahurabrenner.com"
target=_blank>tkrantz@stahurabrenner.com</A>> wrote:<BR>>>
>> > ><BR>>> >> > > <BR>>>
>> > ><BR>>> >> > >>
________________________________<BR>>> >> > >>
From: <A href="mailto:mythtv-users-bounces@mythtv.org"
target=_blank>mythtv-users-bounces@mythtv.org</A> [mailto:<A
href="mailto:mythtv-users-bounces@mythtv.org"
target=_blank>mythtv-users-bounces@mythtv.org</A>] On Behalf Of Daniel
Frey<BR>>> >> > >> Sent: Tuesday, September 18,
2012 2:23 PM<BR>>> >> > >> To: Discussion about
MythTV<BR>>> >> > >> Subject: Re: [mythtv-users]
MythTV for Android null Pointer Exception<BR>>> >> >
>><BR>>> >> > >><BR>>> >> >
>> On Sep 18, 2012 2:01 PM, "Timothy Krantz" <<A
href="mailto:tkrantz@stahurabrenner.com"
target=_blank>tkrantz@stahurabrenner.com</A>> wrote:<BR>>>
>> > >> ><BR>>> >> > >> >
For the last couple of days when running the latest git code I am
getting a<BR>>> >> > >> > null pointer
exception when selecting a Program title from the list of<BR>>>
>> > >> > program titles.<BR>>> >> >
>> ><BR>>> >> > >> > In particular it
is on line 92 of ProgramGroupFragment. Whe it tries
to<BR>>> >> > >> > dereference cache, cache is
null.<BR>>> >> > >> ><BR>>> >>
> >> > I have tried uninstalling and reinstalling,
removing all the local data from<BR>>> >> > >>
> the device etc but am still having a problem.<BR>>>
>> > >> ><BR>>> >> > >> >
Anything I can do to help diagnose?<BR>>> >> > >>
><BR>>> >> > >> > Tim<BR>>> >>
> >> ><BR>>> >> > >> ><BR>>>
>> > >> >
_______________________________________________<BR>>> >>
> >> > mythtv-users mailing list<BR>>> >> >
>> > <A href="mailto:mythtv-users@mythtv.org"
target=_blank>mythtv-users@mythtv.org</A><BR>>> >> >
>> > <A
href="http://www.mythtv.org/mailman/listinfo/mythtv-users"
target=_blank>http://www.mythtv.org/mailman/listinfo/mythtv-users</A><BR>>>
>> > >><BR>>> >> > >>
Tim,<BR>>> >> > >><BR>>> >> >
>> Try and pull again. Made some changes this
morning.<BR>>> >> > >><BR>>> >> >
>> That one sounds familiar. Might be what I fixed this
morning. <BR>>> >> > >><BR>>>
>> > >> <BR>>> >> >
>><BR>>> >> > >> Did a fresh pull,
uninstall/re install etc. Same issue.<BR>>> >> >
>><BR>>> >> > >> <BR>>>
>> > >><BR>>> >> > >>
Tim <BR>>> >> > ><BR>>> >> >
><BR>>> >> > >
_______________________________________________<BR>>> >>
> > mythtv-users mailing list<BR>>> >> > > <A
href="mailto:mythtv-users@mythtv.org"
target=_blank>mythtv-users@mythtv.org</A><BR>>> >> >
> <A href="http://www.mythtv.org/mailman/listinfo/mythtv-users"
target=_blank>http://www.mythtv.org/mailman/listinfo/mythtv-users</A><BR>>>
>> > ><BR>>> >> ><BR>>> >> >
Can you send me the java stacktrace from the location
window?<BR>>> >><BR>>> >> Also, what
phone/tablet? Version of android? <BR>>>
>><BR>>> >> <BR>>> >><BR>>>
>> <BR>>> >><BR>>> >> Thread
[<1> main] (Suspended (exception
NullPointerException)) <BR>>> >>
ProgramGroupFragment.loadPrograms(String) line:
92 <BR>>> >>
RecordingsActivity.onProgramGroupSelected(String) line:
73 <BR>>> >>
RecordingsFragment.onListItemClick(ListView, View, int, long)
line: 245 <BR>>> >>
ListFragment$2.onItemClick(AdapterView, View, int, long) line:
58 <BR>>> >>
ListView(AdapterView).performItemClick(View, int, long) line:
292 <BR>>> >>
ListView(AbsListView).performItemClick(View, int, long) line:
1185 <BR>>> >> AbsListView$PerformClick.run()
line: 2715 <BR>>> >> AbsListView$1.run() line:
3476 <BR>>> >>
ViewRootImpl(Handler).handleCallback(Message) line:
605 <BR>>> >>
ViewRootImpl(Handler).dispatchMessage(Message) line:
92 <BR>>> >> Looper.loop() line:
137 <BR>>> >> ActivityThread.main(String[])
line: 4512 <BR>>> >>
Method.invokeNative(Object, Object[], Class, Class[], Class,
int, boolean) line: not available [native method] <BR>>>
>> Method.invoke(Object, Object...) line:
511 <BR>>> >>
ZygoteInit$MethodAndArgsCaller.run() line: 978 <BR>>>
>> ZygoteInit.main(String[]) line: 745 <BR>>>
>> NativeStart.main(String[]) line: not available [native
method] <BR>>> >><BR>>> >> 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.<BR>>>
>><BR>>> >> <BR>>> >><BR>>>
>> The stacktrace above is from the failure on the
Tablet.<BR>>> >><BR>>> >> <BR>>>
>><BR>>> >> Tim <BR>>> ><BR>>>
><BR>>> >
_______________________________________________<BR>>> >
mythtv-users mailing list<BR>>> > <A
href="mailto:mythtv-users@mythtv.org"
target=_blank>mythtv-users@mythtv.org</A><BR>>> > <A
href="http://www.mythtv.org/mailman/listinfo/mythtv-users"
target=_blank>http://www.mythtv.org/mailman/listinfo/mythtv-users</A><BR>>>
><BR>>><BR>>> Does the tab have an sd card mounted in
it? We are storing all resources downloaded from the backend in
cache in external storage. <BR>>><BR>>>
<BR>>><BR>>> It does. <BR>><BR>><BR>>
_______________________________________________<BR>> mythtv-users
mailing list<BR>> <A href="mailto:mythtv-users@mythtv.org"
target=_blank>mythtv-users@mythtv.org</A><BR>> <A
href="http://www.mythtv.org/mailman/listinfo/mythtv-users"
target=_blank>http://www.mythtv.org/mailman/listinfo/mythtv-users</A><BR>></P>
<P>Strange. Some of the guys have it running on the nexus 7 with no
issue. </P>
<P>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. </P>
<P>Is there anything else about the specs of that tablet that could be
relevant here? </P>
<P>Thanks, <BR>Dan<SPAN><FONT color=#0000ff
face=Arial> </FONT></SPAN></P></DIV></DIV><SPAN>
<P><SPAN><FONT color=#0000ff face=Arial>I have been running this on
the tablet for quite a while not. Just quit working the last
few days.</FONT></SPAN></P>
<P><SPAN></SPAN> </P>
<P><SPAN><FONT color=#0000ff face=Arial>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.</FONT></SPAN></P>
<P><SPAN></SPAN> </P>
<P><SPAN><FONT color=#0000ff face=Arial>I think you will see that
from the last <SPAN>few</SPAN> lines of the attached logcat
capture.</FONT></SPAN></P>
<P><SPAN></SPAN> </P>
<P><SPAN><FONT color=#0000ff face=Arial>Tim</FONT> </SPAN></P>
<P><FONT color=#0000ff face=Arial>09-19 13:05:03.210:
V/BannerLruMemoryCache(22914): create : enter<BR>09-19 13:05:03.210:
V/BannerLruMemoryCache(22914): create : exit<BR>09-19 13:05:03.210:
V/RecordingsFragment(22914): getView : banner not found in adapter
cache<BR>09-19 13:05:03.210: V/RecordingsFragment(22914):
ProgramGroupRowAdapter.getView : exit<BR>09-19 13:05:03.220:
V/RecordingsFragment(22914): ProgramGroupRowAdapter.getView :
enter<BR>09-19 13:05:03.230: V/BannerLruMemoryCache(22914): create :
enter<BR>09-19 13:05:03.230: V/BannerLruMemoryCache(22914): create :
exit<BR>09-19 13:05:03.230: V/RecordingsFragment(22914): getView :
banner not found in adapter cache<BR>09-19 13:05:03.230:
V/RecordingsFragment(22914): ProgramGroupRowAdapter.getView :
exit<BR>09-19 13:05:03.240: V/RecordingsFragment(22914):
ProgramGroupRowAdapter.getView : enter<BR>09-19 13:05:03.250:
V/BannerLruMemoryCache(22914): create : enter<BR>09-19 13:05:03.250:
V/BannerLruMemoryCache(22914): create : exit<BR>09-19 13:05:03.250:
V/RecordingsFragment(22914): getView : banner not found in adapter
cache<BR>09-19 13:05:03.250: V/RecordingsFragment(22914):
ProgramGroupRowAdapter.getView : exit<BR>09-19 13:05:03.260:
D/OpenGLRenderer(22914): Flushing caches (mode 0)<BR>09-19
13:05:03.280: V/RecordingsFragment(22914):
ProgramGroupRowAdapter.getView : enter<BR>09-19 13:05:03.300:
V/BannerLruMemoryCache(22914): create : enter<BR>09-19 13:05:03.310:
V/BannerLruMemoryCache(22914): create : exit<BR>09-19 13:05:03.310:
V/RecordingsFragment(22914): getView : banner not found in adapter
cache<BR>09-19 13:05:03.310: V/RecordingsFragment(22914):
ProgramGroupRowAdapter.getView : exit<BR>09-19 13:05:03.650:
V/AbstractLocationAwareFragmentActivity(22914): onStop :
enter<BR>09-19 13:05:03.650:
V/AbstractLocationAwareFragmentActivity(22914): onStop : exit<BR>09-19
13:05:07.060: V/RecordingsFragment(22914): onListItemClick :
enter<BR>09-19 13:05:07.060: V/RecordingsFragment(22914):
onListItemClick : position=6, id=6, <A
href="mailto:tag=org.mythtv.client.ui.dvr.RecordingsFragment$ViewHolder@417521c8"
target=_blank>tag=org.mythtv.client.ui.dvr.RecordingsFragment$ViewHolder@417521c8</A><BR>09-19
13:05:07.060: D/RecordingsActivity(22914): onProgramGroupSelected :
enter<BR>09-19 13:05:07.060: V/RecordingsActivity(22914):
onProgramGroupSelected : adding program group to pane<BR>09-19
13:05:07.060: V/RecordingsActivity(22914): onProgramGroupSelected :
creating new programGroupFragment<BR>09-19 13:05:07.120:
V/RecordingsActivity(22914): onProgramGroupSelected : setting program
group to display<BR>09-19 13:05:07.120: I/ProgramGroupFragment(22914):
loadPrograms :
enter</FONT> </P></SPAN></BLOCKQUOTE></DIV><BR>_______________________________________________<BR>mythtv-users
mailing list<BR><A href="mailto:mythtv-users@mythtv.org"
target=_blank>mythtv-users@mythtv.org</A><BR><A
href="http://www.mythtv.org/mailman/listinfo/mythtv-users"
target=_blank>http://www.mythtv.org/mailman/listinfo/mythtv-users</A><BR><BR></BLOCKQUOTE></DIV><BR>Tim,
<DIV><BR>Can you try it again with the latest code?</DIV>
<DIV><BR></DIV>
<DIV>Thanks,<BR>Dan<BR clear=all><SPAN><FONT color=#0000ff
face=Arial> </FONT></SPAN></DIV></DIV></DIV>
<DIV><SPAN><FONT color=#0000ff face=Arial>Dan, yes same behaviour.
But then I kinka expected that when my git pull retrieved no new
updates.</FONT></SPAN></DIV>
<DIV><SPAN></SPAN> </DIV>
<DIV><SPAN><FONT color=#0000ff face=Arial>It is clear that somehow I am
getting a fragment instantiated but not associated with an activity.
I can not fathom how that is happening.</FONT></SPAN></DIV>
<DIV><SPAN></SPAN> </DIV>
<DIV><SPAN><FONT color=#0000ff face=Arial>I am getting to the cache.get
call and have not gone through the onCreate whoiich would have initialized
the variable cache.</FONT></SPAN></DIV>
<DIV><SPAN><FONT color=#0000ff face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN><FONT color=#0000ff face=Arial>If I add code to try to
initialize it in loadPrograms before line 92, I crash
somewhere else after a getActivity call returns null and the result is
used.</FONT></SPAN></DIV>
<DIV><SPAN><FONT color=#0000ff face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN><FONT color=#0000ff
face=Arial>Tim</FONT> </SPAN></DIV></BLOCKQUOTE></DIV><BR>_______________________________________________<BR>mythtv-users
mailing list<BR><A
href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</A><BR><A
href="http://www.mythtv.org/mailman/listinfo/mythtv-users"
target=_blank>http://www.mythtv.org/mailman/listinfo/mythtv-users</A><BR><BR></BLOCKQUOTE></DIV><BR>Tim,
<DIV><BR></DIV>
<DIV>Try it again now. I think i figured out what was going on.
You were on your tablet, correct? In landscape or portrait
mode?</DIV>
<DIV><BR></DIV>
<DIV>There are different views for tablets in its different orientations.
I shouldn't have been loading the cache in the fragment, but the
activity that calls it and passing it into the fragment. Try this change
out. Let me know how it goes. I will try it out on my wife's tablet
tonight to see how it works.</DIV>
<DIV><BR></DIV>
<DIV>Dan<BR>
<DIV><BR></DIV>
<DIV>-- <BR><SPAN class=798434217-22092012><FONT color=#0000ff size=2
face=Arial> </FONT></SPAN></DIV>
<DIV><SPAN class=798434217-22092012><FONT color=#0000ff size=2
face=Arial>Works like a champ.</FONT></SPAN></DIV>
<DIV><SPAN class=798434217-22092012></SPAN> </DIV>
<DIV><SPAN class=798434217-22092012><FONT color=#0000ff size=2 face=Arial>Yes
I was on a tablet in landscape mode.</FONT></SPAN></DIV>
<DIV><SPAN class=798434217-22092012></SPAN> </DIV>
<DIV><SPAN class=798434217-22092012><FONT color=#0000ff size=2
face=Arial>Thanks! (sorry for being a
pest)</FONT> </SPAN><BR></DIV></DIV></BLOCKQUOTE></BODY></HTML>