node-clinic-bubbleprof
node-clinic-bubbleprof copied to clipboard
Cannot read property 'name' of null
When my program is running with sqlite3 as database I get an error like this when I run "clinic bubbleprof" on it:
/usr/local/lib/node_modules/clinic/node_modules/@nearform/bubbleprof/analysis/aggregate/mark-module-aggregate-nodes.js:25
aggregateNode.mark.set(1, firstModule.name)
^
TypeError: Cannot read property 'name' of undefined
at MarkModuleAggregateNodes._transform (/usr/local/lib/node_modules/clinic/node_modules/@nearform/bubbleprof/analysis/aggregate/mark-module-aggregate-nodes.js:25:45)
at MarkModuleAggregateNodes.Transform._read (internal/streams/transform.js:205:10)
at MarkModuleAggregateNodes.Transform._write (internal/streams/transform.js:193:12)
at writeOrBuffer (internal/streams/writable.js:358:12)
at MarkModuleAggregateNodes.Writable.write (internal/streams/writable.js:303:10)
at MarkPartyAggregateNodes.ondata (internal/streams/readable.js:745:22)
at MarkPartyAggregateNodes.emit (events.js:376:20)
at addChunk (internal/streams/readable.js:309:12)
at readableAddChunk (internal/streams/readable.js:284:9)
at MarkPartyAggregateNodes.Readable.push (internal/streams/readable.js:223:10)
I have dumped out the content of aggregateNode below. frames
is empty and the program obviously does not expect this.
aggregateNode: {
"aggregateId": 280,
"parentAggregateId": 215,
"name": null,
"children": [],
"mark": [
"external",
null,
null
],
"type": "sqlite3.Statement.All",
"frames": [],
"sources": [
{
"asyncId": 267,
"parentAsyncId": 256,
"triggerAsyncId": 256,
"executionAsyncId": 256,
"init": 3468301.664,
"before": [
3468301.894
],
"after": [
3468302.024
],
"destroy": 3468306.749
}
]
}
This issue appears to be the same as #303 but with different trigger.