I have added a Zyxel VMG8825 to genieacs 1.1.3 and it seems to be causing crashes in cwmp. Other devices I have tested work fine.
I have one script that runs on 0 BOOTSTRAP and one that runs on 1 BOOT, I have removed all the code from them and I still get the error. The error seems to be inside the session handling anyway.
2019-09-16T16:16:51.863Z [INFO] snip 54833A-VMG8825%2DB50B-snip: Inform; cpeRequestId=“snip” informEvent=“0 BOOTSTRAP,1 BOOT,4 VALUE CHANGE” informRetryCount=10
2019-09-16T16:16:52.059Z [ERROR] Uncaught exception; pid=87013 exceptionName=“TypeError” exceptionMessage=“Cannot read property ‘length’ of null” exceptionStack=“TypeError: Cannot read property ‘length’ of null\n at /usr/local/genieacs/lib/cwmp.js:549:33\n at Object.rpcRequest (/usr/local/genieacs/lib/session.js:744:12)\n at nextRpc (/usr/local/genieacs/lib/cwmp.js:468:18)\n at /usr/local/genieacs/lib/cwmp.js:978:14\n at Object.timeoutOperations (/usr/local/genieacs/lib/session.js:371:12)\n at processRequest (/usr/local/genieacs/lib/cwmp.js:964:20)\n at parsedRpc (/usr/local/genieacs/lib/cwmp.js:1063:14)\n at /usr/local/genieacs/lib/cwmp.js:1128:16\n at getSession (/usr/local/genieacs/lib/cwmp.js:748:12)\n at IncomingMessage. (/usr/local/genieacs/lib/cwmp.js:1065:12)”
I looked at the code and noticed it was crashing when trying to run a task. I looked at the tasks list, and despite removing the device there was still an outstanding task that for some reason had a parameterValue of null.