Open GoogleCodeExporter opened 9 years ago
Code path of loop (not sure where it initially gets into this, but it gets
stuck inside)
AdWhirlLayout.handleAd: line 163, calls the adapter's handleAd
CustomAdapter.handleAd:line 53, schedules a FetchCustomRunnable to run
immediately
CustomAdapter.FetchCustomRunnable.run: line 154, because there is no network,
adWhirlLayout.custom is set to null, and adWhirlLayout.rotateThreadedNow() is
called
AdWhirlLayout.rotateThreadedNow: line 174, schedules RotateAdRunnable to run
immediately
AdWhirlLayout.RotateAdRunnable.run: line 347, calls rotateAd
AdWhirlLayout.rotateAd: line 147, posts a new HandleAdRunnable to run
AdWhileLayout.HandleAdRunnable.run: line 316, calls handleAd
Theres never an end condition to stop this loop from running if there is no
network access
Original comment by ob.l...@gmail.com
on 23 Nov 2010 at 9:02
Changing line 154 of CustomAdapter from
adWhirlLayout.rotateThreadedNow();
to
adWhirlLayout.rotateThreadedDelayed();
slows down this error to once every 30 seconds, which seems like an exceptable
retry time for network failures
Original comment by ob.l...@gmail.com
on 23 Nov 2010 at 9:27
I removed the call to adWhirlLayout.rotateThreadedNow on line 154 of
CustomAdapter (thanks for referencing that btw). It looks like other Adapters
just give up if they can't fetch the layout. I am not sure if this is the best
way to handle this, but it works for me because I am manually fetching ads.
if(adWhirlLayout.custom == null) {
//adWhirlLayout.rotateThreadedNow();
return;
}
Original comment by jaso...@gmail.com
on 29 Nov 2010 at 7:32
Issue 141 has been merged into this issue.
Original comment by jpin...@google.com
on 30 Nov 2010 at 9:47
Original comment by jpin...@google.com
on 30 Nov 2010 at 9:49
Original issue reported on code.google.com by
ob.l...@gmail.com
on 23 Nov 2010 at 8:47