Glyphs file fails to open

When opening it states: “The document could not be opened. Problem with file at line 37941” … I also tried Opt-Shift opening, but it also fails.

I’m running Glyphs 3.0.4 (3098) on MacOS Mojave 10.14.6

I had just duplicated a single master, and I suddenly noticed the lowercase ‘a’ somehow had become incompatible (I hadn’t even made any changes to the duplicate). I thought it’d be a bug, so I shut down Glyphs to reopen the file, but it’s now stuck on the error notification.

Can you open the .glyphs file in a text editor (e.g. Textmate or Sublime Text) and check what you find at line 37941?

unicode = 54;

And the few lines before this?

closed = 1;
nodes = (
(286,421,l),
(286,449,ls),
(286,554,o),
(235,597,o),
(156,597,cs),
(75,597,o),
(21,553,o),
(21,456,cs),
(21,430,l),
(121,430,l),
(121,462,ls),
(121,489,o),
(135,501,o),
(157,501,cs),
(178,501,o),
(189,488,o),
(189,462,cs),
(189,421,l)
);
}
);
width = 307;
}
);
metricLeft = //O;
metricRight = //O;
unicode = 54;

Remove the two lines just above the Unicode line.

Thank you, I can open it now!