ddopson / EpicFramework

The all-powerfull Epic Framework
2 stars 2 forks source link

EpicIOImplementation #5

Closed EpicDraws closed 12 years ago

EpicDraws commented 12 years ago

Need to implement on iOS

Currently blocking persistence, and some other small things (e.g. if file doesn't exist, issue prompt for review).

EpicDraws commented 12 years ago

2012-01-09 00:44:40.993 WordFarm[42069:1c103] EpicFail: new EpicSerializationException: Attempt to read int[] results in an array with negative length. 2012-01-09 00:44:41.003 WordFarm[42069:1c103](0 WordFarm 0x002ce459 +[org_xmlvm_iphone_NSLog logStack] + 57 1 WordFarm 0x000a0476 +[com_epic_framework_implementation_EpicLogImplementation logStack] + 54 2 WordFarm 0x00067b86 +[com_epic_framework_common_util_EpicLog loglogStack] + 54 3 WordFarm 0x00067bc6 +[com_epic_framework_common_util_EpicLog logStack] + 54 4 WordFarm 0x0008eeac -[com_epic_framework_common_util_exceptions_EpicRuntimeException init_com_epic_framework_common_util_exceptions_EpicRuntimeException_java_lang_String_java_lang_String_java_lang_Throwable:::] + 1356 5 WordFarm 0x0008f450 -[com_epic_framework_common_util_exceptions_EpicSerializationException init_com_epic_framework_common_util_exceptions_EpicSerializationException___java_lang_String:] + 192 6 WordFarm 0x00052cf3 -[com_epic_framework_common_serialization_EpicInputStream readIntArray] + 419 7 WordFarm 0x00053ec0 -[com_epic_framework_common_serialization_EpicInputStream serializeIntArray_int_ARRAYTYPE:] + 144 8 WordFarm 0x0016e1d3 -[com_realcasualgames_words_PlayerState_1 serialize___com_epic_framework_common_serialization_EpicSerializationStream_com_epic_framework_common_serialization_EpicSerializableClass::] + 1267 9 WordFarm 0x00054339 -[com_epic_framework_common_serializationEpicInputStream serializeObjectcom_epic_framework_common_serialization_EpicSerializableClass_com_epic_framework_common_serialization_EpicSerializableClassType::] + 201 10 WordFarm 0x000576ab +[com_epic_framework_common_serialization_EpicSerializationHelper deserializeFromBytes_byte_ARRAYTYPE_com_epic_framework_common_serialization_EpicSerializableClassType::] + 651 11 WordFarm 0x0009ef9c +[com_epic_framework_implementation_EpicIOImplementation readFile_java_lang_String_com_epic_framework_common_serialization_EpicSerializableClassType::] + 220 12 WordFarm 0x00065ec2 +[com_epic_framework_common_utilEpicIO readFilejava_lang_String_com_epic_framework_common_serialization_EpicSerializableClassType::] + 290 13 WordFarm 0x0015f8e8 +[com_realcasualgames_words_PlayerState initializeState___java_lang_String:] + 3768 14 WordFarm 0x00161a66 +[com_realcasualgames_words_PlayerState getState] + 198 15 WordFarm 0x00162228 +[com_realcasualgames_words_PlayerState soundsEnabled] + 72 16 WordFarm 0x0006f0d4 +[com_epic_framework_common_utilEpicSoundManager playSoundcom_epic_framework_common_Ui_EpicSound:] + 100 17 WordFarm 0x00039142 +[com_epic_framework_common_Ui_EpicPlatform changeScreen_com_epic_framework_common_Ui_EpicScreen:] + 1634 18 WordFarm 0x001d17dd -[com_realcasualgames_words_ScreenLoading_1_1 run] + 205 19 WordFarm 0x000a2863 +[com_epic_framework_implementationEpicPlatformImplementationNative runOnUiThreadjava_lang_Runnable:]_block_invoke_1 + 51 20 libdispatch.dylib 0x0314d445 _dispatch_call_block_and_release + 15 21 libdispatch.dylib 0x0314f4f0 _dispatch_main_queue_callback_4CF + 327 22 CoreFoundation 0x023c7833 CFRunLoopRun + 2003 23 CoreFoundation 0x023c6db4 CFRunLoopRunSpecific + 212 24 CoreFoundation 0x023c6ccb CFRunLoopRunInMode + 123 25 GraphicsServices 0x035eb879 GSEventRunModal + 207 26 GraphicsServices 0x035eb93e GSEventRun + 114 27 UIKit 0x00ee6a9b UIApplicationMain + 1175 28 WordFarm 0x002cf5b9 +[org_xmlvm_iphoneUIApplication mainjava_lang_String_ARRAYTYPE_java_lang_Class_java_lang_Class:::] + 697 29 WordFarm 0x000c954a +[com_epic_framework_implementation_Main main_java_lang_String_ARRAYTYPE:] + 186 30 WordFarm 0x000c96f0 main + 320 31 WordFarm 0x00002735 start + 53) 2012-01-09 00:44:41.004 WordFarm[42069:1c103] error deserializing contents from 'word_farm_state_021' 2012-01-09 00:44:41.010 WordFarm[42069:1c103] EpicSerializationException: Attempt to read int[] results in an array with negative length. 2012-01-09 00:44:41.013 WordFarm[42069:1c103](0 WordFarm 0x002ce459 +[org_xmlvm_iphone_NSLog logStack] + 57 1 WordFarm 0x000a0476 +[com_epic_framework_implementation_EpicLogImplementation logStack] + 54 2 WordFarm 0x000a0095 +[com_epic_framework_implementation_EpicLogImplementation log___java_lang_String_java_lang_String_int_java_lang_Throwable::::] + 1509 3 WordFarm 0x00067ae2 +[com_epic_framework_common_utilEpicLog logjava_lang_String_java_lang_Throwable_int:::] + 210 4 WordFarm 0x000683fc +[com_epic_framework_common_util_EpicLog e_java_lang_String_java_lang_Throwable::] + 172 5 WordFarm 0x000663f5 +[com_epic_framework_common_utilEpicIO readFilejava_lang_String_com_epic_framework_common_serialization_EpicSerializableClassType::] + 1621 6 WordFarm 0x0015f8e8 +[com_realcasualgames_words_PlayerState initializeState_java_lang_String:] + 3768 7 WordFarm 0x00161a66 +[com_realcasualgames_words_PlayerState getState] + 198 8 WordFarm 0x00162228 +[com_realcasualgames_words_PlayerState soundsEnabled] + 72 9 WordFarm 0x0006f0d4 +[com_epic_framework_common_utilEpicSoundManager playSoundcom_epic_framework_common_Ui_EpicSound:] + 100 10 WordFarm 0x00039142 +[com_epic_framework_common_Ui_EpicPlatform changeScreen_com_epic_framework_common_Ui_EpicScreen:] + 1634 11 WordFarm 0x001d17dd -[com_realcasualgames_words_ScreenLoading_1_1 run] + 205 12 WordFarm 0x000a2863 +[com_epic_framework_implementationEpicPlatformImplementationNative runOnUiThreadjava_lang_Runnable:]_block_invoke_1 + 51 13 libdispatch.dylib 0x0314d445 _dispatch_call_block_and_release + 15 14 libdispatch.dylib 0x0314f4f0 _dispatch_main_queue_callback_4CF + 327 15 CoreFoundation 0x023c7833 CFRunLoopRun + 2003 16 CoreFoundation 0x023c6db4 CFRunLoopRunSpecific + 212 17 CoreFoundation 0x023c6ccb CFRunLoopRunInMode + 123 18 GraphicsServices 0x035eb879 GSEventRunModal + 207 19 GraphicsServices 0x035eb93e GSEventRun + 114 20 UIKit 0x00ee6a9b UIApplicationMain + 1175 21 WordFarm 0x002cf5b9 +[org_xmlvm_iphoneUIApplication mainjava_lang_String_ARRAYTYPE_java_lang_Class_java_lang_Class:::] + 697 22 WordFarm 0x000c954a +[com_epic_framework_implementation_Main main___java_lang_String_ARRAYTYPE:] + 186 23 WordFarm 0x000c96f0 main + 320 24 WordFarm 0x00002735 start + 53)

Repros on launch with new code.