About Handling Error in cellsToMultiPolygon

オープン
#158 コメント 2 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
48/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
静か
技術スタック
c, java
領域
api, backend

調査の方向性

src/main/java/com/uber/h3core/H3Core.java の 610 行目付近から始め、src/h3lib/lib/algos.c の 1168 行目付近にあるネイティブの cellsToLinkedMultiPolygon 実装と、バグ修正 PR #129 を比較してください。重複したインデックスによってどのように SIGSEGV が発生するのか、また意図された結果が入力検証、ドキュメント化、または H3Exception エラーコードのいずれなのかを確認してください。選択した動作がカバーされ、失敗がもはや不透明でなくなれば完了です。

索引モデルが issue の本文から書いたものです。

説明

I discovered that when using the cellsToMultiPolygon method, a SIGSEGV error can occur if there are duplicate indices in the input array. And this issue was addressed in a recent bug fix.

However, since the cellsToLinkedMultiPolygon method is designed to take a set as input, i think it would be beneficial to add a pre-processing step to ensure the input array has unique elements before calling h3Api.cellsToLinkedMultiPolygon.

Alternatively, there should be at least a comment in the code indicating that the input array must contain unique elements. Additionally, it would be helpful to specify an error code for the H3Exception, as it currently returns only 1.

It was really hard for me to find out the reason for the error 😭

主要言語
Java
スター
333
フォーク
68
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

uber/h3-java のほかの issue

uber/h3-java の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。