Comment 14 for bug 1374481

Revision history for this message
Marcus Tomlinson (marcustomlinson) wrote : Re: Nearby and News scope do not load on reboot

This looks to me to be an issue of buggy scope implementations.

If you search for the phrase "closed unexpectedly" in the log files Pete posted above, you'll see a number of scopes are crashing. Namely: "com.canonical.scopes.fbphotos_fbphotos", "unity-scope-nearby", and "com.canonical.scopes.eljueves_eljueves". That would explain the scopes being empty.

The fact that there are no complains in these logs about scopes not starting properly, means that these scopes are making it through their start() methods just fine. So looks like these crashes are occurring in run().

The log just before these "closed unexpectedly" entries should give an indication of where in the code each of these scopes are when the crash occurs.

E.g. A pretty scary looking one in scope-registry.log.3.gz:

panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x0 pc=0xbdbb8]

goroutine 1 [running]:
runtime.panic(0x20b568, 0x43efe0)
 /usr/lib/go/src/pkg/runtime/panic.c:266 +0x134
launchpad.net/go-unityscopes/v1.(*ScopeBase).ScopeDirectory(0x0, 0x0, 0x0)
 /home/cwayne/go/src/launchpad.net/go-unityscopes/v1/unityscope.go:98 +0x30
main.(*EJScope).SetScopeBase(0x9464d2c0, 0x0)
 /home/cwayne/Projects/scopes/el-jueves/eljueves.go:118 +0x2c
launchpad.net/go-unityscopes/v1.setScopeBase(0xb46286e8, 0x9464d2c0, 0x0)
 /home/cwayne/go/src/launchpad.net/go-unityscopes/v1/unityscope.go:90 +0x4c
launchpad.net/go-unityscopes/v1._Cfunc_run_scope(0x947cb980, 0x94616100, 0x94616110, 0x947cb978, 0x947cb988)
 launchpad.net/go-unityscopes/v1/_obj/_cgo_defun.c:332 +0x34
launchpad.net/go-unityscopes/v1.Run(0xb46286e8, 0x9464d2c0, 0x4523cc, 0xb46286e8)
 /home/cwayne/go/src/launchpad.net/go-unityscopes/v1/unityscope.go:145 +0x318
main.main()
 /home/cwayne/Projects/scopes/el-jueves/eljueves.go:237 +0x1a8

goroutine 4 [syscall]:
runtime.cgocallbackg()
 /usr/lib/go/src/pkg/runtime/cgocall.c:267 +0x68
runtime.cgocallback_gofunc(0x0, 0x0, 0x0)
 /usr/lib/go/src/pkg/runtime/asm_arm.s:495 +0x60
runtime.goexit()
 /usr/lib/go/src/pkg/runtime/proc.c:1394

goroutine 7 [syscall]:
runtime.goexit()
 /usr/lib/go/src/pkg/runtime/proc.c:1394
RegistryObject::ScopeProcess::on_process_death(): Process for scope: "com.canonical.scopes.eljueves_eljueves" exited
RegistryObject::ScopeProcess: Scope: "com.canonical.scopes.eljueves_eljueves" closed unexpectedly. Either the process crashed or was killed forcefully.