Need help to test new Cesium version

Pour faire ça il faut cloner le dépôt et lancer yarn build ou quelque chose comme ça ?

Parce que pour l’instant la doc dit :

  • Clone the cesium-desktop project locally;
  • Follow this project documentation.

et c’est tout.

[edit]

En fait, peut-être qu’il faut suivre le guide de développement. Je vais essayer.

[edit 2]

je lance yarn et j’ai

error An unexpected error occurred: "https://codeload.github.com/Teleborder/FileSaver.js/tar.gz/b7cf622909258086bc63ad764d08fcaed780ab42: Request failed \"404 Not Found\"".

Pourtant c’est dans le yarn.lock. Tu n’as pas la même erreur ?

@kimamila, peux-tu faire une Merge Request dans gitlab pour ta branche feature/startup_node_selection

Cela facilitera les reviews.

2 « J'aime »

Yesterday I cloned Cesium repository and I got this error. Search in Internet, I found that alferov/angular-file-saver replace to Teleborder/FileSaver.js, then, only delete this dependence in package.json and install and run correctly.

1 « J'aime »

Thanks @elmau.

@kimamila after removing this package, I tested Cesium on this branch. It started with the first default node g1.duniter.org. Then I made this node unreachable by changing my /etc/hosts and Cesium connected to g1.cgeek.fr, the first one in the fallback list. Then I repeated the operation and Cesium connected to g1.librelois.fr, and so on.

So the fallback mechanism works, but we have to previously shuffle the node list to achieve the required behavior in order to avoid overloading always the same nodes. This should be done here

platform.js#L250

var randomIndex = Math.floor(Math.random() * peers.length);

But it seems to be not working.

In the browser log, I have the error: Error: randomPeer is undefined. I don’t know how to debug JavaScript.


btw 1

I tried adding a node whose https is not on the 443 port (but 7443) in the fallback list

{
  "host": "g1.texu.es",
  "port": 7443
}

and Cesium failed to connect to it.

btw 2

When the node is unreachable, the label still appears green, which is disturbing.

1 « J'aime »

Can you give me the source line ? Should be a simple cause (like $scope that is missing)

@matograine si tu as le temps de regarder aussi du problème soulevé par @HugoTrentesaux ? ( Error: randomPeer is undefined). Merci !

Je vois ceci :

Error: randomPeer is undefined   angular.js:14199:17

et la stacktrace

checkBmaNodeSynchronized/</<@http://localhost:8100/dist/dist_js/app/platform.js:251:17
Id/e/<@http://localhost:8100/lib/angular/angular.min.js:132:434
$eval@http://localhost:8100/lib/angular/angular.min.js:147:69
$digest@http://localhost:8100/lib/angular/angular.min.js:144:131
$apply@http://localhost:8100/lib/angular/angular.min.js:147:363
If/this.$get</p/f<@http://localhost:8100/lib/angular/angular.min.js:140:53
f@http://localhost:8100/lib/angular/angular.min.js:45:492
mg/k.defer/c<@http://localhost:8100/lib/angular/angular.min.js:48:419
setTimeout handler*mg/k.defer@http://localhost:8100/lib/angular/angular.min.js:48:393
p@http://localhost:8100/lib/angular/angular.min.js:140:34
$applyAsync@http://localhost:8100/lib/angular/angular.min.js:147:478
l@http://localhost:8100/lib/angular/angular.min.js:99:161
K@http://localhost:8100/lib/angular/angular.min.js:103:377
tg/</N.onload@http://localhost:8100/lib/angular/angular.min.js:104:339
EventHandlerNonNull*tg/<@http://localhost:8100/lib/angular/angular.min.js:104:174
n@http://localhost:8100/lib/angular/angular.min.js:100:427
zf/this.$get</m/s<@http://localhost:8100/lib/angular/angular.min.js:98:146
Id/e/<@http://localhost:8100/lib/angular/angular.min.js:132:434
$eval@http://localhost:8100/lib/angular/angular.min.js:147:69
$digest@http://localhost:8100/lib/angular/angular.min.js:144:131
$apply@http://localhost:8100/lib/angular/angular.min.js:147:363
If/this.$get</p/f<@http://localhost:8100/lib/angular/angular.min.js:140:53
f@http://localhost:8100/lib/angular/angular.min.js:45:492
mg/k.defer/c<@http://localhost:8100/lib/angular/angular.min.js:48:419
setTimeout handler*mg/k.defer@http://localhost:8100/lib/angular/angular.min.js:48:393
p@http://localhost:8100/lib/angular/angular.min.js:140:34
$applyAsync@http://localhost:8100/lib/angular/angular.min.js:147:478
l@http://localhost:8100/lib/angular/angular.min.js:99:161
K@http://localhost:8100/lib/angular/angular.min.js:103:377
f@http://localhost:8100/lib/angular/angular.min.js:104:390
p@http://localhost:8100/lib/angular/angular.min.js:103:319
f@http://localhost:8100/lib/angular/angular.min.js:45:492
mg/k.defer/c<@http://localhost:8100/lib/angular/angular.min.js:48:419
setTimeout handler*mg/k.defer@http://localhost:8100/lib/angular/angular.min.js:48:393
tg/<@http://localhost:8100/lib/angular/angular.min.js:105:155
n@http://localhost:8100/lib/angular/angular.min.js:100:427
zf/this.$get</m/s<@http://localhost:8100/lib/angular/angular.min.js:98:146
Id/e/<@http://localhost:8100/lib/angular/angular.min.js:132:434
$eval@http://localhost:8100/lib/angular/angular.min.js:147:69
$digest@http://localhost:8100/lib/angular/angular.min.js:144:131
$apply@http://localhost:8100/lib/angular/angular.min.js:147:363
If/this.$get</p/f<@http://localhost:8100/lib/angular/angular.min.js:140:53
f@http://localhost:8100/lib/angular/angular.min.js:45:492
mg/k.defer/c<@http://localhost:8100/lib/angular/angular.min.js:48:419
angular.js:14199:17

Mais comme je dis, je ne sais pas débugger du JavaScript, donc c’est bien si @matograine a le temps de reproduire le bug.

[edit]

Je me rends compte que je n’avais pas ton commit 430eb211008a40462b419dd1f0a386cc8eb748dd du 31 mai 2022, il n’était peut-être pas publié ? → Je n’ai plus l’erreur après ce commit.

1 « J'aime »

Du nouveau sur tes tests sur Cesium ?

Non, désolé. Pas eu de temps pour toucher à mon ordi perso, je passe déjà trop de temps sur mon ordi pro avec la fin de mon boulot