Toybrick

标题: I have an error 'E NPUTransfer: Alloc buffer failed!, size = 302187520' [打印本页]

作者: hihi    时间: 2020-2-24 15:07
标题: I have an error 'E NPUTransfer: Alloc buffer failed!, size = 302187520'
本帖最后由 hihi 于 2020-2-24 15:25 编辑

hello,

I convert FCN algorithm to rknn file.
And i run this file in rock chip 1808.
but i meet this error:

librga:RGA_GET_VERSION:4.00,4.000000
ctx=0x559485fc20,ctx->rgaFd=3
Rga built version:version:+2017-09-28 10:12:42
E NPUTransfer: Alloc buffer failed!, size = 302187520
290022 MsgThread recvTask(42): transfer may error, restart server!
E RKNNAPI: rknn_init,  recv(MsgLoadAck) fail, -9 != 368!
Failed to initialize rknn
Error code: -3
rknn_init _finish
camera_init _finish
[/home/yurim/workspace/rex-examples/CAMERA/V4L2_exam/src/drm_module.cc:241:drm_init()] TODO : Change
ignoring unused connector 61
exit
drm_init _finish
rga_init _finish
main main pthread start
Segmentation fault

-----------------------------------------------------------------------------------------------------------------

I wonder why I get this error. Is it because of big file size? rknn file size is 302MB.
rknn version is 1.3.0, and i used tensorflow.


plz help me.


Thank you.



作者: jefferyzhang    时间: 2020-2-24 17:32
1808 have only 2Gb DDR, your input images or weigts is more then 2Gb...
作者: hihi    时间: 2020-2-25 09:09
本帖最后由 hihi 于 2020-2-25 09:11 编辑
jefferyzhang 发表于 2020-2-24 17:32
1808 have only 2Gb DDR, your input images or weigts is more then 2Gb...

but I think it don't over than 2GB. Beacuse rknn file is 302MB, and input img is never over 10MB. Could you tell me where point more than 2GB?
I covert this model (https://github.com/shekkizh/FCN.tensorflow) to rknn, but i used another input img when this model training.

作者: jefferyzhang    时间: 2020-2-25 09:18
In your log :   E NPUTransfer: Alloc buffer failed!, size = 302187520
Looks seem something alloc a very big memory.

And I have reported your issues and code to NPU team. Wait for their reply.
作者: hihi    时间: 2020-2-25 09:27
jefferyzhang 发表于 2020-2-25 09:18
In your log :   E NPUTransfer: Alloc buffer failed!, size = 302187520
Looks seem something alloc a v ...

ok. i will wait thier reply. rellay thaaaaank you.
作者: jefferyzhang    时间: 2020-2-28 16:39
Sorry, it is my negligence.
Your device is 1808? Please check the free memory in 1808 first.
If your device is compute stick, the memory only 1G which need to keep your 302MB rknn file, and maybe 302MB weights.
There is  just no memory.




欢迎光临 Toybrick (https://t.rock-chips.com/) Powered by Discuz! X3.3