brisk icon indicating copy to clipboard operation
brisk copied to clipboard

HN example: infinite scroll out of memory error

Open naartjie opened this issue 6 years ago • 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 avatar Apr 14 '19 10:04 naartjie

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

wokalski avatar Apr 14 '19 14:04 wokalski

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

naartjie avatar Apr 15 '19 14:04 naartjie

It'd be interesting to see how it works with the new version of brisk-reconciler: https://github.com/briskml/brisk-reconciler/pull/33

wokalski avatar May 07 '19 07:05 wokalski

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

naartjie avatar May 07 '19 09:05 naartjie

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

naartjie avatar May 07 '19 19:05 naartjie