On 09/28/2018 11:01 PM, Scott Kostyshak wrote:
> If I do the following, I get a "Unassigned buffer_ member" message:
>
> 1. Start a display math mode.
> 2. Paste the following into it x=\frac{1}{2}.
> 3. Do Ctrl + Return.
> 4. Execute 'tabular-feature copy-row'.
> 5. Press <Down> (to move to the second row).
> 6. Press <Left> (to move to the left of the "1").
>
> I get the following in the terminal:
>
>   Unassigned buffer_ member in Inset::dispatch()
>   LyX Code: 78 name: mathnest
>
> Can anyone else reproduce?
>
> The attached patch fixes it (i.e., no message), but I have no idea what
> I'm doing. Hopefully it provides a clue for the correct fix.

There are some known issues about math insets and buffer_ pointers we've
never sorted out. This OUGHT to be set somewhere near creation of the
inset. The message has the status of a warning. But this problem can
lead to a crash: See Inset::buffer(). So maybe it would be worth
committing your patch, but with a corresponding warning such as:
    LYXERR0("Unassigned buffer_ detected in InsetMathGrid::doDispatch.");
It has proven very hard to fix these kinds of bugs properly.

Riki

Reply via email to