Comments (17)
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.
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.
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.
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.
Any progress on that? We have the same issue there!!!
from realm-browser-osx.
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
andswift 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.
+1
from realm-browser-osx.
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.
+1
from realm-browser-osx.
Are you experiencing this issue? What version of Realm are you running?
from realm-browser-osx.
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.
the latest..
from realm-browser-osx.
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.
thanks!..
from realm-browser-osx.
I'm having the same problem with Realm 0.98.5. I use realm with Java.
from realm-browser-osx.
@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.
@TimOliver Thanks for the update. Now I can read after update Browser to the latest version.
from realm-browser-osx.
Related Issues (20)
- Add mixpanel ping for next browser release
- Crash when trying to delete a record HOT 3
- And startup information to encourage use of Realm Studio
- The Realm Browser won't start on macOS High Sierra 10.13.1 HOT 2
- Exporting List Models To Swift HOT 2
- Creating a new object in a table with an optional data property creates a data pointer & displays extra fields
- "Connect to server" doesn't allow empty passwords HOT 1
- [wish] RealmBrowser.app is not showing the schema version of the opened realm file HOT 1
- Please enter a valid encryption key for this Realm file HOT 11
- Xcode 9.2 crashes when .realm file is open on Realm Browser 3.0.1 HOT 1
- allow can't clicked by iFunbox Could not open .realm HOT 1
- When importing data from CSV, Field defined as 'double?' got error "must be of type 'number?', got 'string'" HOT 2
- Realm Studio is bad. You should definitely keep maintaining this HOT 4
- Browser.app And Studio cannot be opened during project operation HOT 2
- Please write in the description that this project is deprecated HOT 1
- Add support for launching app with argv HOT 4
- How can i view my realm file on andriod using this on windows
- Fractional seconds not visible for Date-based properties HOT 1
- Realm "Please enter a valid encryption key for this file" HOT 3
- Cannot open realm file after update android plugin to 7.0.1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from realm-browser-osx.