Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segmentation fault (core dumped) #15

Closed
khaschuluu opened this issue May 6, 2018 · 7 comments
Closed

Segmentation fault (core dumped) #15

khaschuluu opened this issue May 6, 2018 · 7 comments

Comments

@khaschuluu
Copy link

When I trying to execute examples/handleUpdates.js, returns:

Got update: {
  "@type": "ok",
  "@extra": null
}
Segmentation fault (core dumped)

I trying in Ubuntu 16.04
node v10.0.0

@khaschuluu
Copy link
Author

Every examples stops with message that Segmentation fault (core dumped).
What should I do, what am I doing wrong?

@nodegin
Copy link
Owner

nodegin commented May 6, 2018

Hi, can you post the full source code?

@khaschuluu
Copy link
Author

const { Client } = require('tglib')

async function main() {
  const client = new Client({
    apiId: 'XXXXXX',
    apiHash: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
    phoneNumber: 'XXXXXXXXXXX',
  })

  await client.connect()

  await client._send({
    '@type': 'sendMessage',
    'chat_id': -123456789,
    'input_message_content': {
      '@type': 'inputMessageText',
      'text': {
        '@type': 'formattedText',
        'text': 'Hi',
      },
    },
  })
}

main()

@nodegin
Copy link
Owner

nodegin commented May 26, 2018

Hi, I assume this is a TDLib issue, can you try rebuild the binary?

@nodegin nodegin closed this as completed May 26, 2018
@nagashik
Copy link

nagashik commented Jun 6, 2018

@khaschuluu have you solved the issue?
I have the same truble with TDLib. and can't solve it

@khaschuluu
Copy link
Author

@nagashik no, I'm currently using telegram-cli

@swarthy
Copy link

swarthy commented Jun 16, 2018

It's not a tglib issue
Check tdlib/td#259
tltd: ensure node openssl version equals openssl in your system

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants