{"action":"opened","issue":{"url":"https://api.github.com/repos/SpookyJS/SpookyJS/issues/156","labels_url":"https://api.github.com/repos/SpookyJS/SpookyJS/issues/156/labels{/name}","comments_url":"https://api.github.com/repos/SpookyJS/SpookyJS/issues/156/comments","events_url":"https://api.github.com/repos/SpookyJS/SpookyJS/issues/156/events","html_url":"https://github.com/SpookyJS/SpookyJS/issues/156","id":98570059,"number":156,"title":"Error with slimerjs","user":{"login":"CubixSystem","id":7340055,"avatar_url":"https://avatars.githubusercontent.com/u/7340055?v=3","gravatar_id":"","url":"https://api.github.com/users/CubixSystem","html_url":"https://github.com/CubixSystem","followers_url":"https://api.github.com/users/CubixSystem/followers","following_url":"https://api.github.com/users/CubixSystem/following{/other_user}","gists_url":"https://api.github.com/users/CubixSystem/gists{/gist_id}","starred_url":"https://api.github.com/users/CubixSystem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CubixSystem/subscriptions","organizations_url":"https://api.github.com/users/CubixSystem/orgs","repos_url":"https://api.github.com/users/CubixSystem/repos","events_url":"https://api.github.com/users/CubixSystem/events{/privacy}","received_events_url":"https://api.github.com/users/CubixSystem/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-02T00:03:27Z","updated_at":"2015-08-02T00:03:27Z","closed_at":null,"body":"Well, it's sounds very strange, like \"[How do you set slimerjs as the engine for casperjs when using spookyjs?](http://stackoverflow.com/questions/23637298/how-do-you-set-slimerjs-as-the-engine-for-casperjs-when-using-spookyjs)\".\r\n\r\nSlimerjs starting (I see small window), but immediately fall with this error:\r\n\r\n```cmd\r\nC:\\Program Files\r\n\"SLIMERJSLAUNCHER is set to C:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe\"\r\nError during the script execution\r\n[Exception] TypeError: slConfiguration.mainScriptURI is null  filename:resource://slimerjs/slLauncher.jsm  line:34\r\nStack trace:\r\n0:getMainScriptInfo@resource://slimerjs/slLauncher.jsm:34:9\r\nslLauncher.launchMainScript@resource://slimerjs/slLauncher.jsm:106:26\r\nstartup@chrome://slimerjs/content/slimerjs.js:19:9\r\nonload@chrome://slimerjs/content/slimerjs.xul:1:1\r\n```\r\nI hear that Slimerjs has problems with paths, but can't google error like this.\r\n\r\nI use very simple code:\r\n\r\n```javascript\r\ntry {\r\n    var Spooky = require('spooky');\r\n} catch (e) {\r\n    var Spooky = require('../lib/spooky');\r\n}\r\n\r\nvar spooky = new Spooky({\r\n    child: {\r\n        transport: 'http',\r\n        engine: 'slimerjs'\r\n    },\r\n    casper: {\r\n        logLevel: 'debug',\r\n        verbose: true,\r\n        viewportSize: {\r\n            width: 800,\r\n            height: 600\r\n        }\r\n    }\r\n}, function (err) {\r\n    if (err) {\r\n        var e = new Error('Failed to initialize SpookyJS');\r\n        e.details = err;\r\n        throw e;\r\n    }\r\n\r\n    spooky.start(\r\n        'http://en.wikipedia.org/wiki/Spooky_the_Tuff_Little_Ghost');\r\n    spooky.then(function () {\r\n        this.emit('hello', 'Hello, from ' + this.evaluate(function () {\r\n                return document.title;\r\n            }));\r\n\r\n        this.capture('screenshot.png', {\r\n            top: 0,\r\n            left: 0,\r\n            width: 800,\r\n            height:600\r\n        });\r\n\r\n    });\r\n    spooky.run();\r\n});\r\n\r\nspooky.on('error', function (e, stack) {\r\n    console.error(e);\r\n\r\n    if (stack) {\r\n        console.log(stack);\r\n    }\r\n});\r\n\r\n// Uncomment this block to see all of the things Casper has to say.\r\n// There are a lot.\r\n// He has opinions.\r\nspooky.on('console', function (line) {\r\n    console.log(line);\r\n});\r\n\r\nspooky.on('hello', function (greeting) {\r\n    console.log(greeting);\r\n});\r\n\r\nspooky.on('log', function (log) {\r\n    if (log.space === 'remote') {\r\n        console.log(log.message.replace(/ \\- .*/, ''));\r\n    }\r\n});\r\n```\r\n"}}