briskml/brisk

HN example: infinite scroll out of memory error

naartjie opened this issue · 5 comments

Steps to reproduce:

  • esy run the hacker-news example
  • scroll down & wait for more items to load
  • repeat until crash:
HackerNews(18909,0x10a73f5c0) malloc: can't allocate region
*** mach_vm_map(size=7093169413120000) failed (error code=3)
HackerNews(18909,0x10a73f5c0) malloc: *** set a breakpoint in malloc_error_break to debug
Fatal error: out of memory.

Also, see related #52 UI: List issue

@naartjie the first step when debugging this would be profiling this with the allocations instrument in Instruments.app

Thanks @wokalski. I'll try fiddling with it, and see if I am able to get more info.

It'd be interesting to see how it works with the new version of brisk-reconciler:
briskml/brisk-reconciler#33

@wokalski yup, was thinking the same. I'm keen to check it out. Hopefully this week sometime 🤞

@wokalski I did a quick check, and it's still crashing with the latest reconciler. I'll try again with the profiler.