Skip to content
This repository has been archived by the owner on Mar 25, 2023. It is now read-only.

Seamonkey: console.error: gnotifier: Notification API init has failed! #194

Open
CamilleScholtz opened this issue Oct 16, 2017 · 9 comments

Comments

@CamilleScholtz
Copy link

I don't know why or or how, I have libnotify installed.

@mkiol
Copy link
Owner

mkiol commented Oct 18, 2017

Thanks for reporting it.

Could you please provide me:

  • Which Linux DE?
  • Seamonkey version
  • GNotifier version

@CamilleScholtz
Copy link
Author

CamilleScholtz commented Oct 18, 2017

@mkiol
Copy link
Owner

mkiol commented Oct 18, 2017

Here is XPI with more debug logs enabled. Try it and capture console output.

@CamilleScholtz
Copy link
Author

console.error:
  Message: TypeError: cannot read contents of null pointer ctypes.char.ptr(ctypes.UInt64("0x0"))
  Stack:
    checkServerInfo@resource://gre/modules/commonjs/toolkit/loader.js -> resource://jid1-oonoa6xbjznvlq-at-jetpack/lib/linux.js:103:16
exports.init@resource://gre/modules/commonjs/toolkit/loader.js -> resource://jid1-oonoa6xbjznvlq-at-jetpack/lib/linux.js:270:40
exports.main@resource://gre/modules/commonjs/toolkit/loader.js -> resource://jid1-oonoa6xbjznvlq-at-jetpack/lib/main.js:168:6
run@resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/commonjs/sdk/addon/runner.js:153:7
startup/</<@resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/commonjs/sdk/addon/runner.js:87:9
Handler.prototype.process@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:932:23
this.PromiseWalker.walkerLoop@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:813:7
this.PromiseWalker.scheduleWalkerLoop/<@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:747:11

*************************
A coding exception was thrown in a Promise resolution callback.
See https://developer.mozilla.org/Mozilla/JavaScript_code_modules/Promise.jsm/Promise

Full message: TypeError: cannot read contents of null pointer ctypes.char.ptr(ctypes.UInt64("0x0"))
Full stack: checkServerInfo@resource://gre/modules/commonjs/toolkit/loader.js -> resource://jid1-oonoa6xbjznvlq-at-jetpack/lib/linux.js:103:16
exports.init@resource://gre/modules/commonjs/toolkit/loader.js -> resource://jid1-oonoa6xbjznvlq-at-jetpack/lib/linux.js:270:40
exports.main@resource://gre/modules/commonjs/toolkit/loader.js -> resource://jid1-oonoa6xbjznvlq-at-jetpack/lib/main.js:168:6
run@resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/commonjs/sdk/addon/runner.js:153:7
startup/</<@resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/commonjs/sdk/addon/runner.js:87:9
Handler.prototype.process@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:932:23
this.PromiseWalker.walkerLoop@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:813:7
this.PromiseWalker.scheduleWalkerLoop/<@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:747:11

*************************
console.error:
  Message: TypeError: cannot read contents of null pointer ctypes.char.ptr(ctypes.UInt64("0x0"))
  Stack:
    checkServerInfo@resource://gre/modules/commonjs/toolkit/loader.js -> resource://jid1-oonoa6xbjznvlq-at-jetpack/lib/linux.js:103:16
exports.init@resource://gre/modules/commonjs/toolkit/loader.js -> resource://jid1-oonoa6xbjznvlq-at-jetpack/lib/linux.js:270:40
exports.main@resource://gre/modules/commonjs/toolkit/loader.js -> resource://jid1-oonoa6xbjznvlq-at-jetpack/lib/main.js:168:6
run@resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/commonjs/sdk/addon/runner.js:153:7
startup/</<@resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/commonjs/sdk/addon/runner.js:87:9
Handler.prototype.process@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:932:23
this.PromiseWalker.walkerLoop@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:813:7
this.PromiseWalker.scheduleWalkerLoop/<@resource://gre/modules/Promise.jsm -> resource://gre/modules/Promise-backend.js:747:11

@mkiol
Copy link
Owner

mkiol commented Oct 21, 2017

What exact libnotify version is installed in your system?
Where libnotify is installed (path+filename)?

@CamilleScholtz
Copy link
Author

CamilleScholtz commented Oct 21, 2017

0.7.7
-rwxr-xr-x root/root usr/bin/notify-send

@CamilleScholtz
Copy link
Author

@mkiol
Copy link
Owner

mkiol commented Oct 23, 2017

I can't reproduce this issue so far :-(

It looks like SeaMonkey is able to load libnotify.so but, for some reason, is not able to call notify_get_server_info function...

Where libnotify.so is installed in your system? In my case lib is located under /usr/lib64/.

mkiol@rubi:~> ls -la /usr/lib64/libnotify*
lrwxrwxrwx 1 root root    18 maj 28 07:24 /usr/lib64/libnotify.so.4 -> libnotify.so.4.0.0
-rwxr-xr-x 1 root root 31416 maj 28 07:24 /usr/lib64/libnotify.so.4.0.0

@CamilleScholtz
Copy link
Author

CamilleScholtz commented Oct 23, 2017

drwxr-xr-x  root/root   usr/
drwxr-xr-x  root/root   usr/bin/
-rwxr-xr-x  root/root   usr/bin/notify-send
drwxr-xr-x  root/root   usr/include/
drwxr-xr-x  root/root   usr/include/libnotify/
-rw-r--r--  root/root   usr/include/libnotify/notification.h
-rw-r--r--  root/root   usr/include/libnotify/notify-enum-types.h
-rw-r--r--  root/root   usr/include/libnotify/notify-features.h
-rw-r--r--  root/root   usr/include/libnotify/notify.h
drwxr-xr-x  root/root   usr/lib/
drwxr-xr-x  root/root   usr/lib/girepository-1.0/
-rw-r--r--  root/root   usr/lib/girepository-1.0/Notify-0.7.typelib
-rw-r--r--  root/root   usr/lib/libnotify.a
-rwxr-xr-x  root/root   usr/lib/libnotify.la
lrwxrwxrwx  root/root   usr/lib/libnotify.so -> libnotify.so.4.0.0
lrwxrwxrwx  root/root   usr/lib/libnotify.so.4 -> libnotify.so.4.0.0
-rwxr-xr-x  root/root   usr/lib/libnotify.so.4.0.0
drwxr-xr-x  root/root   usr/lib/pkgconfig/
-rw-r--r--  root/root   usr/lib/pkgconfig/libnotify.pc
drwxr-xr-x  root/root   usr/share/
drwxr-xr-x  root/root   usr/share/gir-1.0/
-rw-r--r--  root/root   usr/share/gir-1.0/Notify-0.7.gir

It might be possible I didn't build my SeaMonkey with the right flags, I tried rebuilding with dbus support enabled, but that didn't change anything.

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

No branches or pull requests

2 participants