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

[Bug] Cache/IndexedDB Data has been Corrupted After a OS Freeze #233

Open
metapea opened this issue Apr 16, 2024 · 3 comments
Open

[Bug] Cache/IndexedDB Data has been Corrupted After a OS Freeze #233

metapea opened this issue Apr 16, 2024 · 3 comments

Comments

@metapea
Copy link

metapea commented Apr 16, 2024

After a OS crash freeze/reboot (when deleting a image, right before the crash), Artbot's cache for the newer generated images have been corrupted. The site reset the positive and negative prompts (when "preserve prompt" was on) and made the images tab inaccessible:
images tab.webm
Unless you change it to "Sort by Oldest", then it works until you go to the final page:
page
Since i can download images "751-775" and not the rest of the newer images:
751-775
images.webm
I'm sure only one of the cache images needs to be deleted, but i no way to access them.
Can you add a auto-delete for any corrupted cache image or a way to look into my cache images, so i can manually deleted them.
Edit: It's seems to be the whole site since Image Queue/Pending History is also gone and the text2img filter in images isn't working as well.

@metapea
Copy link
Author

metapea commented Apr 16, 2024

Here's the error .js:
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7601],{62601:function(e,t,r){"use strict";var n,o;e.exports=(null==(n=r.g.process)?void 0:n.env)&&"object"==typeof(null==(o=r.g.process)?void 0:o.env)?r.g.process:r(58960)},24290:function(e,t,r){Promise.resolve().then(r.bind(r,40910))},74942:function(e,t,r){let n=r(62601).env.BASE_PATH||"/artbot";e.exports={baseHost:"https://tinybots.net",basePath:n}},6001:function(e,t,r){"use strict";var n=r(57437),o=r(61396),i=r.n(o),s=r(81705),c=r.n(s);t.Z=e=>{let{disableLinkClick:t=!1,inline:r,onClick:o=()=>{},...s}=e,u={};r&&(u.display="inline-block");let a="";return e.href&&0===e.href.indexOf("https://")&&0!==e.href.indexOf("https://tinybots.net")&&(a="_blank"),(0,n.jsx)(i(),{className:c().Linker,target:a,...s,onClick:e=>{t&&(e.preventDefault(),e.stopPropagation()),o()},style:{cursor:"pointer",...u}})}},29612:function(e,t,r){"use strict";var n=r(57437),o=r(9488),i=r.n(o),s=r(57042);t.Z=e=>{let{className:t,children:r,justify:o,margin:c,max:u,style:a}=e,l={...a};return o&&(l.justifyContent=o),c&&(l.margin=c),u&&(l.maxWidth=u),(0,n.jsx)("div",{className:(0,s.Z)(t,i().MaxWidth),style:l,children:r})}},43874:function(e,t,r){"use strict";r.d(t,{Z:function(){return s}});var n=r(57437),o=r(62832),i=r.n(o);function s(e){let{as:t="h1",children:r,style:o}=e;return(0,n.jsx)(t,{className:i().pageTitle,style:o,children:r})}},40910:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return p}});var n=r(57437),o=r(2265),i=r(43874),s=r(6001),c=r(36130),u=r.n(c),a=e=>{let{children:t,style:r}=e;return(0,n.jsx)("div",{className:u().ContentWrapper,style:r,children:t})},l=r(29612),f=r(74942);function p(e){let{error:t}=e;return(0,o.useEffect)(()=>{console.error(t)},[t]),(0,n.jsx)(a,{children:(0,n.jsxs)(l.Z,{children:[(0,n.jsx)(i.Z,{children:"An unexpected error has occurred."}),(0,n.jsx)("div",{className:"mb-[8px]",children:"ArtBot encountered an error while attempting to process this request."}),(0,n.jsx)("div",{className:"mb-[8px]",children:"Otherwise, this is probably Dave's fault. An error log has automatically been created."}),(0,n.jsxs)("div",{className:"mb-[8px]",children:["Please hit the"," ",(0,n.jsx)(s.Z,{href:"".concat(f.basePath,"/contact"),children:"contact form"})," if you'd like to provide more information about what happened or"," ",(0,n.jsx)(s.Z,{href:"https://discord.com/channels/781145214752129095/1107628882783391744",target:"_blank",rel:"noopener noreferrer",children:"visit the ArtBot channel"})," ","on the"," ",(0,n.jsx)(s.Z,{href:"https://discord.gg/3DxrhksKzn",target:"_blank",rel:"noreferrer",children:"Stable Horde Discord server"})," ","."]})]})})}},36130:function(e){e.exports={ContentWrapper:"contentWrapper_ContentWrapper__yvsaq"}},81705:function(e){e.exports={Linker:"component_Linker__eTQsS"}},9488:function(e){e.exports={MaxWidth:"maxWidth_MaxWidth__bjuYO"}},62832:function(e){e.exports={pageTitle:"pageTitle_pageTitle__zKih3"}},58960:function(e){!function(){var t={229:function(e){var t,r,n,o=e.exports={};function i(){throw Error("setTimeout has not been defined")}function s(){throw Error("clearTimeout has not been defined")}function c(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(e){r=s}}();var u=[],a=!1,l=-1;function f(){a&&n&&(a=!1,n.length?u=n.concat(u):l=-1,u.length&&p())}function p(){if(!a){var e=c(f);a=!0;for(var t=u.length;t;){for(n=u,u=[];++l<t;)n&&n[l].run();l=-1,t=u.length}n=null,a=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function d(){}o.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];u.push(new h(e,t)),1!==u.length||a||c(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=d,o.addListener=d,o.once=d,o.off=d,o.removeListener=d,o.removeAllListeners=d,o.emit=d,o.prependListener=d,o.prependOnceListener=d,o.listeners=function(e){return[]},o.binding=function(e){throw Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw Error("process.chdir is not supported")},o.umask=function(){return 0}}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var i=r[e]={exports:{}},s=!0;try{t[e](i,i.exports,n),s=!1}finally{s&&delete r[e]}return i.exports}n.ab="//";var o=n(229);e.exports=o}()},30622:function(e,t,r){"use strict";var n=r(2265),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,c=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function a(e,t,r){var n,i={},a=null,l=null;for(n in void 0!==r&&(a=""+r),void 0!==t.key&&(a=""+t.key),void 0!==t.ref&&(l=t.ref),t)s.call(t,n)&&!u.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===i[n]&&(i[n]=t[n]);return{$$typeof:o,type:e,key:a,ref:l,props:i,_owner:c.current}}t.Fragment=i,t.jsx=a,t.jsxs=a},57437:function(e,t,r){"use strict";e.exports=r(30622)},57042:function(e,t,r){"use strict";t.Z=function(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=function e(t){var r,n,o="";if("string"==typeof t||"number"==typeof t)o+=t;else if("object"==typeof t){if(Array.isArray(t))for(r=0;r<t.length;r++)t[r]&&(n=e(t[r]))&&(o&&(o+=" "),o+=n);else for(r in t)t[r]&&(o&&(o+=" "),o+=r)}return o}(e))&&(n&&(n+=" "),n+=t);return n}}},function(e){e.O(0,[1396,2971,4938,1744],function(){return e(e.s=24290)}),_N_E=e.O()}]);
There's two errors in inspect :
Screenshot2024
Screenshot2024
This is the activity in network on the images page:
Screenshot_573
Screenshot_575
Screenshot_574

