App name with Multibytes characters in config.xml hangs forever

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

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

Đánh giá

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

Hướng nghiên cứu

Tái hiện lỗi với nhiều byte trong config.xml và kiểm tra node-ioslib/dist/client/afc.js, đặc biệt là toCString và makeDirectory, dựa trên stack trace được báo cáo. So sánh hành vi với tên ứng dụng ASCII và xác nhận bản sửa lỗi bằng cách chạy native-run thành công với các tên bằng tiếng Trung, tiếng Nhật hoặc tiếng Hindi.

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

Mô tả

ios

Version:

0.2.8

Description:

App display name with multi-bytes charactesr in config.xml effect native-run hung forever

[ config.xml ]

multi-bytes name such as below result in hung forever...
<name>我的程式</name>
<name>私のプログラム</name>
<name>मेरा कार्यक्रम</name>

Command Output:

forever hangs, error messages:
1,121,62,87,105,70,105,77,65,67,65,100,100,114,101,115,115,60,47,107,101,121,62,10,9,60,115,116,114,105,110,103,62,54,56,58,100,98,58,99,97,58,55,53,58,57,55,58,52,97,60,47,115,116,114,105,110,103,62,10,60,47,100,105,99,116,62,10,60,47,112,108,105,115,116,62,10]}}
[native-run] RangeError [ERR_OUT_OF_RANGE]: The value of "offset" is out of range. It must be >= 0 and <= 55. Received 56
[native-run] at boundsError (internal/buffer.js:49:9)
[native-run] at writeU_Int8 (internal/buffer.js:558:5)
[native-run] at Buffer.writeUInt8 (internal/buffer.js:565:10)
[native-run] at toCString (/usr/local/lib/node_modules/native-run/node_modules/node-ioslib/dist/client/afc.js:150:9)
[native-run] at AFCClient.makeDirectory (/usr/local/lib/node_modules/native-run/node_modules/node-ioslib/dist/client/afc.js:84:19)
[native-run] at uploadDir (/usr/local/lib/node_modules/native-run/node_modules/node-ioslib/dist/client/afc.js:102:41)
[native-run] at AFCClient.uploadDirectory (/usr/local/lib/node_modules/native-run/node_modules/node-ioslib/dist/client/afc.js:95:22)
[native-run] at process._tickCallback (internal/process/next_tick.js:68:7)

Instead, running WITHOUT native-run is ok
$ ionic cordova run ios --no-native-run
running WITH ASCII app name is ok too

<name>myApp</name>

Environment Info:

Ionic:

Ionic CLI : 5.2.8 (/usr/local/lib/node_modules/ionic)
Ionic Framework : @ionic/angular 4.9.0
@angular-devkit/build-angular : 0.13.9
@angular-devkit/schematics : 7.3.9
@angular/cli : 7.3.9
@ionic/angular-toolkit : 1.5.1

Cordova:

Cordova CLI : 8.1.2 ([email protected])
Cordova Platforms : android 8.0.0, ios 4.5.5
Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 4.1.1, (and 27 other plugins)

Utility:

cordova-res : 0.6.0
native-run : 0.2.8

System:

Android SDK Tools : 26.1.1 (/Users/avex/Library/Android/sdk)
ios-deploy : 1.9.4
ios-sim : 8.0.1
NodeJS : v10.15.3 (/usr/local/bin/node)
npm : 6.11.3
OS : macOS Mojave
Xcode : Xcode 10.2 Build version 10E125

macOS version:
10.14.4

Xcode version:
10.2

Ngôn ngữ chính
TypeScript
Star
141
Fork
35
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

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 ionic-team/native-run

Tất cả issue của ionic-team/native-run

Issue tương tự

Thêm issue về TypeScript

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.