armv7-linux-androideabi 대상에서 Rust 라이브러리 충돌 (Rust library crashing on target armv7-linux-androideabi)


문제 설명

armv7‑linux‑androideabi 대상에서 Rust 라이브러리 충돌 (Rust library crashing on target armv7‑linux‑androideabi)

내 Dart/Flutter 애플리케이션용 코드는 성능 집약적인 기본 동적 .so 라이브러리와 통신합니다. 라이브러리는 Rust로 작성되었습니다. aarch64‑linux‑androidx86_64‑linux‑android 대상과 잘 작동합니다. 대상 armv7‑linux‑androideabi로 실행하면 다음 줄(Dart Code)이 충돌합니다.

final dylib = DynamicLibrary.open("libmyimportantlib.so");

다음은 오류 메시지입니다. 라이브러리의 코드가 실행되지 않습니다. 충돌은 로드되자마자(또는 로드를 시도) 발생합니다.

F/libc    ( 7651): Fatal signal 11 (SIGSEGV), code 1, fault addr 0x0 in tid 7742 (DartWorker)

다른 모든 대상에서는 작동하지만 armv7‑linux‑androideabi에서는 작동하지 않는 이유를 알려줄 수 있는 사람이 있습니까?


참조 솔루션

방법 1:

I fixed the problem by downgrading the NDK version from 21 to 19. Apparently there is a problem with libc in the armv7‑linux‑androideabi target for version 20 and up.

(by stevenkucerastevenkucera)

참조 문서

  1. Rust library crashing on target armv7‑linux‑androideabi (CC BY‑SA 2.5/3.0/4.0)

#dart #android-ndk #Rust #Android #flutter






관련 질문

경고 대신 오류로 "@required" 주석 ("@required" annotation as error instead of warning)

Flutter ThemeData가 텍스트에서 작동하지 않습니다 (Flutter ThemeData is not working for the Text)

Aqueduct 및 Dart: Future<List<T>>(T = ManagedObject)를 JSON으로 직렬화할 수 없습니다. (Aqueduct and Dart: Future<List<T>> (T = ManagedObject) can't be serialized to JSON)

나는 세 개의 텍스트 필드가 있는데 그 중 처음 두 개 중에서 선택하고 세 번째 필드로 작업하고 싶습니다. (I have three text fields, want to choose between first two of them, & work with third one)

각 페이지에 대한 동적 높이로 Flutter Carousel Slider 만들기 (Create a Flutter Carousel Slider with dynamic heigth for each page)

SMS를 보낼 때 flutter url_launcher의 해시 기호 뒤에 메시지 본문이 사라집니다. (Message body disappear after hash symbol in flutter url_launcher when send a SMS)

미래 방법을 조롱하고 'Null'유형을 얻지 않는 방법은 플러터에서 'Future<>'유형의 하위 유형이 아닙니다. (How to mock a future method and not get type 'Null' is not a subtype of type 'Future<>' in flutter)

【NoSuchMethodError】audio_service가 initState에서 시작되지 않습니다 (【NoSuchMethodError】audio_service does not start in initState)

플러터에서 양식 변수를 얻는 방법 (How to get form variables in flutter)

다른 프로세스에서 사용 중이기 때문에 Pub에서 항목을 삭제하지 못했습니다. (Pub failed to delete entry because it was in use by another process)

RenderViewport는 RenderSliver 유형의 하위를 예상했지만 RenderErrorBox 유형의 하위를 수신했습니다. (A RenderViewport expected a child of type RenderSliver but received a child of type RenderErrorBox)

Flutter에서 이름을 확인하는 방법은 무엇입니까? (How to validate Name in flutter?)







코멘트