Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update ftd2 libs with arm64 arch; but segfaults :( #549

Draft
wants to merge 2,386 commits into
base: main
Choose a base branch
from

Conversation

kcking
Copy link
Collaborator

@kcking kcking commented Aug 7, 2023

  • compiled ftd2xxj for arm64 and combined it with the existing x86 library using lipo
  • downloaded latest d2xx driver which has both archs

unfortunately listDevice segfaults:


Current thread (0x000000015300da00):  JavaThread "main" [_thread_in_native, id=259, stack(0x000000016e964000,0x000000016f160000)]

Stack: [0x000000016e964000,0x000000016f160000],  sp=0x000000016f14e5a0,  free space=8105k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [libsystem_platform.dylib+0x3800]  _platform_memmove+0x1c0
C  [libsystem_c.dylib+0xd3ec]  __strcpy_chk+0x24
C  [libftd2xx.1.4.4.dylib+0x17d74]  ReadAndParse232R+0x118
C  [libftd2xx.1.4.4.dylib+0x128d8]  FT_EE_Read+0x51c
C  [libftd2xxj-2.1.dylib+0x618c]  Java_com_ftdichip_ftd2xx_EEPROM_readDeviceDescriptor+0xb0
j  com.ftdichip.ftd2xx.EEPROM.readDeviceDescriptor(J)Lcom/ftdichip/ftd2xx/DeviceDescriptor;+0
j  com.ftdichip.ftd2xx.EEPROM.readDeviceDescriptor()Lcom/ftdichip/ftd2xx/DeviceDescriptor;+11
j  com.ftdichip.ftd2xx.EEPROM.getDeviceDescriptor()Lcom/ftdichip/ftd2xx/DeviceDescriptor;+9
j  com.ftdichip.ftd2xx.Device.getDeviceDescriptor()Lcom/ftdichip/ftd2xx/DeviceDescriptor;+4
j  com.ftdichip.ftd2xx.Device.<init>(JJ)V+74
v  ~StubRoutines::call_stub
V  [libjvm.dylib+0x473abc]  JavaCalls::call_helper(JavaValue*, methodHandle const&, JavaCallArguments*, JavaThread*)+0x390
V  [libjvm.dylib+0x4d0210]  jni_invoke_nonstatic(JNIEnv_*, JavaValue*, _jobject*, JNICallType, _jmethodID*, JNI_ArgumentPusher*, JavaThread*)+0x2cc
V  [libjvm.dylib+0x4d069c]  jni_NewObject+0x198
C  [libftd2xxj-2.1.dylib+0x7124]  Java_com_ftdichip_ftd2xx_Service_listDevices+0x1dc

xian and others added 28 commits April 24, 2023 20:16
* Fixture is a concrete final class.
* Rename FixtureConfig to FixtureOptions (with nullable fields).
* New FixtureConfig's fields are non-nullable.
🔧 Refactor fixtures for simplicity
Apply gamma correction on brain
Bug fixes and scene template for Club Six install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants