modrinth / code

The Modrinth monorepo containing all code which powers Modrinth!
https://modrinth.com
Other
984 stars 187 forks source link

Migration Error when trying to open the app #2860

Open Sabdot33 opened 3 weeks ago

Sabdot33 commented 3 weeks ago

Please confirm the following.

What version of the Modrinth App are you using?

Latest 0.8.9

What operating systems are you seeing the problem on?

Windows

Describe the bug

Migration Error when trying to open the app

The JS Console says:

index-DhkEVg3T.js:96  Failed to initialize app Objectfield_name: "Theseus"message: "Error while applying migrations: migration 20240930001852 was previously applied but is missing in the resolved migrations"[[Prototype]]: Objectconstructor: ƒ Object()assign: ƒ assign()length: 2name: "assign"arguments: (...)caller: (...)[[Prototype]]: ƒ ()[[Scopes]]: Scopes[0]create: ƒ create()defineProperties: ƒ defineProperties()defineProperty: ƒ defineProperty()entries: ƒ entries()freeze: ƒ freeze()fromEntries: ƒ fromEntries()getOwnPropertyDescriptor: ƒ getOwnPropertyDescriptor()getOwnPropertyDescriptors: ƒ getOwnPropertyDescriptors()getOwnPropertyNames: ƒ getOwnPropertyNames()getOwnPropertySymbols: ƒ getOwnPropertySymbols()getPrototypeOf: ƒ getPrototypeOf()groupBy: ƒ groupBy()hasOwn: ƒ hasOwn()is: ƒ is()isExtensible: ƒ isExtensible()isFrozen: ƒ isFrozen()isSealed: ƒ isSealed()keys: ƒ keys()length: 1name: "Object"preventExtensions: ƒ preventExtensions()prototype: {__defineGetter__: ƒ, __defineSetter__: ƒ, hasOwnProperty: ƒ, __lookupGetter__: ƒ, __lookupSetter__: ƒ, …}seal: ƒ seal()setPrototypeOf: ƒ setPrototypeOf()values: ƒ values()arguments: (...)caller: (...)[[Prototype]]: ƒ ()[[Scopes]]: Scopes[0]hasOwnProperty: ƒ hasOwnProperty()isPrototypeOf: ƒ isPrototypeOf()propertyIsEnumerable: ƒ propertyIsEnumerable()toLocaleString: ƒ toLocaleString()toString: ƒ toString()valueOf: ƒ valueOf()__defineGetter__: ƒ __defineGetter__()__defineSetter__: ƒ __defineSetter__()__lookupGetter__: ƒ __lookupGetter__()__lookupSetter__: ƒ __lookupSetter__()__proto__: (...)get __proto__: ƒ __proto__()set __proto__: ƒ __proto__()
(anonymous) @ index-DhkEVg3T.js:96

Steps to reproduce

I don't know, sometimes it happens, sometimes it does not but a reinstall always fixes it. Also running the app in Administator mode helps but only for the first time. I encounter this issue even when modrinth doesn't update and there is no need for the migration.

Expected behavior

No response

Additional context

i don't know if this helps but i made a heap snapshot. Heap-20241026T152536.txt i couldn't upload it with .heapsnapshot extension.

izmystic commented 3 weeks ago

https://support.modrinth.com/en/articles/9946941-migration-error-during-initialization

Sabdot33 commented 3 weeks ago

https://support.modrinth.com/en/articles/9946941-migration-error-during-initialization

i have seen the article and I don't think that this is my issue because it happens even when i don't update the modrinth app, on the literal same day. and yes the reinstall helps, but i basically have to reinstall the app every 3rd time i want to use it.

I can also rule out that i 100% don't open an older version of modrinth because I always use the shortcut the installer creates on my Desktop.

Minenash commented 3 weeks ago

Does the error show up if you run the exe directly?

Sabdot33 commented 3 weeks ago

Does the error show up if you run the exe directly?

It seems to work like that