GNU bug report logs -
#6155
Crashes on w32 because of bad frame initialization
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 6155 in the body.
You can then email your comments to 6155 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#6155
; Package
emacs
.
(Mon, 10 May 2010 14:16:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Lennart Borgman <lennart.borgman <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Mon, 10 May 2010 14:16:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
I have seen numerous crashes on w32 when a frame has been badly
initialized. I wonder if the problem is that frames can get half
initialized.
In the function Fx_create_frame a bad value coming from a frame
parameter (menu-bar-lines . t) will lead to an error in
x_default_parameter (f, parameters, Qmenu_bar_lines, make_number (1),
"menuBar", "MenuBar", RES_TYPE_NUMBER);
Does not that leave the frame half initialized?
(I am loooking at the code from a trunk checkout done 2010-05-06.)
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#6155
; Package
emacs
.
(Mon, 10 May 2010 15:14:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 6155 <at> debbugs.gnu.org (full text, mbox):
> I have seen numerous crashes on w32 when a frame has been badly
> initialized. I wonder if the problem is that frames can get half
> initialized.
>
> In the function Fx_create_frame a bad value coming from a frame
> parameter (menu-bar-lines . t) will lead to an error in
>
> x_default_parameter (f, parameters, Qmenu_bar_lines, make_number (1),
> "menuBar", "MenuBar", RES_TYPE_NUMBER);
>
> Does not that leave the frame half initialized?
Do you have a recipe to reproduce the problem'
Juanma
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#6155
; Package
emacs
.
(Mon, 10 May 2010 16:02:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 6155 <at> debbugs.gnu.org (full text, mbox):
On Mon, May 10, 2010 at 5:12 PM, Juanma Barranquero <lekktu <at> gmail.com> wrote:
>> I have seen numerous crashes on w32 when a frame has been badly
>> initialized. I wonder if the problem is that frames can get half
>> initialized.
>>
>> In the function Fx_create_frame a bad value coming from a frame
>> parameter (menu-bar-lines . t) will lead to an error in
>>
>> x_default_parameter (f, parameters, Qmenu_bar_lines, make_number (1),
>> "menuBar", "MenuBar", RES_TYPE_NUMBER);
>>
>> Does not that leave the frame half initialized?
>
> Do you have a recipe to reproduce the problem'
I have no exact recipe but I noticed the problem when the above
parameter was in the list of parameters to make frame.
The `t' in (menu-bar-lines . t) shoudld be a number. In make-frame I
got an error and shortly afterwards Emacs crashed.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#6155
; Package
emacs
.
(Mon, 10 May 2010 17:43:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 6155 <at> debbugs.gnu.org (full text, mbox):
On Mon, May 10, 2010 at 18:00, Lennart Borgman
<lennart.borgman <at> gmail.com> wrote:
> The `t' in (menu-bar-lines . t) shoudld be a number. In make-frame I
> got an error and shortly afterwards Emacs crashed.
(progn
(push '(menu-bar-lines . t) default-frame-alist)
(make-frame))
does not fail for me either.
Juanma
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#6155
; Package
emacs
.
(Mon, 10 May 2010 18:56:02 GMT)
Full text and
rfc822 format available.
Message #17 received at 6155 <at> debbugs.gnu.org (full text, mbox):
On Mon, May 10, 2010 at 7:41 PM, Juanma Barranquero <lekktu <at> gmail.com> wrote:
> On Mon, May 10, 2010 at 18:00, Lennart Borgman
> <lennart.borgman <at> gmail.com> wrote:
>
>> The `t' in (menu-bar-lines . t) shoudld be a number. In make-frame I
>> got an error and shortly afterwards Emacs crashed.
>
> (progn
> (push '(menu-bar-lines . t) default-frame-alist)
> (make-frame))
This should perhaps be
(let ((frame-alist (delete '(menu-bar-lines . 1) default-frame-alist)))
(setq frame-alist (cons '(menu-bar-lines . t) frame-alist))
(make-frame frame-alist))
but I do not get an error from that now either. Sigh, I thought I had
tracked down an example that worked. I wonder what is different now.
I will test a bit more.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#6155
; Package
emacs
.
(Mon, 10 May 2010 19:19:01 GMT)
Full text and
rfc822 format available.
Message #20 received at 6155 <at> debbugs.gnu.org (full text, mbox):
> This should perhaps be
No, I don't think it *should*.
> (let ((frame-alist (delete '(menu-bar-lines . 1) default-frame-alist)))
Unnecessary. `assoc' and friends will find the first matching key.
> (setq frame-alist (cons '(menu-bar-lines . t) frame-alist))
Identical to my `push', only I was using `default-frame-alist' (on purpose).
> (make-frame frame-alist))
Unnecessary in my example. `make-frame' already uses `default-frame-alist'.
Please try
(let ((default-frame-alist default-frame-alist))
(push '(menu-bar-lines . 0) default-frame-alist)
(make-frame))
to see that it works.
Juanma
Reply sent
to
Glenn Morris <rgm <at> gnu.org>
:
You have taken responsibility.
(Mon, 11 Jul 2011 23:17:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Lennart Borgman <lennart.borgman <at> gmail.com>
:
bug acknowledged by developer.
(Mon, 11 Jul 2011 23:17:03 GMT)
Full text and
rfc822 format available.
Message #25 received at 6155-done <at> debbugs.gnu.org (full text, mbox):
In the absence of a recipe to reproduce the issue or a backtrace from a
crash (from a vanilla Emacs with debugging info) I don't think anything
can be done. Please reopen or reply to this report if you get either of
those.
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#6155
; Package
emacs
.
(Tue, 12 Jul 2011 10:24:02 GMT)
Full text and
rfc822 format available.
Message #28 received at 6155 <at> debbugs.gnu.org (full text, mbox):
On Tue, Jul 12, 2011 at 01:16, Glenn Morris <rgm <at> gnu.org> wrote:
>
> In the absence of a recipe to reproduce the issue or a backtrace from a
> crash (from a vanilla Emacs with debugging info) I don't think anything
> can be done. Please reopen or reply to this report if you get either of
> those.
I have not gone this crash any more. Perhaps it was related to one of
the other bug reports about frames. I think I fixed some system call
there, but I do not remember any more.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 09 Aug 2011 11:24:06 GMT)
Full text and
rfc822 format available.
This bug report was last modified 13 years and 319 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.