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

Can't open a Realm that has asymmetric tables #1591

Closed
nirinchev opened this issue Sep 7, 2023 · 0 comments · Fixed by #1592
Closed

Can't open a Realm that has asymmetric tables #1591

nirinchev opened this issue Sep 7, 2023 · 0 comments · Fixed by #1592
Assignees

Comments

@nirinchev
Copy link
Member

Describe the bug
Studio errors out when opening a Realm with asymmetric tables.

To Reproduce
Steps to reproduce the behavior:

  1. Create a FLX Realm using any SDK.
  2. Add an asymmetric model.
  3. Try to open the Realm file using Studio.

Expected behavior
Studio opens and works fine.

Screenshots

Screenshot 2023-09-07 at 13 12 18

Versions:

  • OS: Windows
  • Studio Version: 14.0.3

Additional context
This is the stacktrace I get:

Error: You cannot query an asymmetric class.
    at getSchemaLength (file:///C:/Program%20Files/Realm%20Studio/resources/app.asar/build/realm-browser.renderer.bundle.js:1:512748)
    at file:///C:/Program%20Files/Realm%20Studio/resources/app.asar/build/realm-browser.renderer.bundle.js:1:500716
    at Array.map (<anonymous>)
    at ht (file:///C:/Program%20Files/Realm%20Studio/resources/app.asar/build/realm-browser.renderer.bundle.js:1:500168)
    at renderWithHooks (C:\Program Files\Realm Studio\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:14803:18)
    at updateFunctionComponent (C:\Program Files\Realm Studio\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:17034:20)
    at beginWork (C:\Program Files\Realm Studio\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:18610:16)
    at HTMLUnknownElement.callCallback (C:\Program Files\Realm Studio\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:188:14)
    at HTMLUnknownElement.sentryWrapped (C:\Program Files\Realm Studio\resources\app.asar\node_modules\@sentry\browser\cjs\helpers.js:92:17)
    at Object.invokeGuardedCallbackDev (C:\Program Files\Realm Studio\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:237:16)
    at invokeGuardedCallback (C:\Program Files\Realm Studio\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:292:31)
    at beginWork$1 (C:\Program Files\Realm Studio\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:23203:7)
    at performUnitOfWork (C:\Program Files\Realm Studio\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:22157:12)
    at workLoopSync (C:\Program Files\Realm Studio\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:22130:22)
    at performSyncWorkOnRoot (C:\Program Files\Realm Studio\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:21756:9)
    at C:\Program Files\Realm Studio\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:11089:24
    at unstable_runWithPriority (C:\Program Files\Realm Studio\resources\app.asar\node_modules\scheduler\cjs\scheduler.development.js:653:12)
    at runWithPriority$1 (C:\Program Files\Realm Studio\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:11039:10)
    at flushSyncCallbackQueueImpl (C:\Program Files\Realm Studio\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:11084:7)
    at flushSyncCallbackQueue (C:\Program Files\Realm Studio\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:11072:3)
    at scheduleUpdateOnFiber (C:\Program Files\Realm Studio\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:21199:9)
    at Object.enqueueSetState (C:\Program Files\Realm Studio\resources\app.asar\node_modules\react-dom\cjs\react-dom.development.js:12639:5)
    at Component.setState (C:\Program Files\Realm Studio\resources\app.asar\node_modules\react\cjs\react.development.js:471:16)
    at zt.onRealmLoaded (file:///C:/Program%20Files/Realm%20Studio/resources/app.asar/build/realm-browser.renderer.bundle.js:1:509038)
    at zt.loadRealm (file:///C:/Program%20Files/Realm%20Studio/resources/app.asar/build/754.renderer.bundle.js:1:166602)
    in ht (created by wt)
    in wt (created by Bt)
    in div (created by Bt)
    in Bt (created by zt)
    in zt (created by G)
    in G
    in q
@nirinchev nirinchev self-assigned this Sep 7, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant