# Mmal: Failed to create camera\_info component

**URL:** <https://forum.ubiquityrobotics.com/t/mmal-failed-to-create-camera-info-component/428>\
**Category:** Uncategorized\
**Created:** [December 19, 2019, 1:59pm UTC](https://forum.ubiquityrobotics.com/t/mmal-failed-to-create-camera-info-component/428 "2019-12-19T13:59:52Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![CatarinaPenacho](https://forum.ubiquityrobotics.com/letter_avatar_proxy/v4/letter/c/dbc845/32.png) [@CatarinaPenacho](https://forum.ubiquityrobotics.com/u/CatarinaPenacho)\
**Post date:** [December 19, 2019, 1:59pm UTC](https://forum.ubiquityrobotics.com/t/mmal-failed-to-create-camera-info-component/428/1 "2019-12-19T13:59:52Z")

</div>

Hello,

This error (‘Mmal: Failed to create camera\_info component’) occurs every time I try to use the camera. I can run the raspicam\_node and use the other camera related commands if I use the root user.

When I run the command vcgencmd get\_camera, it returns that the camera is supported and detected.

Can you tell me what it can be?

Thank you once again!

---

<div class="post-metadata">

**Author:** ![rohbotics](https://forum.ubiquityrobotics.com/user_avatar/forum.ubiquityrobotics.com/rohbotics/32/222_2.png) [@rohbotics](https://forum.ubiquityrobotics.com/u/rohbotics)\
**Post date:** [December 19, 2019, 2:26pm UTC](https://forum.ubiquityrobotics.com/t/mmal-failed-to-create-camera-info-component/428/2 "2019-12-19T14:26:06Z")

</div>

Thanks for reaching out with your issue.

What OS are you running on, and how did you install raspicam node?

Rohan

---

<div class="post-metadata">

**Author:** ![CatarinaPenacho](https://forum.ubiquityrobotics.com/letter_avatar_proxy/v4/letter/c/dbc845/32.png) [@CatarinaPenacho](https://forum.ubiquityrobotics.com/u/CatarinaPenacho)\
**Post date:** [December 19, 2019, 2:43pm UTC](https://forum.ubiquityrobotics.com/t/mmal-failed-to-create-camera-info-component/428/3 "2019-12-19T14:43:22Z")

</div>

Thank you for your quick response!

> [@rohbotics](#):
>
> What OS are you running on, and how did you install raspicam node?

I am running on your raspberry pi image (2019-06-19-ubiquity-xenial-lxde) and the raspicam node was already installed.

---

<div class="post-metadata">

**Author:** ![lorne](https://forum.ubiquityrobotics.com/letter_avatar_proxy/v4/letter/l/e274bd/32.png) [@lorne](https://forum.ubiquityrobotics.com/u/lorne)\
**Post date:** [January 15, 2020, 2:18pm UTC](https://forum.ubiquityrobotics.com/t/mmal-failed-to-create-camera-info-component/428/4 "2020-01-15T14:18:18Z")

</div>

Me too:  
raspistill -o test.jpg fails  
sudo raspistill -o test.jpg works fine  
I am also running on your raspberry pi image (2019-06-19-ubiquity-xenial-lxde)

---

<div class="post-metadata">

**Author:** ![mjstn2011](https://forum.ubiquityrobotics.com/user_avatar/forum.ubiquityrobotics.com/mjstn2011/32/30_2.png) [@mjstn2011](https://forum.ubiquityrobotics.com/u/mjstn2011)\
**Post date:** [January 15, 2020, 5:34pm UTC](https://forum.ubiquityrobotics.com/t/mmal-failed-to-create-camera-info-component/428/5 "2020-01-15T17:34:55Z")

</div>

The #1 reason is frequently the raspicam cable BUT recently I found another reason.

As a short term workaround after you bootup and have seen raspistill fail, try running this then try raspistill again.

sudo chmod 666 /dev/vcsm

Let us know if this helps although it is not a long term fix.  
My issue was related to use of the 2019-06-19 image and then use of the apt upgrade which directly seemed involved but has not been proven fully at this time.

---

<div class="post-metadata">

**Author:** ![lorne](https://forum.ubiquityrobotics.com/letter_avatar_proxy/v4/letter/l/e274bd/32.png) [@lorne](https://forum.ubiquityrobotics.com/u/lorne)\
**Post date:** [January 15, 2020, 5:56pm UTC](https://forum.ubiquityrobotics.com/t/mmal-failed-to-create-camera-info-component/428/6 "2020-01-15T17:56:32Z")

</div>

> [@mjstn2011](#):
>
> sudo chmod 666 /dev/vcsm

that works. also running as root (sudo -s) will let you use roslaunch

---

<div class="post-metadata">

**Author:** ![mjstn2011](https://forum.ubiquityrobotics.com/user_avatar/forum.ubiquityrobotics.com/mjstn2011/32/30_2.png) [@mjstn2011](https://forum.ubiquityrobotics.com/u/mjstn2011)\
**Post date:** [January 15, 2020, 11:32pm UTC](https://forum.ubiquityrobotics.com/t/mmal-failed-to-create-camera-info-component/428/7 "2020-01-15T23:32:11Z")

</div>

Ok. What you will find is that command is required after every reboot so it is not ideal.

Can you share with me if you had done an ‘apt upgrade’ at sometime after you installed the image? I wish to know this to have a confirmation that the apt upgrade leads to this issue. Then we can look into addressing some fix.

Thanks,  
Mark

---

<div class="post-metadata">

**Author:** ![lorne](https://forum.ubiquityrobotics.com/letter_avatar_proxy/v4/letter/l/e274bd/32.png) [@lorne](https://forum.ubiquityrobotics.com/u/lorne)\
**Post date:** [January 16, 2020, 3:11pm UTC](https://forum.ubiquityrobotics.com/t/mmal-failed-to-create-camera-info-component/428/8 "2020-01-16T15:11:39Z")

</div>

Yes I have done an apt update several times.

---

<div class="post-metadata">

**Author:** ![rohbotics](https://forum.ubiquityrobotics.com/user_avatar/forum.ubiquityrobotics.com/rohbotics/32/222_2.png) [@rohbotics](https://forum.ubiquityrobotics.com/u/rohbotics)\
**Post date:** [January 16, 2020, 3:27pm UTC](https://forum.ubiquityrobotics.com/t/mmal-failed-to-create-camera-info-component/428/9 "2020-01-16T15:27:05Z")

</div>

Ok in that case this seems to be related to a new kernel version that was released recently. We are looking into it.

Rohan

---

<div class="post-metadata">

**Author:** ![mjstn2011](https://forum.ubiquityrobotics.com/user_avatar/forum.ubiquityrobotics.com/mjstn2011/32/30_2.png) [@mjstn2011](https://forum.ubiquityrobotics.com/u/mjstn2011)\
**Post date:** [January 17, 2020, 8:25am UTC](https://forum.ubiquityrobotics.com/t/mmal-failed-to-create-camera-info-component/428/10 "2020-01-17T08:25:14Z")

</div>

Well actually what I asked is if you have done first an apt update and then had done an apt upgrade. Beware the words are sadly easily confused.

The apt update simply gets ready for apt installs and upgrades.

The apt upgrade is a very long running command on 6-19 image and would have taken something like 10 minutes to complete with a HUGE amount of console output.

Rohan: How can we do some version check or something of a module to tell if an apt upgrade was done? It is the upgrade that I isolated so far.

---

<div class="post-metadata">

**Author:** ![lorne](https://forum.ubiquityrobotics.com/letter_avatar_proxy/v4/letter/l/e274bd/32.png) [@lorne](https://forum.ubiquityrobotics.com/u/lorne)\
**Post date:** [January 17, 2020, 1:53pm UTC](https://forum.ubiquityrobotics.com/t/mmal-failed-to-create-camera-info-component/428/11 "2020-01-17T13:53:23Z")

</div>

Sorry. yes I have done the upgrade as well, multiple times on this robot.

---

<div class="post-metadata">

**Author:** ![mjstn2011](https://forum.ubiquityrobotics.com/user_avatar/forum.ubiquityrobotics.com/mjstn2011/32/30_2.png) [@mjstn2011](https://forum.ubiquityrobotics.com/u/mjstn2011)\
**Post date:** [February 5, 2020, 6:21am UTC](https://forum.ubiquityrobotics.com/t/mmal-failed-to-create-camera-info-component/428/12 "2020-02-05T06:21:07Z")

</div>

Rohan has found a fix that lasts through reboots and will work to fix this issue from our apt upgrade process very soon.

In the mean time: As root edit /etc/udev/rules.d/10-local-rpi.rules and add the following line:  
KERNEL==“vcsm”, GROUP=“video”, MODE=“0660”

NOTE: There are two = signs above and that is required and not a mistake here.

---

<div class="post-metadata">

**Author:** ![rohbotics](https://forum.ubiquityrobotics.com/user_avatar/forum.ubiquityrobotics.com/rohbotics/32/222_2.png) [@rohbotics](https://forum.ubiquityrobotics.com/u/rohbotics)\
**Post date:** [February 6, 2020, 3:15pm UTC](https://forum.ubiquityrobotics.com/t/mmal-failed-to-create-camera-info-component/428/13 "2020-02-06T15:15:38Z")

</div>

Hey All,

With some further investigation, the problem was that the firmware package actually ships udev rules in `/lib/udev` so the rules that were in `/etc/udev` with the same file name were actually (incorrectly) overriding them.

The solution to the problem is to run `sudo rm /etc/udev/rules.d/10-local-rpi.rules` to remove the conflicting rules and then `sudo reboot` to restart the Pi.

I will look into shipping this change as a package update.

Rohan
