-
Notifications
You must be signed in to change notification settings - Fork 15
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
hook to server-after-make-frame-hook
seems not work on first frame
#6
Comments
I got another strange crash with following normal config:
If I run Emacs to open a file, for example It is wired and I don't have any idea on why it crash, if you need more info to debug, just ask me and I will provide, thanks! |
Oh, I forget to attach the output when Emacs crash:
|
A segfault is quite unexpected. I appreciate your help debugging this. I'm afraid I can't understand the sequence of steps which works, and the sequence which doesn't work. Can you isolate this down to the minimum required steps and report back? BTW, does indent-bars work normally for you with your PGTK build, when you open a file normally with find-file? Can you post an image of indent-bars working in that setting? Others have reported anomalies with PGTK's stipple support. |
Another thing to try: remove all the indent-bars config, and try something simple: ((add-hook 'prog-mode-hook (lambda () (cons (frame-char-width) (frame-char-height)))) Does this show the same segfault behavior via emacsclient? |
OK, I tried to reproduce it minimally. First create a minimal
Then, run
If only load it as init file, but do not open any file (just run
No, I got the same bug with #3. |
This won't crash, both daemon and normal. |
For Emacs daemon, still with this minimal
and run
|
Thanks for the reproducers. Unfortunately I cannot reproduce the problem on this end on emacs-mac (though Maybe try to add |
Functions in the crash output really looks like what has been mentioned in https://debbugs.gnu.org/cgi/bugreport.cgi?bug=64969, so maybe we could just wait for the PGTK issue being fixed and then see if this bug is fixed. |
Perhaps it is just drawing stipples overall that is the problem, i.e. their display is corrupted in some cases, but cause actual crashes in others. Does the simple test (omitting any mention of indent-bars), crash when loaded from file as you do now? I'll leave this open in case other experience this crash and can help identify the culprit. |
No, it does not crash. |
Hmm. In that case it may be valuable to bisect the setup function and isolate which particular call is causing the crash. |
With the latest commit on Emacs master that fix stripe on PGTK (emacs-mirror/emacs@74d6604), my Emacs won't crash, but instead the newly created frame will close. Reproduce step: Create
Start daemon with Then open a file with But if run Error output:
|
Great, so the crash was indeed related to the @AlynxZhou I suppose you tried opening multiple frames without having loaded @magthe, could you assist here? The hope is to reproduce this 2nd-frame-quickly-closing behavior, then bisect |
Yes. |
OK, thanks. I'll leave this open for a bit in case anyone wants to bisect |
With |
I can't seem to reproduce this behaviour. The steps I take:
What I end up with is two Emacs frames
The version of |
That's the difference, you need to |
Thanks for checking @magthe. Does |
Just a reminder that |
Yes, that gave the same behaviour. |
Thanks for checking. So to confirm, not exhibiting @AlynxZhou's problem? |
Indeed, sorry to express myself a bit unclearly. I don't see the @AlynxZhou describes at all. |
OK, thanks, sounds like a configuration or build problem then. |
With such config:
and run
emacsclient --create-frame --alternate-editor="" init.el
(which will first start the daemon then openinit.el
, I see no bars in this file. And if I close this frame, and open another file withemacsclient --create-frame early-init.el
, it will show bars correctly.However, if I open
init.el
again withemacsclient --create-frame init.el
, Emacs daemon will crash.I am using PGTK Emacs 30, not sure whether it is related or not.
Maybe this package should handle frame open or not internally? Currently I cannot simply hook it, because if I only hook
server-after-make-frame-hook
, I cannot make it work on normal Emacs (not a daemon), but if I directly hook it withprog-mode-hook
, then normal Emacs works but Emacs daemon will crash.The text was updated successfully, but these errors were encountered: