{"action":"created","issue":{"url":"https://api.github.com/repos/Blizzard/node-rdkafka/issues/49","repository_url":"https://api.github.com/repos/Blizzard/node-rdkafka","labels_url":"https://api.github.com/repos/Blizzard/node-rdkafka/issues/49/labels{/name}","comments_url":"https://api.github.com/repos/Blizzard/node-rdkafka/issues/49/comments","events_url":"https://api.github.com/repos/Blizzard/node-rdkafka/issues/49/events","html_url":"https://github.com/Blizzard/node-rdkafka/issues/49","id":184880544,"number":49,"title":"Producer core dump","user":{"login":"ottomata","id":1626054,"avatar_url":"https://avatars.githubusercontent.com/u/1626054?v=3","gravatar_id":"","url":"https://api.github.com/users/ottomata","html_url":"https://github.com/ottomata","followers_url":"https://api.github.com/users/ottomata/followers","following_url":"https://api.github.com/users/ottomata/following{/other_user}","gists_url":"https://api.github.com/users/ottomata/gists{/gist_id}","starred_url":"https://api.github.com/users/ottomata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ottomata/subscriptions","organizations_url":"https://api.github.com/users/ottomata/orgs","repos_url":"https://api.github.com/users/ottomata/repos","events_url":"https://api.github.com/users/ottomata/events{/privacy}","received_events_url":"https://api.github.com/users/ottomata/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Blizzard/node-rdkafka/labels/bug","name":"bug","color":"ee0701"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-10-24T15:51:53Z","updated_at":"2016-10-24T21:05:32Z","closed_at":null,"body":"Am in the process of testing PR #42 as a fix for Issue #5, and ran into this:\r\n\r\n```\r\nconst Kafka = require('node-rdkafka');\r\nconst producer = new Kafka.Producer({\r\n    'metadata.broker.list': 'localhost:9092',\r\n});\r\nproducer.connect(undefined, () => {\r\n    producer.produce({\r\n        topic: 'test',\r\n        message: '{\"f\": 1}'\r\n    });\r\n});\r\n```\r\n\r\n```\r\nnodejs: ../node_modules/nan/nan_object_wrap.h:33: static T* Nan::ObjectWrap::Unwrap(v8::Local<v8::Object>) [with T = NodeKafka::Topic]: Assertion `object->InternalFieldCount() > 0' failed.\r\nAborted (core dumped)\r\n```\r\n\r\nnode-rdkafka compiled at commit `62e53c22cafe93b9697fc9ff6fc0daa7c2670da2`.\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Blizzard/node-rdkafka/issues/comments/255865909","html_url":"https://github.com/Blizzard/node-rdkafka/issues/49#issuecomment-255865909","issue_url":"https://api.github.com/repos/Blizzard/node-rdkafka/issues/49","id":255865909,"user":{"login":"ottomata","id":1626054,"avatar_url":"https://avatars.githubusercontent.com/u/1626054?v=3","gravatar_id":"","url":"https://api.github.com/users/ottomata","html_url":"https://github.com/ottomata","followers_url":"https://api.github.com/users/ottomata/followers","following_url":"https://api.github.com/users/ottomata/following{/other_user}","gists_url":"https://api.github.com/users/ottomata/gists{/gist_id}","starred_url":"https://api.github.com/users/ottomata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ottomata/subscriptions","organizations_url":"https://api.github.com/users/ottomata/orgs","repos_url":"https://api.github.com/users/ottomata/repos","events_url":"https://api.github.com/users/ottomata/events{/privacy}","received_events_url":"https://api.github.com/users/ottomata/received_events","type":"User","site_admin":false},"created_at":"2016-10-24T21:05:32Z","updated_at":"2016-10-24T21:05:32Z","body":"`topic: producer.Topic('test', {})` also assert and dumps:\r\n```\r\nnodejs: ../node_modules/nan/nan_object_wrap.h:33: static T* Nan::ObjectWrap::Unwrap(v8::Local<v8::Object>) [with T = NodeKafka::Topic]: Assertion `object->InternalFieldCount() > 0' failed.\r\nAborted (core dumped)\r\n```\r\n\r\nI had an `on('error'` handler, but it never was called.  I just added it back, and it isn't called before the assert."}}
{"actor":{"display_login":"ottomata"}}