Skip to content

Realm node SDK crashed ElecronJS #4

@shrikantthakar

Description

@shrikantthakar

We are using electron(Version - 18.2.1), electron-builder(Version - 22.14.13) for XMPP chat app by using database Realm Node.js SDK(Version - 11.2.0).

Also we are creating the builds for linux, MAC and windows.

Here two scenarios

During the development
After creating the build.
Scenario - 1 - In development it is crashed but in second trial its working.

Scenario - 2 - After creating the build found error.
Error - /opt/local/resources/app.asar.unpacked/node_modules/realm/build/Release/realm.node: invalid ELF header

var Realm = require( "realm" );
var realm;

// Open realm
let openRealm = async ( ) => {
try {
// Get schemas
const IMAccount = await schemaIMAccount();
// Config schemas
config = {
path: "xmpp-realm",
schema: [IMAccount]
}
// Open realm
realm = await Realm.open( config );
} catch ( error ) {
console.error( "XMPP - Error => ", error );
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions