GNotifier icon indicating copy to clipboard operation
GNotifier copied to clipboard

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

Open CamilleScholtz opened this issue 7 years ago • 9 comments

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

CamilleScholtz avatar Oct 16 '17 19:10 CamilleScholtz

Thanks for reporting it.

Could you please provide me:

  • Which Linux DE?
  • Seamonkey version
  • GNotifier version

mkiol avatar Oct 18 '17 17:10 mkiol

  • OpenBox, using libnotify to send notifactions
  • 2.49.1 (build4, this is a beta release, https://archive.mozilla.org/pub/seamonkey/candidates/2.49.1-candidates/build4/)
  • 1.11.0

CamilleScholtz avatar Oct 18 '17 17:10 CamilleScholtz

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

mkiol avatar Oct 18 '17 18:10 mkiol

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

CamilleScholtz avatar Oct 18 '17 19:10 CamilleScholtz

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

mkiol avatar Oct 21 '17 12:10 mkiol

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

CamilleScholtz avatar Oct 21 '17 15:10 CamilleScholtz

https://github.com/passff/passff-host/issues/71 Seems related

CamilleScholtz avatar Oct 21 '17 17:10 CamilleScholtz

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

mkiol avatar Oct 23 '17 18:10 mkiol

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.

CamilleScholtz avatar Oct 23 '17 20:10 CamilleScholtz