@metapea
Copy link
Author

metapea commented Apr 20, 2024

Here are the two .js files that were errors in inspect, i couldn't upload the .js files.
layout. js:
layout.txt

and page.js:
page.txt

log:

4459-cfc87038641773f6.js:10 [react-tooltip] "#34zFXv" is not a valid CSS selector
(anonymous) @ 4459-cfc87038641773f6.js:10
137-5a4d99af557d5dca.js:1 Error: ninner: DOMException: Failed to read large IndexedDB valuemessage: "Failed to read large IndexedDB value\n DataError: Failed to read large IndexedDB value"name: "DataError"_e: Error
    at K (https://tinybots.net/artbot/_next/static/chunks/5585-b9fd1d96854a55b4.js:27:9977)
    at new n (https://tinybots.net/artbot/_next/static/chunks/5585-b9fd1d96854a55b4.js:27:11587)
    at ek.rejectionMapper (https://tinybots.net/artbot/_next/static/chunks/5585-b9fd1d96854a55b4.js:27:79327)
    at ej (https://tinybots.net/artbot/_next/static/chunks/5585-b9fd1d96854a55b4.js:27:15643)
    at IDBRequest.<anonymous> (https://tinybots.net/artbot/_next/static/chunks/5585-b9fd1d96854a55b4.js:27:42063)
    at IDBRequest.<anonymous> (https://tinybots.net/artbot/_next/static/chunks/5585-b9fd1d96854a55b4.js:27:17147)stack: (...)[[Prototype]]: X
137-5a4d99af557d5dca.js:1 Error: ninner: DOMException: Failed to read large IndexedDB valuemessage: "Failed to read large IndexedDB value\n DataError: Failed to read large IndexedDB value"name: "DataError"_e: Error
    at K (https://tinybots.net/artbot/_next/static/chunks/5585-b9fd1d96854a55b4.js:27:9977)
    at new n (https://tinybots.net/artbot/_next/static/chunks/5585-b9fd1d96854a55b4.js:27:11587)
    at ek.rejectionMapper (https://tinybots.net/artbot/_next/static/chunks/5585-b9fd1d96854a55b4.js:27:79327)
    at ej (https://tinybots.net/artbot/_next/static/chunks/5585-b9fd1d96854a55b4.js:27:15643)
    at IDBRequest.<anonymous> (https://tinybots.net/artbot/_next/static/chunks/5585-b9fd1d96854a55b4.js:27:42063)
    at IDBRequest.<anonymous> (https://tinybots.net/artbot/_next/static/chunks/5585-b9fd1d96854a55b4.js:27:17147)stack: (...)[[Prototype]]: X
137-5a4d99af557d5dca.js:1 Error: n
page-da2e0e1c17cdd8b5.js:1 Uncaught (in promise) ninner: DOMException: Failed to read large IndexedDB valuemessage: "Failed to read large IndexedDB value\n DataError: Failed to read large IndexedDB value"name: "DataError"_e: Error
    at K (https://tinybots.net/artbot/_next/static/chunks/5585-b9fd1d96854a55b4.js:27:9977)
    at new n (https://tinybots.net/artbot/_next/static/chunks/5585-b9fd1d96854a55b4.js:27:11587)
    at ek.rejectionMapper (https://tinybots.net/artbot/_next/static/chunks/5585-b9fd1d96854a55b4.js:27:79327)
    at ej (https://tinybots.net/artbot/_next/static/chunks/5585-b9fd1d96854a55b4.js:27:15643)
    at IDBRequest.<anonymous> (https://tinybots.net/artbot/_next/static/chunks/5585-b9fd1d96854a55b4.js:27:42063)
    at IDBRequest.<anonymous> (https://tinybots.net/artbot/_next/static/chunks/5585-b9fd1d96854a55b4.js:27:17147)stack: (...)[[Prototype]]: X

Update: I copy and pasted the two .js code into separate .txt to compact the comment since the two .js files were long
Update 2: After looking around in inspect, IndexedDB seem to one with corrupted data, similar to the images page, image 1 - 749's data seems to be fine, but when you go to the last page there's nothing:
Screenshot 2024-05-01 9 36 38 AM
Screenshot 2024-05-01 9 40 22 AM

@metapea metapea changed the title [Bug] Cache Data has been Corrupted After a OS Freeze [Bug] Cache/IndexedDB Data has been Corrupted After a OS Freeze May 1, 2024
@metapea
Copy link
Author

metapea commented Jun 23, 2024

Also, since I've had this bug, i can't generate anything as i keep getting this error so far:
S2

Also parentjobid can access the images after 749, but not jobid or timestamp:
S

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

No branches or pull requests

1 participant