You are not logged in.

#1 2017-09-14 01:11:11

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,030

[Solved] FF and a script problem

Solved, see here


OK I have an OOPS!  I have not seen before using a bash script to search BL Forums:
the output

 13 Sep 17 @ 22:07:04 ~
   $ bls conky move
 
 13 Sep 17 @ 22:07:10 ~
   $ 
(firefox-esr:22279): GLib-GObject-CRITICAL **: g_object_ref: assertion 'object->ref_count > 0' failed

(firefox-esr:22279): GLib-GObject-CRITICAL **: g_object_unref: assertion 'object->ref_count > 0' failed

(firefox-esr:22279): GLib-GObject-CRITICAL **: g_object_ref: assertion 'object->ref_count > 0' failed

(firefox-esr:22279): GLib-GObject-CRITICAL **: g_object_unref: assertion 'object->ref_count > 0' failed
1505351232432	addons.webextension.uBlock0@raymondhill.net	WARN	Loading extension 'uBlock0@raymondhill.net': Reading manifest: Error processing permissions.1: Unknown permission "privacy"
Extension error: TypeError: command.suggested_key is null chrome://browser/content/ext-commands.js 79
[[Exception stack
loadCommandsFromManifest@chrome://browser/content/ext-commands.js:79:11
CommandList@chrome://browser/content/ext-commands.js:24:19
@chrome://browser/content/ext-commands.js:222:30
runSafeSyncWithoutClone@resource://gre/modules/ExtensionUtils.jsm:71:14
emit/promises<@resource://gre/modules/ExtensionUtils.jsm:384:55
emit@resource://gre/modules/ExtensionUtils.jsm:383:20
runManifest@resource://gre/modules/Extension.jsm:733:23
startup/<@resource://gre/modules/Extension.jsm:813:14
Current stack
runSafeSyncWithoutClone@resource://gre/modules/ExtensionUtils.jsm:73:129
emit/promises<@resource://gre/modules/ExtensionUtils.jsm:384:55
emit@resource://gre/modules/ExtensionUtils.jsm:383:20
runManifest@resource://gre/modules/Extension.jsm:733:23
startup/<@resource://gre/modules/Extension.jsm:813:14
]]

(firefox-esr:22279): GLib-GObject-CRITICAL **: g_object_ref: assertion 'object->ref_count > 0' failed

(firefox-esr:22279): GLib-GObject-CRITICAL **: g_object_unref: assertion 'object->ref_count > 0' failed

(firefox-esr:22279): GLib-GObject-CRITICAL **: g_object_ref: assertion 'object->ref_count > 0' failed

(firefox-esr:22279): GLib-GObject-CRITICAL **: g_object_unref: assertion 'object->ref_count > 0' failed

(firefox-esr:22279): GLib-GObject-CRITICAL **: g_object_ref: assertion 'object->ref_count > 0' failed

(firefox-esr:22279): GLib-GObject-CRITICAL **: g_object_unref: assertion 'object->ref_count > 0' failed

(firefox-esr:22279): GLib-GObject-CRITICAL **: g_object_ref: assertion 'object->ref_count > 0' failed

(firefox-esr:22279): GLib-GObject-CRITICAL **: g_object_unref: assertion 'object->ref_count > 0' failed

(firefox-esr:22279): GLib-GObject-CRITICAL **: g_object_ref: assertion 'object->ref_count > 0' failed

This does NOT happen if FF is already open

bls script

#!/bin/bash
# search the Crunchbang forums
# by johnraff
# change to StarPage by Sector11 - Sept 2013
# I call it "cbs" --- ~/bin/cbs
# I call it "bls" --- ~/bin/bls

USAGE='USAGE:
search words  - search the forum with several words, other google stuff like OR also OK.
"search phrase" - search for fixed phrase
-t topic word - search for topic in title, word anywhere
-t "topic phrase" word - search for "topic phrase" in title, word anywhere
-t topic -t subject - search for topic AND subject in title
-h or --help - this message
etc...'

unset q
while [[ $1 ]]
do
    case $1 in
        -t)
        shift
        if [[ $(echo $1 | wc -w) -eq 1 ]]
        then
            q="$q intitle:$1"
        else
            q="$q intitle:\"$1\""
        fi
        ;;

        -h|--help)
        echo "$USAGE"
        exit 0
        ;;

        *)
        if [[ $(echo $1 | wc -w) -eq 1 ]]
        then
            q="$q $1"
        else
            q="$q \"$1\""
        fi
        ;;
    esac
    shift
done

## midori "http://www.google.com/search?q=site:crunchbang.org/forums/ $q" &
## midori "https://duckduckgo.com/?q=site:forums.bunsenlabs.org $q" &
## midori "https://startpage.com/do/search?q=host:forums.bunsenlabs.org $q" &
## iceweasel "http://www.google.com/search?q=site:forums.bunsenlabs.org $q" &
## iceweasel "https://duckduckgo.com/?q=site:forums.bunsenlabs.org $q" &

firefox "https://startpage.com/do/search?q=host:forums.bunsenlabs.org $q" &
exit 0

Anyone got any ideas?


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#2 2017-09-14 01:56:01

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,668
Website

Re: [Solved] FF and a script problem

What happens if you launch firefox directly from a terminal?

firefox "http://somewebsite.com"

I get the same sort of errors in fact, but it doesn't seem to affect the operation. A lot of them are connected with the extensions I'm using, but I see the same repeated GLib-GObject-CRITICAL you get. New Firefox issues?

john@bunsen1:~$ firefox "https://forums.bunsenlabs.org/search.php?action=show_new"

(firefox-esr:8006): GLib-GObject-CRITICAL **: g_object_ref: assertion 'object->ref_count > 0' failed

(firefox-esr:8006): GLib-GObject-CRITICAL **: g_object_unref: assertion 'object->ref_count > 0' failed

(firefox-esr:8006): GLib-GObject-CRITICAL **: g_object_ref: assertion 'object->ref_count > 0' failed

(firefox-esr:8006): GLib-GObject-CRITICAL **: g_object_unref: assertion 'object->ref_count > 0' failed
1505356513413	addons.webextension.uBlock0@raymondhill.net	WARN	Loading extension 'uBlock0@raymondhill.net': Reading manifest: Error processing permissions.1: Unknown permission "privacy"
Extension error: TypeError: command.suggested_key is null chrome://browser/content/ext-commands.js 79
[[Exception stack
loadCommandsFromManifest@chrome://browser/content/ext-commands.js:79:11
CommandList@chrome://browser/content/ext-commands.js:24:19
@chrome://browser/content/ext-commands.js:222:30
runSafeSyncWithoutClone@resource://gre/modules/ExtensionUtils.jsm:71:14
emit/promises<@resource://gre/modules/ExtensionUtils.jsm:384:55
emit@resource://gre/modules/ExtensionUtils.jsm:383:20
runManifest@resource://gre/modules/Extension.jsm:733:23
startup/<@resource://gre/modules/Extension.jsm:813:14
Current stack
runSafeSyncWithoutClone@resource://gre/modules/ExtensionUtils.jsm:73:129
emit/promises<@resource://gre/modules/ExtensionUtils.jsm:384:55
emit@resource://gre/modules/ExtensionUtils.jsm:383:20
runManifest@resource://gre/modules/Extension.jsm:733:23
startup/<@resource://gre/modules/Extension.jsm:813:14
]]
1505356513515	addons.webextension.{7a7a4a92-a2a0-41d1-9fd7-1e92480d612d}	WARN	Please specify whether you want browser_style or not in your browser_action options.
Extension error: TypeError: command.suggested_key is null chrome://browser/content/ext-commands.js 79
[[Exception stack
loadCommandsFromManifest@chrome://browser/content/ext-commands.js:79:11
CommandList@chrome://browser/content/ext-commands.js:24:19
@chrome://browser/content/ext-commands.js:222:30
runSafeSyncWithoutClone@resource://gre/modules/ExtensionUtils.jsm:71:14
emit/promises<@resource://gre/modules/ExtensionUtils.jsm:384:55
emit@resource://gre/modules/ExtensionUtils.jsm:383:20
runManifest@resource://gre/modules/Extension.jsm:733:23
startup/<@resource://gre/modules/Extension.jsm:813:14
Current stack
runSafeSyncWithoutClone@resource://gre/modules/ExtensionUtils.jsm:73:129
emit/promises<@resource://gre/modules/ExtensionUtils.jsm:384:55
emit@resource://gre/modules/ExtensionUtils.jsm:383:20
runManifest@resource://gre/modules/Extension.jsm:733:23
startup/<@resource://gre/modules/Extension.jsm:813:14
]]
1505356514414	addons.webextension.{73a6fe31-595d-460b-a920-fcc0f8843232}	WARN	Loading extension '{73a6fe31-595d-460b-a920-fcc0f8843232}': Reading manifest: Error processing permissions.1: Unknown permission "privacy"

(firefox-esr:8006): GLib-GObject-CRITICAL **: g_object_ref: assertion 'object->ref_count > 0' failed

(firefox-esr:8006): GLib-GObject-CRITICAL **: g_object_unref: assertion 'object->ref_count > 0' failed

(firefox-esr:8006): GLib-GObject-CRITICAL **: g_object_ref: assertion 'object->ref_count > 0' failed

(firefox-esr:8006): GLib-GObject-CRITICAL **: g_object_unref: assertion 'object->ref_count > 0' failed

(firefox-esr:8006): GLib-GObject-CRITICAL **: g_object_ref: assertion 'object->ref_count > 0' failed

(firefox-esr:8006): GLib-GObject-CRITICAL **: g_object_unref: assertion 'object->ref_count > 0' failed

(firefox-esr:8006): GLib-GObject-CRITICAL **: g_object_ref: assertion 'object->ref_count > 0' failed

###
# MUCH more of the same...
###

Last edited by johnraff (2017-09-14 02:42:04)


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

#3 2017-09-14 02:53:10

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,030

Re: [Solved] FF and a script problem

Yea, I get the same:

 13 Sep 17 @ 23:44:54 ~
   $ firefox https://forums.bunsenlabs.org/

(firefox-esr:10957): GLib-GObject-CRITICAL **: g_object_ref: assertion 'object->ref_count > 0' failed

(firefox-esr:10957): GLib-GObject-CRITICAL **: g_object_unref: assertion 'object->ref_count > 0' failed

(firefox-esr:10957): GLib-GObject-CRITICAL **: g_object_ref: assertion 'object->ref_count > 0' failed

(firefox-esr:10957): GLib-GObject-CRITICAL **: g_object_unref: assertion 'object->ref_count > 0' failed
1505357097855	addons.webextension.uBlock0@raymondhill.net	WARN	Loading extension 'uBlock0@raymondhill.net': Reading manifest: Error processing permissions.1: Unknown permission "privacy"
Extension error: TypeError: command.suggested_key is null chrome://browser/content/ext-commands.js 79
[[Exception stack
loadCommandsFromManifest@chrome://browser/content/ext-commands.js:79:11
CommandList@chrome://browser/content/ext-commands.js:24:19
@chrome://browser/content/ext-commands.js:222:30
runSafeSyncWithoutClone@resource://gre/modules/ExtensionUtils.jsm:71:14
emit/promises<@resource://gre/modules/ExtensionUtils.jsm:384:55
emit@resource://gre/modules/ExtensionUtils.jsm:383:20
runManifest@resource://gre/modules/Extension.jsm:733:23
startup/<@resource://gre/modules/Extension.jsm:813:14
Current stack
runSafeSyncWithoutClone@resource://gre/modules/ExtensionUtils.jsm:73:129
emit/promises<@resource://gre/modules/ExtensionUtils.jsm:384:55
emit@resource://gre/modules/ExtensionUtils.jsm:383:20
runManifest@resource://gre/modules/Extension.jsm:733:23
startup/<@resource://gre/modules/Extension.jsm:813:14
]]

These ones I do not like:

