google-coral / libedgetpu

Source code for the userspace level runtime driver for Coral.ai devices.
Apache License 2.0
179 stars 60 forks source link

some weird malloc error when calling GetSingleton()->OpenDevice() #33

Closed anuragkarwa001 closed 2 years ago

anuragkarwa001 commented 2 years ago

Description

I have created a sample program and was trying detection with a single edge tpu and it was working fine. But when I added some code that basically parses the model name and labels file from a config file the function call gives a malloc error. But as far as I can see I have not passes anything to this function as argument and also I have checked that the model is present on the location provided .

edgeTpuContext = edgetpu::EdgeTpuManager::GetSingleton()->OpenDevice(); the function call above give the error malloc.c:4036: _int_malloc: Assertion `(unsigned long) (size) >= (unsigned long) (nb)' failed.

Click to expand! ### Issue Type Bug ### Operating System Ubuntu ### Coral Device Mini PCIe ### Other Devices _No response_ ### Programming Language C++ ### Relevant Log Output ```shell malloc.c:4036: _int_malloc: Assertion `(unsigned long) (size) >= (unsigned long) (nb)' failed. ```
hjonnala commented 2 years ago

@anuragkarwa001 can you try to pass the parameters as input arguments to the script.

hjonnala commented 2 years ago

closing due to inactivity. Feel free to reopen if you are still having the issue. Thanks!

google-coral-bot[bot] commented 2 years ago

Are you satisfied with the resolution of your issue? Yes No