Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

路線で車庫に入庫させる際、中継点の直後に車庫を設定すると、所要時間の計算の際にクラッシュすることがある #51

Open
yuta-game-music opened this issue Apr 6, 2024 · 0 comments

Comments

@yuta-game-music
Copy link

いつも楽しませていただいております。
このたび、OTRPを使ったサーバーにてクラッシュバグの報告がありましたのでご報告です。

環境
Simutrans-OTRP v35_2_1
Simutrans version 122.0.1 Nightly from Feb 1 2024 r211212
Windows ※Ubuntu仮想環境で動作するサーバーアプリケーションも同様にクラッシュすることを確認

現象
末尾に中継点→車庫というスケジュールの路線を作成したとき、クラッシュすることがある

再現手順

  1. 画像のような道路・停車場・車庫を設置する
    image
  2. 停車場A→停車場B→赤丸(中継点) というバス路線を作成する
    • このときはまだ車庫を設定しない
  3. バスを走行させる
  4. バスが停車場Bから発車した後、中継点に到着するまでに、路線編集で路線の末尾に車庫を追加する
    • このとき、路線全体では 停車場A→停車場B→赤丸(中継点)→車庫 というスケジュールになる
  5. バスが停車場Aに到着した直後、クラッシュする

コマンドライン引数に-debug 1を付加して起動したところ、下記のようなエラー文が表示されました。

ERROR: schedule_t::access_corresponding_entry:  corresponding entry not found.

ソースコード上で上記メッセージを検索したところ、dataobj/schedule.ccschedule_t::access_corresponding_entry関数でヒットし、これがsimuconvoi.ccconvoi_t::register_journey_timeでのみ使用されていることから、所要時間の計算でスケジュール情報にアクセスする際に問題が発生しているものと考えられます。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant