Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Crash After Closing Antenna Control and Attempting to Open Menu

Đang mở
#325 0 bình luận 1 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
c
Lĩnh vực
desktop

Hướng nghiên cứu

The crash is in gtk_rot_ctrl_timeout_cb in gtk-rot-ctrl.c near line 804, which runs after rot_ctrl_destroy has already cleared SetAz. Start by checking where the timeout source is added and removed, and whether the destroy path leaves a callback that can still fire. Done means the reproduction steps (open antenna control, track, close, then open the module configure menu) no longer segfault.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

I've noticed that Gpredict crashes with a segfault when I try to open the module configuration menu after closing the antenna control. This behavior seems related to issue #279.

OS: Ubuntu 16.04.1
Kernel: 4.15.0-142-generic
CPU: Intel (R) Core i7-7576U @ 3.50 GHz
Gpredict Version: 2.3.115-0f3be
Rotator Control: Yarsu G-5500 az-el rotator with the Yaesu GS-232B PC interface

Here is how to reproduce the issue:

  1. Open the antenna control, track, and engage
  2. Un-engage, un-track, and close the antenna control
  3. Open the satellite module popup and select "configure"

What I've learned so far is that gtk_rot_ctrl_timeout_cb is being called after rot_ctrl_destroy (which should have removed the corresponding timeout source from the default main context). At gtk-rot-ctrl.c:804 it attempts to access a property of ctrl->AzSet (at this point ctrl->SetAz is NULL) and segfaults.

I get the following error messages:

(gpredict:11045): GLib-GObject-WARNING **: invalid unclassed pointer in cast to 'GtkRotCtrl'
Segmentation fault

Ngôn ngữ chính
C
Star
1.2k
Fork
305
Merge trung bình
8 giờ 48 phút
Pull request đã merge (30 ngày)
3

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của csete/gpredict

Tất cả issue của csete/gpredict

Issue tương tự

Thêm issue về C

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.