Strange error at start of chapter


#1

At the beginning of this chapter, i had an issue i could not explain. My app would stop suddenly with the following stack

[quote]Thread [<1> main] (Class load: PhotoGalleryFragment$FetchItemsTask)

DexFile.defineClass(String, ClassLoader, int) line: not available [native method]
DexFile.loadClassBinaryName(String, ClassLoader) line: 211
DexPathList.findClass(String) line: 305
PathClassLoader(BaseDexClassLoader).findClass(String) line: 62
PathClassLoader(ClassLoader).loadClass(String, boolean) line: 501
PathClassLoader(ClassLoader).loadClass(String) line: 461
PhotoGalleryFragment.onCreate(Bundle) line: 29
PhotoGalleryFragment(Fragment).performCreate(Bundle) line: 1437
FragmentManagerImpl.moveToState(Fragment, int, int, int, boolean) line: 877
FragmentManagerImpl.moveToState(int, int, int, boolean) line: 1088
BackStackRecord.run() line: 682
FragmentManagerImpl.execPendingActions() line: 1444
PhotoGalleryActivity(FragmentActivity).onStart() line: 551
Instrumentation.callActivityOnStart(Activity) line: 1164
PhotoGalleryActivity(Activity).performStart() line: 5114
ActivityThread.performLaunchActivity(ActivityThread$ActivityClientRecord, Intent) line: 2153
ActivityThread.handleLaunchActivity(ActivityThread$ActivityClientRecord, Intent) line: 2230
ActivityThread.access$600(ActivityThread, ActivityThread$ActivityClientRecord, Intent) line: 141
ActivityThread$H.handleMessage(Message) line: 1234
ActivityThread$H(Handler).dispatchMessage(Message) line: 99
Looper.loop() line: 137
ActivityThread.main(String[]) line: 5041
Method.invokeNative(Object, Object[], Class, Class[], Class, int, boolean) line: not available [native method]
Method.invoke(Object, Object…) line: 511
ZygoteInit$MethodAndArgsCaller.run() line: 793
ZygoteInit.main(String[]) line: 560
NativeStart.main(String[]) line: not available [native method]
[/quote]

After some googling i found this stackoverflow.com/questions/8911 … -throwable

It was so confusing for a newbie, but the solution listed made it all go away. What was that about? I’m pretty sure i hadn’t set up any breakpoints.


#2

If you were running with “Debug” rather than “Run”, it might have picked up on an old breakpoint.