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

Desktop crashes on launch: undefined is not an object (evaluating 'e.participantPubkeys.map')

Đang mở Phù hợp với người mới
#7,890 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

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

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
74/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
desktop

Hướng nghiên cứu

Bắt đầu trong desktop/src/shared/api/tauriChannels.ts, sau đó lần theo participantPubkeys qua features/sidebar/lib/channelLabels.ts và useDmSidebarMetadata. Tái hiện đường đi với một bản ghi DM không có participant_pubkeys và xác minh rằng thanh bên trên desktop được hiển thị thay vì bị crash, bao gồm cả các kênh DM có tên chung.

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

Mô tả

What happens

Buzz Desktop crashes on launch with the full-window error screen:

Something went wrong!
undefined is not an object (evaluating 'e.participantPubkeys.map')

The app is unusable — the sidebar never renders. Managed agents keep running in the background, but there is no way to reach the UI.

Versions

  • Buzz Desktop 0.5.23 (crash) → updated to 0.5.25 (still crashes)
  • macOS 15 (Darwin 24.6.0), Apple Silicon

Likely cause

A DM channel record arrives without participant_pubkeys, and desktop/src/shared/api/tauriChannels.ts maps it straight through:

participantPubkeys: channel.participant_pubkeys,

resolveChannelDisplayLabel (features/sidebar/lib/channelLabels.ts) and useDmSidebarMetadata then call .map() on undefined for any channelType === "dm" channel with a generic name.

This is exactly what #7263 ("default participantPubkeys to [] when relay omits it") fixes — the same fallback member_pubkeys already has. That PR was closed on 2026-09-02 without merging, so the crash is still in 0.5.25. Malformed DM records like this are plausibly produced by #6027 / #6206 (DMs shipping with zero p-tags).

The mobile app loads the same account fine, so only the desktop is affected.

Ask

Could #7263 (or an equivalent ?? [] fallback) be reopened and shipped? Right now one malformed record on the relay takes the whole desktop client down with no in-app way to recover.

Ngôn ngữ chính
Rust
Star
36.2k
Fork
4.8k
Merge trung bình
1 ngày 12 giờ
Pull request đã merge (30 ngày)
258

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 block/buzz

Tất cả issue của block/buzz

Issue tương tự

Thêm issue về Rust

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.