Toybrick

I have an error 'E NPUTransfer: Alloc buffer failed!, size = 302187520'

hihi

新手上路

积分
22
楼主
发表于 2020-2-24 15:07:39    查看: 8047|回复: 5 | [复制链接]    打印 | 只看该作者
本帖最后由 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

版主

积分
13580
沙发
发表于 2020-2-24 17:32:53 | 只看该作者
1808 have only 2Gb DDR, your input images or weigts is more then 2Gb...
回复

使用道具 举报

hihi

新手上路

积分
22
板凳
 楼主| 发表于 2020-2-25 09:09:11 | 只看该作者
本帖最后由 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

版主

积分
13580
地板
发表于 2020-2-25 09:18:45 | 只看该作者
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

新手上路

积分
22
5#
 楼主| 发表于 2020-2-25 09:27:55 | 只看该作者
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

版主

积分
13580
6#
发表于 2020-2-28 16:39:48 | 只看该作者
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.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

产品中心 购买渠道 开源社区 Wiki教程 资料下载 关于Toybrick


快速回复 返回顶部 返回列表