Quantcast
Channel: Syncthing Community Forum - Latest topics
Viewing all articles
Browse latest Browse all 6191

Crash with 'out of memory' on the very start

$
0
0

now that official ARM build v1.8 is finally launching on my Asus RT-AC868U, I can’t still make it work as the executable is immediately crashing with out of memory runtime panic.

The dirs are newly created and config is default.

The weird thing is that at the moment of start I don’t see any memory utilization with htop. Plus, I have ~120M free which seems rather enough for newly installed instance, according to https://data.syncthing.net/

After some googling, I tried to set weakHashThresholdPct to 101, though not fully understanding what does that mean :crazy_face:

And, I can’t even profile it during startup:

[monitor] 05:36:26 WARNING: 4 restarts in 6.323566329s; not retrying further

I’m guessing it tries to allocate some physical memory, but what is the amount and how to configure it?

In case if this means something:

[start] 05:36:25 INFO: syncthing v1.8.0 “Fermium Flea” (go1.14.7 linux-arm) teamcity@build.syncthing.net 2020-08-07 06:09:12 UTC … Panic at 2020-08-28T05:36:25Z fatal error: runtime: out of memory

runtime stack: runtime.throw(0xa41f69, 0x16) /usr/local/go/src/runtime/panic.go:1116 +0x5c runtime.sysMap(0x3000000, 0x1000000, 0x13cdb78) /usr/local/go/src/runtime/mem_linux.go:169 +0xa8 runtime.(*linearAlloc).alloc(0x13bbf98, 0x1000000, 0x400000, 0x13cdb78, 0x0) /usr/local/go/src/runtime/malloc.go:1401 +0x94 runtime.(*mheap).sysAlloc(0x13bbc68, 0x1000000, 0x77888, 0x1847edc) /usr/local/go/src/runtime/malloc.go:621 +0x54 runtime.(*mheap).grow(0x13bbc68, 0x800, 0x0) /usr/local/go/src/runtime/mheap.go:1286 +0x134 runtime.(*mheap).allocSpan(0x13bbc68, 0x800, 0x100, 0x13cdb88, 0x1c0f4) /usr/local/go/src/runtime/mheap.go:1124 +0x650 runtime.(*mheap).alloc.func1() /usr/local/go/src/runtime/mheap.go:871 +0x50 runtime.(*mheap).alloc(0x13bbc68, 0x800, 0x101, 0x401f2fff) /usr/local/go/src/runtime/mheap.go:865 +0x58 runtime.largeAlloc(0x1000000, 0x940101, 0x4007cac8) /usr/local/go/src/runtime/malloc.go:1152 +0x6c runtime.mallocgc.func1() /usr/local/go/src/runtime/malloc.go:1047 +0x38 runtime.systemstack(0x183c3c0) /usr/local/go/src/runtime/asm_arm.s:347 +0x84 runtime.mstart() /usr/local/go/src/runtime/proc.go:1041

9 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 6191

Trending Articles