App is gagging and spitting random characters

Steps to reproduce

Type.

Expected result

The text I just typed to show up.

Actual result

Every 10 - 30 seconds or so while typing, the app will gag. The word I just typed will disappear and random characters will show up.

I noticed that if I type ⌘Z a couple of times to undo, it will erase each character and right before the gagging point it will go to the top of the document and then back after I undo another time.

Environment

  • Operating system: MacOS Catalina 10.15.3
  • Obsidian version: 0.6.7
  • Using custom CSS: Yes, but doesn’t seem to be related as it has happened with various custom css

Additional information

Autocorrect in MacOS configs is off.

It looks related to some kind of autosave mechanism.

it would be really helpful if you could give us some more info on how to trigger the issue.

The autosave is every 2 seconds.
Can you make a video?

Here it is

Notice how the letter c disappears. After that I started pressing ⌘Z. As you can see it goes to the top of the document and then back down again.

This time no random characters appeared. But this is not always the case.

Thank you. It’s indeed very odd behaviour. Can you share the file you are working on? (on dropbox or some place similar). Perhaps there’s something that triggers the text editor in some weird way.

I will DM the file.

Just to try to pinpoint the issue, things you can try.

  1. Do you have a sync or encryption service active on background? If so try to disable them.
  2. can think of something in the background that is reading/writing/monitoring the vault?
  3. Rename the file title so it contains only ascii character (remove the -o), does it help?
  4. Do you have a text expander that might be triggered somehow?

There was, but I deactivated it earlier.

None.

I will try that, but this seems an odd solution that would be impracticable for the other +2000 files I have in the vault.

I have typinator. I remember closing it yesterday and still having issues, but I will double check on that.

there is an issue we have with unicode characters in the title that we fixed in 0.7.
That is why I asked to rename.

if you press ctrl/cmd-shift-i, does the console report any error?

Just something that seems unrelated

ase insensitive
app.js:1 Uncaught TypeError: Cannot read property 'type' of undefined
    at Array.<anonymous> (app.js:1)
    at nt.process (app.js:1)
    at Kt.parse (app.js:1)
    at self.onmessage (app.js:1)
2raw.githubusercontent.com/deathau/Notation-for-Obsidian/master/obsidian.css:1 Failed to load resource: the server responded with a status of 502 (Bad Gateway)
DevTools failed to parse SourceMap: app://obsidian.md/pixi.min.js.map

This showed up when I renamed the file

Uncaught (in promise) TypeError: Cannot read property 'type' of undefined
    at F.<anonymous> (app.js:1)
    at app.js:1
    at Object.next (app.js:1)
    at r (app.js:1)
(anonymous) @ app.js:1
(anonymous) @ app.js:1
(anonymous) @ app.js:1
r @ app.js:1
Promise.then (async)
o @ app.js:1
(anonymous) @ app.js:1
ba @ app.js:1
(anonymous) @ app.js:1

ok do you still have the bug after you rename the file?

So far, so good!

Ok, if that solves, you will be all set with 0.7.

1 Like