Extension error: TypeError: command.suggested_key is null chrome://browser/content/ext-commands.js 79
[[Exception stack
loadCommandsFromManifest@chrome://browser/content/ext-commands.js:79:11
CommandList@chrome://browser/content/ext-commands.js:24:19
@chrome://browser/content/ext-commands.js:222:30

What does FF have to do with chrome?

WTFarmer
OK, time to hit Startpage ...


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#4 2017-09-14 05:31:35

ohnonot
...again
Registered: 2015-09-29
Posts: 5,592

Re: [Solved] FF and a script problem

s11, does your script actually fail?
have you tried with the same browser, but different search engines?
ddg has a non-js version: https://duckduckgo.com/html?q=blablabla - try that? less warnings?

edit:
oh yes, the keyword chrome is used in mozilla browsers, too.

Last edited by ohnonot (2017-09-14 05:32:22)

Offline

#5 2017-09-14 09:30:14

iMBeCil
WAAAT?
From: Edrychwch o'ch cwmpas
Registered: 2015-09-29
Posts: 767

Re: [Solved] FF and a script problem

Sector11 wrote:

...
This does NOT happen if FF is already open
...
Anyone got any ideas?

This is somewhat 'normal' behaviour, normal in the sense:
- number of GUI programs will have certain warnings (GUI- and javascript- and possibly other-related), visible if started from terminal for the first time
- if the program is running, then it has already been started, which means that start-up related stuff has been already processed and warnings has been issued (somewhere); no reason to issue them again if program is not actually started from 'scratch'

For example:

$ iceweasel   # v52.3.0esr-2, fresh start, no other iceweasel windows open
1505380834186	FirefoxAccounts	ERROR	[Exception... "Component returned failure code: 0x804b000a (NS_ERROR_MALFORMED_URI) [nsIIOService2.newURI]"  nsresult: "0x804b000a (NS_ERROR_MALFORMED_URI)"  location: "JS frame :: resource://gre/modules/FxAccountsWebChannel.jsm :: _setupChannel :: line 131"  data: no] Stack trace: _setupChannel()@resource://gre/modules/FxAccountsWebChannel.jsm:131 < this.FxAccountsWebChannel()@resource://gre/modules/FxAccountsWebChannel.jsm:91 < this.EnsureFxAccountsWebChannel()@resource://gre/modules/FxAccountsWebChannel.jsm:463 < gFxAccounts.init()@browser-fxaccounts.js:105 < gBrowserInit._delayedStartup()@browser.js:1354
1505380834187	FirefoxAccounts	ERROR	Failed to create FxA WebChannel: [Exception... "Component returned failure code: 0x804b000a (NS_ERROR_MALFORMED_URI) [nsIIOService2.newURI]"  nsresult: "0x804b000a (NS_ERROR_MALFORMED_URI)"  location: "JS frame :: resource://gre/modules/FxAccountsWebChannel.jsm :: _setupChannel :: line 131"  data: no] Stack trace: _setupChannel()@resource://gre/modules/FxAccountsWebChannel.jsm:131 < this.FxAccountsWebChannel()@resource://gre/modules/FxAccountsWebChannel.jsm:91 < this.EnsureFxAccountsWebChannel()@resource://gre/modules/FxAccountsWebChannel.jsm:463 < gFxAccounts.init()@browser-fxaccounts.js:105 < gBrowserInit._delayedStartup()@browser.js:1354

And, of course, no output if iceweasel is already running.

I wouldn't worry about it too much.

Funnily enough, this solves the problem for me:

$ iceweasel  > /dev/null &

Last edited by iMBeCil (2017-09-14 09:30:40)


Postpone all your duties; if you die, you won't have to do them ..

Offline

#6 2017-09-14 10:58:20

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,030

Re: [Solved] FF and a script problem

@ nobody - disabled uBlock origin and get:

 14 Sep 17 @ 07:50:25 ~
   $ firefox https://forums.bunsenlabs.org/

(firefox-esr:4000): GLib-GObject-CRITICAL **: g_object_ref: assertion 'object->ref_count > 0' failed

(firefox-esr:4000): GLib-GObject-CRITICAL **: g_object_unref: assertion 'object->ref_count > 0' failed

(firefox-esr:4000): GLib-GObject-CRITICAL **: g_object_ref: assertion 'object->ref_count > 0' failed

(firefox-esr:4000): GLib-GObject-CRITICAL **: g_object_unref: assertion 'object->ref_count > 0' failed

SO I can see where this isn'y a FF think as must and an extension thing.  But it's relatively new I've never seen/notced this before.

@ohnonot - no the script doesn't fail at all works like a charm
@ iMBeCil - tossing the output into lala land ( > /dev/null & ) would of course clean up the mess, but sometimes it's good to see.

[Solved]


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

Board footer

Powered by FluxBB