react-native-native-listview icon indicating copy to clipboard operation
react-native-native-listview copied to clipboard

crash when i quit the page where the listview is.

Open MatthieuPeyrot opened this issue 8 years ago • 4 comments

hi

I'm using react-native-router-flux and your module listview. i have an issue when moving from the page where the listview is to another page. my application crash instantly.

*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'An instance 0x15d96eaa0 of class RNNativeListview was deallocated while key value observers were still registered with it. Current observation info: <NSKeyValueObservationInfo 0x15e0d5b10> ( <NSKeyValueObservance 0x15e661d00: Observer: 0x15d96eaa0, Key path: self.numRows, Options: <New: YES, Old: NO, Prior: NO> Context: 0x0, Property: 0x15e05e810> <NSKeyValueObservance 0x15e3e1c50: Observer: 0x15e661d00, Key path: numRows, Options: <New: YES, Old: NO, Prior: NO> Context: 0x0, Property: 0x15e3e2030> )' *** First throw call stack: (0x183a12db0 0x183077f80 0x183a12cf8 0x184366d80 0x183091ae8 0x1838f09fc 0x1839c6bc0 0x1838f0c50 0x1851d8088 0x188bda088 0x10009766c 0x18348e8b8) libc++abi.dylib: terminating with uncaught exception of type NSException

Do you have an idea where this come from ?

MatthieuPeyrot avatar Feb 21 '17 16:02 MatthieuPeyrot

@MatthieuPeyrot could you post a small example code that can replicate the case?

rborn avatar Feb 22 '17 08:02 rborn

you can try this repo that i creat that you can test https://github.com/MatthieuPeyrot/protolist

MatthieuPeyrot avatar Feb 22 '17 13:02 MatthieuPeyrot

@asciiman @MatthieuPeyrot seems to fix it https://github.com/asciiman/react-native-native-listview/pull/7

rborn avatar Feb 22 '17 13:02 rborn

it's fix the problem thx

MatthieuPeyrot avatar Feb 22 '17 14:02 MatthieuPeyrot