ncnn icon indicating copy to clipboard operation
ncnn copied to clipboard

遇到了一个错误,但是能正常输出分类结果

Open MJCC-wht opened this issue 3 years ago • 5 comments

输出完分类结果后会显示一句话"FATAL ERROR: pool allocator destroyed too early",请问是什么原因

MJCC-wht avatar Mar 20 '21 03:03 MJCC-wht

同问,我做的是分割,也报错 FATAL ERROR: pool allocator destroyed too early,但是不影响最终输出,不知道原因出在哪里

Ri-Yue-Shui-Hua avatar Jun 05 '21 02:06 Ri-Yue-Shui-Hua

同问,我做的是分割,也报错 FATAL ERROR: pool allocator destroyed too early,但是不影响最终输出,不知道原因出在哪里

我后来解决了,但时间有点久我有点忘了,好像是output的定义需要放在前面,还是什么其他东西的顺序需要正确

MJCC-wht avatar Jun 05 '21 02:06 MJCC-wht

我碰到的问题是LSTM后面叠加FullConnect层,最后的FullConnect要手动展开,否则也会报该错误。

yangxjzwd1 avatar Feb 07 '22 08:02 yangxjzwd1

FATAL ERROR: pool allocator destroyed too early 这个已经在最新版本里修好了

nihui avatar Feb 07 '22 10:02 nihui

FATAL ERROR: pool allocator destroyed too early 这个已经在最新版本里修好了

hi,我下的是最新版本,在测试yolov5l->torchscript->pnnx->ncnn也碰到了这个问题,5s的模型我测试通过了,但5l会报错,我只修改了yolov5_pnnx.cpp中的非法读取名字报错,其他没有改动。 0x指针 still in use

sungh66 avatar Aug 15 '22 10:08 sungh66

我的解决办法是在析构函数里调用ncnn::UnlockedPoolAllocator 和 ncnn::PoolAllocator的clear()

wwdok avatar Sep 27 '22 14:09 wwdok

FATAL ERROR: pool allocator destroyed too early 这个已经在最新版本里修好了

您好,使用最新的20220729的版本,出现错误:FATAL ERROR! pool allocator destroyed too early 0000000000000000 still in use,卷积层。出现这个错误。用了各种手段重新转换模型也是同样的错误。另外原模型tf2的H5用tensorflow可以正常推理。 Convolution conv 1 1 conv_input conv_out 0=16 1=5 11=5 2=1 12=1 3=1 13=1 5=1 6=1200

Ayers-github avatar Oct 14 '22 03:10 Ayers-github