avcService Crashing


#1

I’m running a fresh flash of Legato 16.10.3 R14 with the carrier generic image. The avcService keeps crashing on boot and if I start the app manually. I have confirmed that I have a good connection to AirVantage using the minicom commands. I have also confirmed that I can ping 8.8.8.8 using the cm data connect command.

Here is the relevant log:

Oct 16 14:45:01 | avcDaemon[2177]/avcDaemon T=main | avcServer.c _avcDaemon_COMPONENT_INIT() 1923 | Is control app installed? 1
Oct 16 14:45:01 | avcDaemon[2177]/avcAppUpdate T=main | avcAppUpdate.c PopulateAppInfoObjects() 1772 | Application name too large or is hidden, 'atClient.'
Oct 16 14:45:01 | avcDaemon[2177]/avcAppUpdate T=main | avcAppUpdate.c PopulateAppInfoObjects() 1772 | Application name too large or is hidden, 'atServer.'
Oct 16 14:45:01 | avcDaemon[2177]/avcAppUpdate T=main | avcAppUpdate.c PopulateAppInfoObjects() 1772 | Application name too large or is hidden, 'audioService.'
Oct 16 14:45:01 | avcDaemon[2177]/avcAppUpdate T=main | avcAppUpdate.c PopulateAppInfoObjects() 1772 | Application name too large or is hidden, 'avcService.'
Oct 16 14:45:01 | avcDaemon[2177]/avcAppUpdate T=main | avcAppUpdate.c PopulateAppInfoObjects() 1772 | Application name too large or is hidden, 'cellNetService.'
Oct 16 14:45:01 | avcDaemon[2177]/avcAppUpdate T=main | avcAppUpdate.c PopulateAppInfoObjects() 1772 | Application name too large or is hidden, 'dataConnectionService.'
Oct 16 14:45:01 | avcDaemon[2177]/avcAppUpdate T=main | avcAppUpdate.c PopulateAppInfoObjects() 1772 | Application name too large or is hidden, 'fwupdateService.'
Oct 16 14:45:01 | avcDaemon[2177]/avcAppUpdate T=main | avcAppUpdate.c PopulateAppInfoObjects() 1772 | Application name too large or is hidden, 'gpioService.'
Oct 16 14:45:01 | avcDaemon[2177]/avcAppUpdate T=main | avcAppUpdate.c PopulateAppInfoObjects() 1772 | Application name too large or is hidden, 'modemService.'
Oct 16 14:45:01 | avcDaemon[2177]/avcAppUpdate T=main | avcAppUpdate.c PopulateAppInfoObjects() 1772 | Application name too large or is hidden, 'positioningService.'
Oct 16 14:45:01 | avcDaemon[2177]/avcAppUpdate T=main | avcAppUpdate.c PopulateAppInfoObjects() 1772 | Application name too large or is hidden, 'powerMgr.'
Oct 16 14:45:01 | avcDaemon[2177]/avcAppUpdate T=main | avcAppUpdate.c PopulateAppInfoObjects() 1772 | Application name too large or is hidden, 'secStore.'
Oct 16 14:45:01 | avcDaemon[2177]/avcAppUpdate T=main | avcAppUpdate.c PopulateAppInfoObjects() 1772 | Application name too large or is hidden, 'smsInboxService.'
Oct 16 14:45:01 | avcDaemon[2177]/avcAppUpdate T=main | avcAppUpdate.c PopulateAppInfoObjects() 1772 | Application name too large or is hidden, 'spiService.'
Oct 16 14:45:01 | avcDaemon[2177]/avcAppUpdate T=main | avcAppUpdate.c PopulateAppInfoObjects() 1772 | Application name too large or is hidden, 'tools.'
Oct 16 14:45:01 | avcDaemon[2177]/avcAppUpdate T=main | avcAppUpdate.c PopulateAppInfoObjects() 1772 | Application name too large or is hidden, 'voiceCallService.'
Oct 16 14:45:01 | avcDaemon[2177]/avcAppUpdate T=main | avcAppUpdate.c PopulateAppInfoObjects() 1772 | Application name too large or is hidden, 'wifi.'
Oct 16 14:45:01 | avcDaemon[2177]/avcAppUpdate T=main | avcAppUpdate.c PopulateAppInfoObjects() 1772 | Application name too large or is hidden, 'wifiApTest.'
Oct 16 14:45:01 | avcDaemon[2177]/avcAppUpdate T=main | avcAppUpdate.c PopulateAppInfoObjects() 1772 | Application name too large or is hidden, 'wifiClientTest.'
Oct 16 14:45:01 | avcDaemon[2177]/avcAppUpdate T=main | avcAppUpdate.c PopulateAppInfoObjects() 1772 | Application name too large or is hidden, 'wifiService.'
Oct 16 14:45:01 | avcDaemon[2177]/avcAppUpdate T=main | avcAppUpdate.c PopulateAppInfoObjects() 1772 | Application name too large or is hidden, 'wifiWebAp.'
Oct 16 14:45:01 | avcDaemon[2177]/avcAppUpdate T=main | avcAppUpdate.c PopulateAppInfoObjects() 1772 | Application name too large or is hidden, 'devMode.'
Oct 16 14:45:01 | avcDaemon[2177]/avcDaemon T=main | assetData.c assetData_CreateInstanceById() 2982 | Creating asset instance for lwm2m/9
Oct 16 14:45:01 | avcDaemon[2177]/avcDaemon T=main | assetData.c assetData_CreateInstanceById() 3079 | Finished creating instance 1 for lwm2m/9
Oct 16 14:45:01 | avcDaemon[2177]/avcDaemon T=main | assetData.c assetData_CreateInstanceById() 2982 | Creating asset instance for lwm2m/0
Oct 16 14:45:01 | avcDaemon[2177]/avcDaemon T=main | assetData.c CreateAssetDataFromModel() 989 | Asset model for lwm2m/0 is not found
Oct 16 14:45:01 | avcDaemon[2177]/avcAppUpdate T=main | avcAppUpdate.c CreateLegatoObjectsForApp() 734 | Assert Failed: 'assetData_CreateInstanceById(objNameBuffer, 0, 0, &objectRef) == LE_OK'
Oct 16 14:45:03 | supervisor[465]/supervisor T=main | proc.c proc_SigChildHandler() 1942 | Process 'avcStart.sh' (PID: 2177) has exited with exit code 1.
Oct 16 14:45:04 | supervisor[465]/supervisor T=main | app.c app_SigChildHandler() 3227 | Process 'avcStart.sh' in app 'avcService' faulted: Restarting process.

