Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Although your browser supports IndexedDB, DevDocs couldn't open the database. #584

Open
edouard-lopez opened this issue Feb 16, 2017 · 18 comments
Labels

Comments

@edouard-lopez
Copy link

edouard-lopez commented Feb 16, 2017

Can't get it to works, I tried to enable some option without success (didn't restart)

selection_004

Env

Firefox 52.0b6 (64-bit)

Question

Could you tell me what option are relevant here?

@Hamza5
Copy link

Hamza5 commented Feb 19, 2017

This problem happens to me also from time to time ! Firefox clearly shows that devdocs.io is storing some offline data, but DevDocs still complaining about his database.

@xgears
Copy link

xgears commented Feb 23, 2017

Been having this issue also from FF49 with all the relevant settings ticked. Tried a couple of things such as removing all database data, app.db.reset(), nothing seems to work.
screenshot-devdocs io 2017-02-23 09-57-13

@adelowo
Copy link

adelowo commented Feb 27, 2017

I also have this issue.. Well, i always have this issue on firefox, #403 helps me out a lot of time

@Thibaut
Copy link
Member

Thibaut commented Mar 1, 2017

Haven't had a chance to investigate this yet. I'll give it a go soon.

Unfortunately without being able to replicate (even though I use Firefox as my main browser), it's a hard one. I've been fighting browser bugs in IndexedDB since I first started using IDB in DevDocs, and this bears all the hallmarks of a browser bug…

To help debug, please run indexedDB.open('docs') in the console and post a screenshot of the result.

@Hamza5
Copy link

Hamza5 commented Mar 1, 2017

After the last update, It is working now, thanks 😄.

Here is the output of your instruction :

IDBOpenDBRequest { onblocked: null, onupgradeneeded: null, source: null, transaction: null, readyState: "pending", onsuccess: null, onerror: null }

@Thibaut
Copy link
Member

Thibaut commented Mar 6, 2017

@edouard-lopez @xgears could you reload/update DevDocs and post a screenshot of the offline page please? The error page should now say what actual error occurred when trying to open the database.

@xgears
Copy link

xgears commented Mar 10, 2017

@Thibaut
screen shot 2017-03-09 at 23 53 50-fullpage

Console errors:
IDB error DOMError { name: "UnknownError", message: "The operation failed for reasons un…" }

IDBOpenDBRequest { onblocked: null, onupgradeneeded: null, source: null, transaction: null, readyState: "pending", onsuccess: null, onerror: null }

I can also see enabled entries in "Local Storage" but nothing under "Indexed DB"

@Thibaut
Copy link
Member

Thibaut commented Mar 12, 2017

@xgears Thanks for the info. Do you have multiple versions of Firefox installed on your system?

@xgears
Copy link

xgears commented Mar 13, 2017

@Thibaut Not until recently; I've been using Firefox Developer Edition few weeks now which seems to work fine, the issue however still persist on the default Firefox.
Been using devdocs from somewhere around FF30+, the issue started, if i remember correctly between FF48-FF49

@edouard-lopez
Copy link
Author

Same error, I'm now on Firefox 53.0b1 (desktop).

screen shot 2017-03-14 at 14 06 55

I did run firefox-52.0a2.en-US.linux-x86_64.tar.bz2 to test lesspass.com addon otherwise I use a single firefox version.

@scheinercc
Copy link

Note: Although I still see the same error on current DevEdition 54.0a2 (2017-04-18) (64-bit) it is now working on Nightly 55.0a1 (2017-04-23) (64-bit) for me.

@clarkbw
Copy link

clarkbw commented May 22, 2017

I'm seeing this right now. I've tried Nightly and I can't quite reproduce it yet, but on DevEdition 54 I'm not able to use the offline mode. Here's the stack trace I get in the console:

IDB error DOMError { name: "UnknownError", message: "The operation failed for reasons un…" }  application.js:7339:11
	DB.prototype.fail http://localhost:9292/assets/application.js:7339:11
	DB.prototype.onOpenError http://localhost:9292/assets/application.js:7328:11
	bind/< http://localhost:9292/assets/application.js:7248:58
	(Async: EventHandlerNonNull)
	DB.prototype.db http://localhost:9292/assets/application.js:7282:9
	DB.prototype.versions http://localhost:9292/assets/application.js:7570:14
	Docs.prototype.getInstallStatuses http://localhost:9292/assets/application.js:9021:7
	Docs.prototype.updateInBackground http://localhost:9292/assets/application.js:9055:7
	UpdateChecker.prototype.checkDocs http://localhost:9292/assets/application.js:8785:9
	bind/< http://localhost:9292/assets/application.js:8745:58
	(Async: setTimeout handler)
	UpdateChecker http://localhost:9292/assets/application.js:8756:7
	welcomeBack http://localhost:9292/assets/application.js:6985:35
	start/</< http://localhost:9292/assets/application.js:6903:13
	(Async: setTimeout handler)
	start http://localhost:9292/assets/application.js:6900:7
	app.start http://localhost:9292/assets/debug.js:24:5
	(Async: setTimeout handler)
	Doc.prototype._loadFromCache http://localhost:9292/assets/application.js:9286:7
	Doc.prototype.load http://localhost:9292/assets/application.js:9252:32
	Docs.prototype.load/next</< http://localhost:9292/assets/application.js:8975:13
	Doc.prototype._loadFromCache/callback</< http://localhost:9292/assets/application.js:9283:11
	(Async: setTimeout handler)
	Doc.prototype._loadFromCache http://localhost:9292/assets/application.js:9286:7
	Doc.prototype.load http://localhost:9292/assets/application.js:9252:32
	Docs.prototype.load/next</< http://localhost:9292/assets/application.js:8975:13
	Docs.prototype.load http://localhost:9292/assets/application.js:8992:9
	bootAll http://localhost:9292/assets/application.js:6874:7
	init http://localhost:9292/assets/application.js:6793:9
	app.init http://localhost:9292/assets/debug.js:14:5
	(Async: EventListener.handleEvent)
	<anonymous> http://localhost:9292/assets/application.js:14475:3
	<anonymous> http://localhost:9292/assets/application.js:14463:2

There are no source maps available so its hard to know what the cause is, I'm trying to dig further into it now.

@Thibaut
Copy link
Member

Thibaut commented May 22, 2017

@clarkbw it's on my list to take another look at this. Haven't had time yet. If you manage to isolate replication steps, that'd be very useful. I use Firefox (Beta, so same as DevEdition now) every day but have never been able to replicate.

I suspect it's a browser bug, since the error (UnknownError) is un-descriptive and seems to point to an internal problem.

@clarkbw
Copy link

clarkbw commented May 23, 2017

I suspect it's a browser bug

I think you're right, it so far has the un-re-producible-ness of a browser bug

@clarkbw
Copy link

clarkbw commented May 24, 2017

I filed bug 1367539 to track this, we'll see if anyone else finds anything here.

@xgears
Copy link

xgears commented Jun 11, 2017

@Thibaut using a new profile seems to fix the issue, I'm assuming the error has to do with a pref/user/default setting
FYI: firefox -P > Create Profile

@clarkbw
Copy link

clarkbw commented Jun 11, 2017

According to the investigation in the bug this was a problem related to running different versions of Firefox in the same profile.

@clarkbw
Copy link

clarkbw commented Jun 11, 2017

Other errors could be different of course.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants