Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Electron does not start on OSX under Ceramic #49

Closed
svetlyak40wt opened this issue Jan 28, 2017 · 5 comments
Closed

New Electron does not start on OSX under Ceramic #49

svetlyak40wt opened this issue Jan 28, 2017 · 5 comments

Comments

@svetlyak40wt
Copy link

I've updated Electron with (ceramic:setup :force t), because it just showed gray window in a "bundled" version of the app. And now every time when I do (ceramic:start), I see system window saying "Electron quit unexpectedly".

I started to investigate the reason and come to this minimal example, which just starts electron and produces the same error:

(sb-ext:run-program
    "/Users/art/.ceramic/electron/Electron.app/Contents/MacOS/Electron"
    '("https://google.com"))

Process exits with code 6 and no output.

I've tried the same in Python, and it starts as expected, without any errors:

import subprocess
subprocess.check_output(
    ('/Users/art/.ceramic/electron/Electron.app/Contents/MacOS/Electron',
     'https://google.com'))
@svetlyak40wt
Copy link
Author

@eudoxia0 Fernando, do you have any thought why this could be?

@joelreymont
Copy link

joelreymont commented Mar 31, 2017

This works for me

(sb-ext:run-program
    (truename "~/.ceramic/electron/Electron.app/Contents/MacOS/Electron")
    '("https://google.com"))

I do see a bunch of other issues, though

* (ceramic:start)
Ceramic: Starting server...
Ceramic: Starting Electron process...
Ceramic: Waiting for startup...
[warn] kq_init: detected broken kqueue; not using.: Undefined error: 0
[warn] kq_init: detected broken kqueue; not using.: Undefined error: 0
[warn] kq_init: detected broken kqueue; not using.: Undefined error: 0
[warn] kq_init: detected broken kqueue; not using.: Undefined error: 0
127.0.0.1 - [2017-03-31 13:56:42] "GET / HTTP/1.1" 101 0 "-" "-"
Ceramic: Electron started

@svetlyak40wt
Copy link
Author

Hey guys!

I found that if I start emacs end open an emacs shell. Then command "/Users/art/.ceramic/electron/Electron.app/Contents/MacOS/Electron /Users/art/.ceramic/electron/Electron.app/Contents/Resources/default_app/" fails the same way as when it is started from lisp repl.

But if I start lisp repl without emacs, then (ceramic:start) works as expected!

@svetlyak40wt
Copy link
Author

Solved this by starting a lisp with swank as a separate process and connecting to it from the emacs.

@jccerrillo
Copy link

Why does Electrum quit when loading Ceramic from emacs? Would changing emacs or slime/swank configuration fix this?

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

No branches or pull requests

3 participants