Layer missing in layers dialog - known?

Asked by Hachmann

Hi,

I couldn't find this reported anywhere (but you already know my search skills...):

With the file I'm currently working on (http://staging.inkscape.org/en/gallery/item/24/), the layers dialog sometimes doesn't show all layers. I never noticed anything similar before.

The screenshot (http://staging.inkscape.org/en/gallery/item/23/) shows the top layer missing, but it also happened that only three layers were displayed in the dialog, out of 6 or so.

Closing and reopening the dialog does not help.
Adding another layer at the top ('test') does make the previously uppermost layer show up, but then 'test' is missing...

Closing and reopening the file helped.
I did not edit the XML manually.
(Inkscape 0.91 on LM 64bit from official Ubuntu repo)

Is this known? What can I do to help find the cause?
Thank you,
 Regards, Maren

Question information

Language:
English Edit question
Status:
Solved
For:
Inkscape Edit question
Assignee:
No assignee Edit question
Solved by:
Hachmann
Solved:
Last query:
Last reply:
Revision history for this message
su_v (suv-lp) said :
#1

IIRC I have encountered such missing content of lists displayed in a docked dialog too with Inkscape 0.91 (or maybe it was trunk) - haven't figured out what might have triggered it, and which steps made it go away again (I managed to get the missing content - e.g. some or all of the layers - back without quitting and relaunching Inkscape, by - not sure - closing and reopening dialogs, rearranging them in the dock, changing their height (maybe even detaching them), selecting or drawing objects onto layers not listed visible in the dialog, or via XML Editor - I don't really recall the details (and it seems a temporary GUI issue to me, not related to actual loss of data of the drawing content).

Revision history for this message
su_v (suv-lp) said :
#2

I haven't filed a report myself because I usually only do that once I figured out how to consistently reproduce an issue I encounter. But feel free to file a report if you think it's best done early on …

Revision history for this message
Hachmann (marenhachmann) said :
#3

Mmh - if you weren't able to reproduce, than I will have an even harder time... I'll keep my eyes open.
I'll trust your judgement as bug manager as to when to file a bug - that's why I asked here first.

 Thanks!

Revision history for this message
su_v (suv-lp) said :
#4

Haven't been able to reproduce it with your file so far (using 0.91 r13725) - I mostly tested relaunching with different interface/dialog settings (e.g. wrt to session restore) for now, without success. Maybe the trigger after all is more related to editing or layer management than just how the GUI populates the content of dialogs, I can't tell (haven't actually "worked" on the drawing myself).

It would be great if you could keep an eye on this issue (I'll do so too, now that I know it may happen on other systems as well), and attempt to recall the latest actions in case the issue reproduces (and maybe save a copy of the preferences at the state of that session, just in case).

Revision history for this message
su_v (suv-lp) said :
#5

@Hachmann - how many times have you actually experienced this issue?

(just before you refer new Inkscape users asking for very basic help to this question, I 'd rather have more data about how wide-spread these glitches are. Personally, I recall about two or three incidents, max.)

Revision history for this message
su_v (suv-lp) said :
#6

For example, AFAIR this never came up on irc (#inkscape) since the release of 0.91 (I'm usually logged in 24/7). Frequently encountered regressions usually get asked about on irc rather quickly though, especially if they concern very basic GUI elements.

Revision history for this message
Hachmann (marenhachmann) said :
#7

Guess you're right, ~suv - sorry!

Revision history for this message
Hachmann (marenhachmann) said :
#8

(and to answer your question: 3 times with that one file, but concerning different layers)

Revision history for this message
su_v (suv-lp) said :
#9

On 2015-08-04 19:12 (+0200), Hachmann wrote:
> (and to answer your question: 3 times with that one file, but concerning
> different layers)

Do you recall anything common about the steps before that happened? E.g.
having selected one of the objects with a custom swatch color, and then
either changed focus away from canvas (maybe switch focus to a different
docked dialog), or changed selection? One of the things I try to keep an
eye on is any of the automatic resizing of docked dialogs (and relayout
of their widgets to fill the available vertical space) - be they stacked
on top of each other, or aligned in a column in the dock (with or
without a scrollbar appearing for the dock container).

Custom swatches are of interest to me because if the user selects an
object with a fill (or stroke) style, the Fill & Stroke dialog changes
(increases) its minimal height drastically, and shrinks back to minimal
height if the object is deselected, or one with a solid flat fill is
selected instead ...

Revision history for this message
Hachmann (marenhachmann) said :
#10

> Do you recall anything common about the steps before that happened?

No... I don't even think I noticed the missing layers right away - only when I needed them again.

There are a few things I can think of that were different (to how I previously worked with other files) in my use of Inkscape while creating the flyer:

- I canceled layer creation a few times, and sometimes I didn't even look at the screen while creating a layer (and sometimes got sublayers, and wondered why... not sure if I mis-typed or something went wrong)
- once (I think) I accidentally moved a layer to be a sublayer of another one, and then moved it back
- using 'Farbmuster' (custom swatches) (Well, yes. Really. I never thought I'd need them...)

Revision history for this message
su_v (suv-lp) said :
#11

On 2015-08-04 20:51 (+0200), Hachmann wrote:
> (and sometimes got sublayers, and wondered why... not sure if I
> mis-typed or something went wrong)

That happens if you add a new layer while inside a group of the current
layer:

Steps to reproduce:
1) launch inkscape
2) draw two shapes
3) Select all, group (Ctrl+A, Ctrl+G)
4) enter group (Ctrl+Enter, or double-click)
5) add new layer (Shift+Ctrl+N)

The new layer is added as a sibling of the current drawing level i.e. if
you are inside a group, the new layer is created as sibling of that
group (within the current layer), marked with
'inkscape:groupmode="layer"; de-facto a sub-layer of the current layer.

If you are inside deeply nested groups, the sub-layer (just another
group, with the special attribute 'inkscape:groumode="layer"') will
appear to be added somewhere "randomly" within that nested levels of
groups, depending on which one was current when adding the new layer.

IIRC that's not new in Inkscape 0.91, and not the only pitfalls of
treating a entered group as "temporary" layer.

Revision history for this message
Hachmann (marenhachmann) said :
#12

Thanks, that must have been what happened.
I just managed to get an almost unresponsive layers dialog (renaming still worked, but deletion or layer moving with buttons didn't until I closed and reopened the file - and using the drag+drop feature only moved them in the dialog, but not on the canvas...) - but I couldn't get it to not show all layers, what had been the intention of my playing around...