Jeremy Green

Results 32 comments of Jeremy Green

I'm seeing the same error: ``` SQLiteQuery: exception: Row too big to fit into CursorWindow requiredPos=0, totalRows=1 ``` ...but it only started happening after upgrading the test device to android...

These links discuss this problem and suggest some solutions: https://stackoverflow.com/questions/51959944/sqliteblobtoobigexception-row-too-big-to-fit-into-cursorwindow-requiredpos-0-t https://medium.com/androiddevelopers/large-database-queries-on-android-cb043ae626e8

There's a warning before the error: ``` CursorWindow: Window is full: requested allocation 2402739 bytes, free space 2096651 bytes, window size 2097152 bytes ``` We've got BLOBs in each row,...

https://stackoverflow.com/questions/11340257/sqlite-android-database-cursor-window-allocation-of-2048-kb-failed/50725977#50725977 mentions the above sCursorWindowSize fix. It will affect all code using CursorWindows across the whole application, so could easily make your application use too much memory. It's changing the...

~~I also found this issue on upgrading cocoapods to 1.5.0.~~ Update: no I didn't, I saw a very similar error (i.e. RCTBridgeModule.h not RCTBridge.h): ``` node_modules/react-native-background-timer/ios/RNBackgroundTimer.h:9:9: fatal error: 'React/RCTBridgeModule.h' file...

The React dependency in the podspec was removed in 2.0.1 in this PR: https://github.com/ocetnik/react-native-background-timer/issues/71

https://github.com/ocetnik/react-native-background-timer/issues/71#issuecomment-387458627 has a suggestion for this (RCTBridge.h) issue.

I've not investigated this as deeply as I could yet, since a quick investigation has brought up some questions about the purpose of /tmp/metro-cache/... The cache is under /tmp, so...

Other tools typically cache these things in e.g. ~/.metro/ not /tmp. That's presumably since /tmp is typically cleaned up on reboot and/or daily: https://askubuntu.com/questions/20783/how-is-the-tmp-directory-cleaned-up https://superuser.com/questions/187071/in-macos-how-often-is-tmp-deleted These OS scripts could delete...

These react-native scripts are using --reset-cache: https://github.com/facebook/react-native/blob/master/react.gradle https://github.com/facebook/react-native/blob/master/scripts/react-native-xcode.sh