Giter Site home page Giter Site logo

Comments (17)

TimOliver avatar TimOliver commented on July 19, 2024

Hi Mark!

Thanks for moving the issue over here from the realm-cocoa repo!

I just had a look at those .realm files and they don't seem right. 4KB is too small, and when I opened them up in a hex editor, half of the bits in there were all zeros.

I'm getting the feeling that it's not specifically a problem with Realm Browser (Which is presently using the latest version of Realm Objective-C), but it looks like something might be happening in your app that's causing writes to the Realm files to become incomplete.

Are you able to post any of your app's Realm code here so I can see if there's anything that might be causing that?

Thanks!

from realm-browser-osx.

mark-anders avatar mark-anders commented on July 19, 2024

Hi Tim! Here are 2 links. The first is to a test project that illustrates the problem. Unzip it, run "pod install" and open the workspace. It's pretty simple. All the code is in the App Delegate.

I've also included a link to database that it created, which like the others is invalid.

https://www.dropbox.com/s/05u2vzcf12emz2o/Realmbug.zip?dl=0
https://www.dropbox.com/s/t3wat0aymvnuaac/Realmbug.realm?dl=0

Hope that helps!

from realm-browser-osx.

 avatar commented on July 19, 2024

I have the same problem.swift2.0 realmswift .
i can read and query in the code ,but can not open the realm file.

from realm-browser-osx.

TimOliver avatar TimOliver commented on July 19, 2024

Thanks a lot for that guys! I had a chat with the other engineers and then just confirmed the build for myself.

You might have uncovered a case we hadn't discovered yet where the Swift 2.0 branch of Realm is producing .realm files that are sufficiently different that the Objective-C version of Realm inside the Realm Browser is unable to read them.

Thanks for letting us know about this! We'll be following this up to ensure that the .realm files produced by the different bindings are kept consistent!

(On a sidenote, once you've updated to Xcode 7 beta 4, make sure you clear out and re-get the Swift 2.0 branch from CocoaPods. That sample app didn't initially work for me because of some new changes in Swift!)

from realm-browser-osx.

Fab1n avatar Fab1n commented on July 19, 2024

Any progress on that? We have the same issue there!!!

from realm-browser-osx.

jpsim avatar jpsim commented on July 19, 2024

tl;dr; we're working to cut an official release of core as soon as possible with the new file format disabled

I posted an update on this yesterday in the realm-cocoa mailing list: https://groups.google.com/d/msg/realm-cocoa/nllwT4KYMzw/clEGScpW8McJ

the master and swift 2.0 branches of realm-cocoa are currently using a release of Realm's core which introduces a new file format (which supports null values) which can't be read by previous versions of Realm.

Since the Realm Browser is using the latest released version of Realm, it can't read these newer files, detecting them as invalid databases instead. So your file is likely a valid database, but simply at a later file format that the browser can't read.

We're working on cutting a new release of core disabling this new file format because we're not quite ready to release it officially. It was a mistake on our part to merge this version of core into the binding's master branch, which we're working to address as soon as possible.

In the mean time, we don't recommend using Realm other than through official releases in production scenarios. This includes the Swift 2.0 branch.

from realm-browser-osx.

schickling avatar schickling commented on July 19, 2024

+1

from realm-browser-osx.

jpsim avatar jpsim commented on July 19, 2024

As of realm/realm-swift#2309 (~4 days ago), including the official 0.94 release, Realm Swift and Realm Objective-C have reverted to the old file format, compatible with the Realm Browser. So this should no longer be a problem.

from realm-browser-osx.

ZAPHIT avatar ZAPHIT commented on July 19, 2024

+1

from realm-browser-osx.

TimOliver avatar TimOliver commented on July 19, 2024

@ZAPHIT

Are you experiencing this issue? What version of Realm are you running?

from realm-browser-osx.

ZAPHIT avatar ZAPHIT commented on July 19, 2024

Yes.. i tried cocoa pods on realm.. i have updated xcode 7.1 .. cant open Realm file. says its has wrong format or encrypted, i have removed the encryption but still it cannot open.

from realm-browser-osx.

ZAPHIT avatar ZAPHIT commented on July 19, 2024

the latest..

from realm-browser-osx.

TimOliver avatar TimOliver commented on July 19, 2024

Oh okay! That would be Realm 0.96.1 then.

The current Realm Browser on the App Store can only open files up to v0.95. If you want, there's a pre-release version of the Browser that can open Realm files of version 0.96 and above here:

https://github.com/realm/realm-browser-osx/releases/tag/0.96-prerelease

I'm working on preparing a new build of the Browser that supports 0.96 (and a bunch of bug fixes for El Capitan) and sending it to the App Store this weekend.

from realm-browser-osx.

ZAPHIT avatar ZAPHIT commented on July 19, 2024

thanks!..

from realm-browser-osx.

azlanjamal avatar azlanjamal commented on July 19, 2024

I'm having the same problem with Realm 0.98.5. I use realm with Java.

from realm-browser-osx.

TimOliver avatar TimOliver commented on July 19, 2024

@akmalazlanjamal Which version of the Browser are you using? We just released a new version (0.101.0) that introduced a file format change.

from realm-browser-osx.

azlanjamal avatar azlanjamal commented on July 19, 2024

@TimOliver Thanks for the update. Now I can read after update Browser to the latest version.

from realm-browser-osx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.