Open furuichinaoya opened 2 years ago
I am having the same issue 👀
Me too! This happened to me while I was opening a file that had the same name as another file but belonged to a different project, hope this helps!
fg
what can I do!
I was on Fedora, and I was nit able to paste anything from outside of Atom. When I restarted it, I got that error. 🥺
Has not happened again, but it freezes each time I try to paste text copied from outside of editor.
same thing
Did anyone known how to fix it?
SAME PROBLEM HERE, HOW DO YOU FIX IT?
Hmm, maybe https://www.nerd.vision/post/how-we-solved-a-case-where-indexeddb-did-not-connect could work?
Possible change:
dbOpenRequest.onsuccess = event => {
const db = event.target.result;
db.onversionchange = () => {
this.connected = false;
db.close();
}
this.connected = true;
resolve(dbOpenRequest.result);
};
The MDN docs are quite hard to wade through, and I can't figure where it says this is required, so this is unverified.
Also, this might break some code because there are still references to db
Edit: https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/close
It happened when I already had another index.html file open. I closed the other file and re-opened this and it worked for me.
goddamit i had automatic updates checked and it suddenly updated and now i get this error too
same bug
I set atom as md file default editor. when the atom is opened, I open a exist md file, the bug is occurred.
I think the db file can not be reopened by a new atom instance
@icecream17 I changed my init script according to your suggestion, and I still got an error about IndexedDB after reloading the window and after opening a new window.
It turns out I was running two different versions of Atom at the same time. I don't know how that happened; my guess is that an upgrade happened while I had one window opened, and then I started a new one with the new version by accident. I happened to use GitHub desktop to create a window at some point, so maybe that's related.
Based on a comment on a Nuclide issue, running different Atom versions at once is related to the IndexedDB error.
I closed all instances of Atom, then opened two windows. One of them was started with a project. I have not encountered the IndexedDB issue again.
This happens whenever Atom auto-updates and I open something in WinSCP because WinSCP has to link to the specific version's exe. It's almost like a notice that the editor updated to me. Opening anything in the old version while the new version is also open since 1.58 has resulted in this error.
I'm facing exactly same problem. It started yesterday after I chose Atom as my default editor in winSCP
This happened to me when Atom tried to open a second window/instance.
This happened to me when Atom tried to open a second window/instance.
This happened to me when Atom tried to open a second window/instance.
exactly the same issue.
Same issue here, specifically when opening two different versions of Atom side-by-side.
Opening multiple windows of the same app instance works fine, as does opening windows from two different instances, as long as they are the same version.
Tested with:
Atom: 1.60.0 x64 Electron: 9.4.4 Chrome: 83.0.4103.122 Node: v12.14.1
Atom: 1.61.0-beta0 x64 Electron: 11.4.12 Chrome: 87.0.4280.141 Node: v12.18.3
(OS: macOS 12.1 (M1 Pro chip))
The error is thrown by whichever version is opened second, and the stack trace is slightly different between the two:
v1.60.0:
At undefined
Error: Could not connect to indexedDB
at IDBOpenDBRequest.t.onerror (/Applications/Atom.app/Contents/Resources/app/static/<embedded>:11:289966)
v1.61.0-beta0:
At undefined
Error: Could not connect to indexedDB
at IDBOpenDBRequest.dbOpenRequest.onerror (/app.asar/src/state-store.js:31:20)
This happened to me when Atom tried to open a second window/instance.
This is the same for me as well. Opened a second Atom instance today and the error message popped up.
To my knowledge, This may cause by opening 2 or more instances (process) of Atom, the second Atom instance will get this problem. For example, You already open the file by using Atom then open the different file by using another Atom instance. Some software can cause this problem as well. I got this problem by opening 2 instances of Atom. I think this is not a very serious problem because I don't see anything caused by this issue.
I fail to see any user level procedure to work around this issue (like deleting said indexed db to restart from a fresh start ?)
Is there any such procedure ? Or are we stuck with this problem until the next release (hopefully) ?
(for the record, I am quite a very casual user, I just download the *.deb and install ; there are a bunch of binaries at /usr/share/atom, but nothing editable ; and I didn't see something noteworthy inside $HOME/.atom)
Here the same error. It occurs when I run 'git flow finish release'. When the file to write the release comment is opened, the error occurs.
close atom and try, it should work. It doesn't work if atom is already open.
It seems that I fixed my occurrence of this problem. In short, the indexed db files where owned by root, I chowned them back to my user. Most likely I started an editor as root to do something root related.
cd ~/.config/Atom/IndexedDB/file__0.indexeddb.leveldb #maybe the last part of this path is variable,
# just list the content of IndexedDB to check the actual path
ll *.ldb
I got :
-rw------- 1 root root 2117532 févr. 24 09:29 017396.ldb
-rw------- 1 root root 390430 févr. 24 09:29 017397.ldb
You MUST be able to sudo
If your user/group is foo/bar :
sudo chown foo:bar *.ldb
ll *.ldb
you should get something like :
-rw------- 1 foo bar 2117532 févr. 24 09:29 017396.ldb
-rw------- 1 foo bar 390430 févr. 24 09:29 017397.ldb
It seems that I fixed my occurrence of this problem. In short, the indexed db files where owned by root, I chowned them back to my user. Most likely I started an editor as root to do something root related.
Hm, I'm seeing this issue on my Windows version of Atom. I don't think Atom gets different permssions from the user (me, the only admin) running it. Any ideas on a fix for Windows users?
I have the same issue, when Atom decides to open a new file in a new window instead of a new tab. This is annoing that 9 months passed and still no fix.
OS: Windows 11 x64 Atom: 1.60.0 x64
Unfortunately, it seems likely that this will not receive a fix as Atom has been bought by Microsoft and is being deprecated this month. Your best bet is to switch over to a new text editor, because the Atom project is likely not going to receive any new updates.
If you want a text editor written by the same people that created Atom, you can check out zed.dev: https://news.ycombinator.com/item?id=31669615
[Enter steps to reproduce:]
Atom: 1.59.0 x64 Electron: 9.4.4 OS: macOS 12.0.1 Thrown From: Atom Core
Stack Trace
Could not connect to indexedDB
Commands
Non-Core Packages