NativeScript / NativeScript/nativescript-cli

Crashing after multiple changes

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

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

Ngôn ngữ chính
JavaScript
Star
1.1k
Fork
204
Merge trung bình
1 ngày 9 giờ
Pull request đã merge (30 ngày)
8

Mô tả

Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):

  • CLI: 7.0.0
  • Cross-platform modules: -
  • Android Runtime: -
  • iOS Runtime: -
  • Plugin(s): -

Describe the bug
I am running my apps with --no-hmr
after multiple file changes i end up with a crash:

RuntimeError: memory access out of bounds
    at wasm-function[18]:0xf76
    at wasm-function[28]:0x3494
    at BasicSourceMapConsumer._parseMappings (/usr/local/pnpm-global/4/node_modules/.pnpm/source-map@0.7.3/node_modules/source-map/lib/source-map-consumer.js:335:44)
    at BasicSourceMapConsumer._getMappingsPtr (/usr/local/pnpm-global/4/node_modules/.pnpm/source-map@0.7.3/node_modules/source-map/lib/source-map-consumer.js:315:12)
    at /usr/local/pnpm-global/4/node_modules/.pnpm/source-map@0.7.3/node_modules/source-map/lib/source-map-consumer.js:510:14
    at Object.withMappingCallback (/usr/local/pnpm-global/4/node_modules/.pnpm/source-map@0.7.3/node_modules/source-map/lib/wasm.js:95:11)
    at BasicSourceMapConsumer.originalPositionFor (/usr/local/pnpm-global/4/node_modules/.pnpm/source-map@0.7.3/node_modules/source-map/lib/source-map-consumer.js:508:16)
    at LogSourceMapService.getOriginalFileLocation (/usr/local/pnpm-global/4/node_modules/.pnpm/nativescript@7.0.8/node_modules/nativescript/lib/services/log-source-map-service.js:116:46)
    at /usr/local/pnpm-global/4/node_modules/.pnpm/nativescript@7.0.8/node_modules/nativescript/lib/services/log-source-map-service.js:72:43
    at Array.forEach (<anonymous>)

This happens with or without source maps

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

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.

Hướng nghiên cứu

Bắt đầu với log-source-map-service.js, đặc biệt là getOriginalFileLocation, và kiểm tra stack source-map@0.7.3 được hiển thị trong báo cáo. Tái hiện lỗi sau nhiều lần thay đổi tệp với --no-hmr, cả khi có source maps và khi không có source maps. Được xem là hoàn tất khi CLI không còn bị crash với lỗi truy cập bộ nhớ WebAssembly đã nêu.

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

Đánh giá

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

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.