#2

Can you follow the Getting Started instructions for mangOH Red:
http://mangoh.io/mangoh-red-resources-getting-started
the only difference is, you need to run:
make green_wp85 instead of make red_wp85

Let us know if you see the same problem.


#3

I can go that route and let you know the results. In the meantime, I’m currently working inside of Developer Studio. Do the firmware tools inside of Developer Studio not support mangOH green? Trying to figure out why a clean install inside DS is resulting in a default app crashing.


#4

I’m still not sure about the root cause, but if I install fresh firmware using the window installer at the link below, then the avcService starts up just fine. When I install the firmware from inside Developer Studio it crashes every time.

https://source.sierrawireless.com/resources/legato/wpfirmwarerelease/


#5

run the following command for each case and paste the result

cm info


#6

I did a little more troubleshooting. The problem seems to be stemming from the lwm2mControl example application. When I create a project using the example in Developer Studio it immediately causes avcService to crash. It will continue to crash even if the lwm2mControl application is stopped. I have to uninstall the lwm2mControl application and once I restart avcService it starts up without crashing.

Do you know what this error means by chance?

Oct 16 14:45:01 | avcDaemon[2177]/avcDaemon T=main | assetData.c CreateAssetDataFromModel() 989 | Asset model for lwm2m/0 is not found

#7

I think I’ve finally got the the bottom of this issue.

If you name the new project anything other than lwm2mCtrlDaemon you must update the bindings to reflect the name change (was obvious once I thought to look). Once I renamed the project lwm2mCtrlDaemon then the application started up right away without crashing the avcService.

I’m still new to the Legato framework, but it does seem odd that an event in an external application is capable of crashing the avcService and keeping it from restarting in the future. If other applications rely on this service it could created a cascade failure in a production environment. I welcome any feedback you may have regarding this problem.

bindings:
{
	lwm2mCtrlDaemon.lwm2mControl.le_avc -> avcService.le_avc
}