Bug reportCompleted

Save & Quit throws write EPIPE in main process

Đạt TrầnPosted Shipped in 1.56.0

Bug Details

Location: App shutdown > Quit 1DevTool > Save & Quit

Mô tả:
Trong 1DevTool v1.55, khi người dùng bấm Save & Quit ở dialog thoát app, 1DevTool hiển thị lỗi JavaScript trong main process.

Lỗi hiện ra:

A JavaScript error occurred in the main process

Chi tiết exception:

Error: write EPIPE

Stack trace cho thấy lỗi xảy ra trong luồng ghi socket/stream:

afterWriteDispatched
writeGeneric
Socket._writeGeneric
Socket._write
doWrite
clearBuffer
onwrite
WriteWrap.onWriteComplete

Trong thời điểm bấm Save & Quit, dialog báo sẽ giữ lại 4 terminal sessions và 3 AI agent tabs để resume lần mở sau. Ảnh terminal cũng cho thấy có session vừa kết thúc với [Process exited with code undefined], nên có khả năng Save & Quit đang cố ghi/flush vào terminal/socket/pty đã đóng, dẫn tới write EPIPE.

Kỳ vọng là Save & Quit phải xử lý an toàn các terminal/agent session đã exit hoặc pipe đã đóng. App không nên bật error dialog main process; nếu session nào không thể lưu thì nên bỏ qua session đó hoặc ghi log nội bộ rồi tiếp tục quit sạch.

Attachment:
Ảnh đính kèm gồm dialog Quit 1DevTool? khi bấm Save & Quit, và popup lỗi main process Error: write EPIPE sau thao tác.
clipboard

clipboard

Reproducibility: Unknown · Impact: Major degradation

Environment

VERSION
v1.55.0
OS
Windows
ARCH
x86_64
CHANNEL
stable

Resolution progress

SHIPPED · 1.56.0
  1. PENDING

  2. REVIEWING

  3. IN PROGRESS

  4. COMPLETED

  • Đạt Trần submitted this request
  • Khoa Nguyen moved it to In progress
  • Khoa Nguyen moved it to Completed

Discussion0

Newest first
  • No comments yet. Add context or ask a question below.

Sign in to comment, vote and follow this request.

Sign in to reply