Code Monkey home page Code Monkey logo

androidmakersapp-ios's People

Contributors

djavan-bertrand avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

enthuan

androidmakersapp-ios's Issues

Correctly handle free comments of OpenFeedback

When a comment is made on OpenFeedback, the app crashes while trying to parse the firebase document on a timestamp(even though we don't do anything with that timestamp).

Here is the crashlog:

2022-04-25 12:42:08.701459+0200 RobotConf[11555:1681810] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Invalid type in JSON write (FIRTimestamp)'
*** First throw call stack:
(
	0   CoreFoundation                      0x00007fff20406d44 __exceptionPreprocess + 242
	1   libobjc.A.dylib                     0x00007fff201a4a65 objc_exception_throw + 48
	2   Foundation                          0x00007fff208a9ca9 _writeJSONValue + 672
	3   Foundation                          0x00007fff208ae32e ___writeJSONObject_block_invoke + 350
	4   CoreFoundation                      0x00007fff2035e4e5 __NSDICTIONARY_IS_CALLING_OUT_TO_A_BLOCK__ + 7
	5   CoreFoundation                      0x00007fff20477c38 -[__NSDictionaryM enumerateKeysAndObjectsWithOptions:usingBlock:] + 255
	6   Foundation                          0x00007fff208ad8fb _writeJSONObject + 555
	7   Foundation                          0x00007fff208ae32e ___writeJSONObject_block_invoke + 350
	8   CoreFoundation                      0x00007fff2035e4e5 __NSDICTIONARY_IS_CALLING_OUT_TO_A_BLOCK__ + 7
	9   CoreFoundation                      0x00007fff20477c38 -[__NSDictionaryM enumerateKeysAndObjectsWithOptions:usingBlock:] + 255
	10  Foundation                          0x00007fff208ad8fb _writeJSONObject + 555
	11  Foundation                          0x00007fff208ae32e ___writeJSONObject_block_invoke + 350
	12  libswiftCore.dylib                  0x00007fff30c0d631 $ss26_SwiftDeferredNSDictionaryC23enumerateKeysAndObjects7options5usingySi_ys9UnmanagedVyyXlG_AHSpys5UInt8VGtXBtFTf4dnn_n + 321
	13  libswiftCore.dylib                  0x00007fff309ee6c5 $ss26_SwiftDeferredNSDictionaryC23enumerateKeysAndObjects7options5usingySi_ys9UnmanagedVyyXlG_AHSpys5UInt8VGtXBtFTo + 37
	14  Foundation                          0x00007fff208ad8fb _writeJSONObject + 555
	15  Foundation                          0x00007fff208a99c8 -[_NSJSONWriter dataWithRootObject:options:] + 71
	16  Foundation                          0x00007fff208accf8 +[NSJSONSerialization dataWithJSONObject:options:error:] + 117
	17  RobotConf                           0x000000010d363cce $sSo19FIRDocumentSnapshotC9RobotConfE7decodedxyKSeRzlF + 590
	18  RobotConf                           0x000000010d3a2943 $s9RobotConf33FirestoreOpenFeedbackSynchronizerC20getSessionsFeedbacks33_F7755D276DB3F38946B9778CC3A0DEEELLyyFySo16FIRQuerySnapshotCSg_s5Error_pSgtcfU_ + 1683
	19  RobotConf                           0x000000010d35e025 $sSo16FIRQuerySnapshotCSgs5Error_pSgIeggg_ACSo7NSErrorCSgIeyByy_TR + 117
	20  RobotConf                           0x000000010e187278 _ZZ60-[FIRQuery addSnapshotListenerInternalWithOptions:listener:]ENK3$_0clEN8firebase9firestore4util8StatusOrINS1_4core12ViewSnapshotEEE + 616
	21  RobotConf                           0x000000010e186f92 _ZNSt3__1L8__invokeIRZ60-[FIRQuery addSnapshotListenerInternalWithOptions:listener:]E3$_0JN8firebase9firestore4util8StatusOrINS4_4core12ViewSnapshotEEEEEEDTclscT_fp_spscT0_fp0_EEOSA_DpOSB_ + 98
	22  RobotConf                           0x000000010e186f02 _ZNSt3__128__invoke_void_return_wrapperIvLb1EE6__callIJRZ60-[FIRQuery addSnapshotListenerInternalWithOptions:listener:]E3$_0N8firebase9firestore4util8StatusOrINS6_4core12ViewSnapshotEEEEEEvDpOT_ + 50
	23  RobotConf                           0x000000010e186ec2 _ZNSt3__110__function12__alloc_funcIZ60-[FIRQuery addSnapshotListenerInternalWithOptions:listener:]E3$_0NS_9allocatorIS2_EEFvN8firebase9firestore4util8StatusOrINS6_4core12ViewSnapshotEEEEEclEOSB_ + 50
	24  RobotConf                           0x000000010e185b81 _ZNSt3__110__function6__funcIZ60-[FIRQuery addSnapshotListenerInternalWithOptions:listener:]E3$_0NS_9allocatorIS2_EEFvN8firebase9firestore4util8StatusOrINS6_4core12ViewSnapshotEEEEEclEOSB_ + 49
	25  RobotConf                           0x000000010e182d0a _ZNKSt3__110__function12__value_funcIFvN8firebase9firestore4util8StatusOrINS3_4core12ViewSnapshotEEEEEclEOS8_ + 74
	26  RobotConf                           0x000000010e182c50 _ZNKSt3__18functionIFvN8firebase9firestore4util8StatusOrINS2_4core12ViewSnapshotEEEEEclES7_ + 48
	27  RobotConf                           0x000000010e1829f1 _ZZN8firebase9firestore4core13EventListenerINS1_12ViewSnapshotEE6CreateENSt3__18functionIFvNS0_4util8StatusOrIS3_EEEEEEN21CallbackEventListener7OnEventES9_ + 113
	28  RobotConf                           0x000000010e18bd46 _ZZN8firebase9firestore4core18AsyncEventListenerINS1_12ViewSnapshotEE7OnEventENS0_4util8StatusOrIS3_EEENKUlvE_clEv + 182
	29  RobotConf                           0x000000010e18bc75 _ZNSt3__1L8__invokeIRZN8firebase9firestore4core18AsyncEventListenerINS3_12ViewSnapshotEE7OnEventENS2_4util8StatusOrIS5_EEEUlvE_JEEEDTclscT_fp_spscT0_fp0_EEOSC_DpOSD_ + 21
	30  RobotConf                           0x000000010e18bc2d _ZNSt3__128__invoke_void_return_wrapperIvLb1EE6__callIJRZN8firebase9firestore4core18AsyncEventListenerINS5_12ViewSnapshotEE7OnEventENS4_4util8StatusOrIS7_EEEUlvE_EEEvDpOT_ + 29
	31  RobotConf                           0x000000010e18bbfd _ZNSt3__110__function12__alloc_funcIZN8firebase9firestore4core18AsyncEventListenerINS4_12ViewSnapshotEE7OnEventENS3_4util8StatusOrIS6_EEEUlvE_NS_9allocatorISB_EEFvvEEclEv + 29
	32  RobotConf                           0x000000010e18a8e9 _ZNSt3__110__function6__funcIZN8firebase9firestore4core18AsyncEventListenerINS4_12ViewSnapshotEE7OnEventENS3_4util8StatusOrIS6_EEEUlvE_NS_9allocatorISB_EEFvvEEclEv + 25
	33  RobotConf                           0x000000010d79abd2 _ZNKSt3__110__function12__value_funcIFvvEEclEv + 50
	34  RobotConf                           0x000000010d798445 _ZNKSt3__18functionIFvvEEclEv + 21
	35  RobotConf                           0x000000010e59dc3d _ZN8firebase9firestore4util4Task17ExecuteAndReleaseEv + 221
	36  RobotConf                           0x000000010e57537d _ZN8firebase9firestore4util19ExecutorLibdispatch11InvokeAsyncEPv + 29
	37  libdispatch.dylib                   0x0000000113c66a5b _dispatch_client_callout + 8
	38  libdispatch.dylib                   0x0000000113c75325 _dispatch_main_queue_drain + 1169
	39  libdispatch.dylib                   0x0000000113c74e86 _dispatch_main_queue_callback_4CF + 31
	40  CoreFoundation                      0x00007fff20373261 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
	41  CoreFoundation                      0x00007fff2036da56 __CFRunLoopRun + 2761
	42  CoreFoundation                      0x00007fff2036ca90 CFRunLoopRunSpecific + 562
	43  GraphicsServices                    0x00007fff2cb72c8e GSEventRunModal + 139
	44  UIKitCore                           0x00007fff2508e90e -[UIApplication _run] + 928
	45  UIKitCore                           0x00007fff25093569 UIApplicationMain + 101
	46  RobotConf                           0x000000010d353f5f main + 63
	47  dyld                                0x0000000113bdbf21 start_sim + 10
	48  ???                                 0x000000011ce5951e 0x0 + 4779775262
)
libc++abi: terminating with uncaught exception of type NSException
dyld4 config: DYLD_ROOT_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot DYLD_LIBRARY_PATH=/Users/djavanbertrand/Library/Developer/Xcode/DerivedData/RobotConf-fswrhypybdwhhvduelebipvrpacz/Build/Products/Debug-iphonesimulator:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/introspection DYLD_INSERT_LIBRARIES=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libBacktraceRecording.dylib:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libMainThreadChecker.dylib:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/Developer/Library/PrivateFrameworks/DTDDISupport.framework/libViewDebuggerSupport.dylib DYLD_FRAMEWORK_PATH=/Users/djavanbertrand/Library/Developer/Xcode/DerivedData/RobotConf-fswrhypybdwhhvduelebipvrpacz/Build/Products/Debug-iphonesimulator:/Users/djavanbertrand/Library/Developer/Xcode/DerivedData/RobotConf-fswrhypybdwhhvduelebipvrpacz/Build/Products/Debug-iphonesimulator/PackageFrameworks
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Invalid type in JSON write (FIRTimestamp)'
terminating with uncaught exception of type NSException
CoreSimulator 802.6 - Device: iPhone 13 mini (E11A79C8-E2BE-4D30-99E4-1625EF2F8B13) - Runtime: iOS 15.4 (19E240) - DeviceType: iPhone 13 mini

We need to properly handle the comments before next event, otherwise we will have to do the same as in 22: disable free comments in OpenFeedback.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.