代码之家  ›  专栏  ›  技术社区  ›  Gaudam Thiyagarajan

React Native->ROS->Postgres中的分段错误同步(Postgres节点适配器)

  •  1
  • Gaudam Thiyagarajan  · 技术社区  · 8 年前

    通过将数据从react native写入领域对象服务器

    Realm.Sync.User.login('https://xxxx-xxxx-xx.us1.cloud.realm.io/', 'xxxxx', 'xxxxxx')
          .then((user) => {
            const config = {
              sync: {
                user,
                url: 'realms://xxxx-xxxx-xx.us1.cloud.realm.io/xxxx',
                error: err => console.log(err),
                partial: true,
              },
              schema: [{
                name: 'one',
                primaryKey: 'id',
                properties: {
                  id: { type: 'int', indexed: true },
                  name: 'string',
                },
              }],
            };
            const realm = new Realm(config);
            console.log(realm.path);
            realm.write(() => {
              realm.create('one', { id: 11, name: 'string' });
            });
          });
    

    当我运行我的节点postgres适配器来同步ros和postgres之间的数据时,它不能说分段错误。找不到任何详细日志。当我通过 王国工作室 但当我写完的时候就没用了 本地反应 . 我可以从 postgres通过ros反应本地人 没有问题。也可以通过realm studio看到ros中写入的数据。

    请参阅本期 Segmentation Fault syncing from React Native -> ROS -> Postgres

    1 回复  |  直到 8 年前
        1
  •  3
  •   Gaudam Thiyagarajan    8 年前

    是一只来自王国的虫子。看起来他们修复了 2.7.0 -> 2.7.2.

    推荐文章