Exception: java.lang.UnsatisfiedLinkError: dlopen failed: library “libnative-imagetranscoder.so

In the process of using the latest version 3.0.0 of Facebook’s fresco, I discovered a very pitiful bug. When loading jpeg images, a crash was reported that the so could not be found: Fatal Exception: java.lang.UnsatisfiedLinkError: dlopen failed: library “libnative-imagetranscoder.so” not found at java.lang.Runtime.loadLibrary0(Runtime.java:1082) at java.lang.Runtime.loadLibrary0(Runtime.java:1003) at java.lang.System.loadLibrary(System.java:1661) at com.facebook.soloader.nativeloader.SystemDelegate.loadLibrary(SystemDelegate.java:24) at com.facebook.soloader.nativeloader.NativeLoader.loadLibrary(NativeLoader.java:52) at com.facebook.soloader.nativeloader.NativeLoader.loadLibrary(NativeLoader.java:30) at […]

The linker script uses —– to treat the binary file as a segment

When analyzing the Linux kernel compilation process, we saw that arch/arm/boot/compressed/piggy.gzip.S includes the compressed Linux kernel (arch/arm/boot/compressed/piggy.gzip): 1: .section .piggydata,#alloc</code> 2: .globl input_data</code> 3: t_data:</code> 4: .incbin “arch/arm/boot/compressed/piggy.gzip”</code> 5: .globl input_data_end</code> 6: t_data_end: Can we also use this method to use a picture as a segment of an executable program, and then access this segment […]

[Shell command collection linker tool] Linux ld command links target files and libraries into executable files or library files

Directory title Description Grammar format Parameter Description Error conditions Notes Underlying implementation Example Example 1 Example 2 Example 3 Example 4 Example 5 Example 6 Example 7 Use c language to simulate ld ideas Conclusion Shell command column: full analysis of Linux Shell commands Description ld is a linker tool in the Linux environment. Its […]

Dynamic linker for x86_64 architecture on Linux ld-linux-x86-64.so.2

/lib64/ld-linux-x86-64.so.2 /lib64/ld-linux-x86-64.so.2 is a dynamic linker (also called a dynamic link editor) for the x86_64 architecture on the Linux operating system. It is responsible for loading and linking dynamic libraries that are referenced at runtime (that is, when the program starts or after). Now, let’s take a closer look at its role and importance: The […]

Android reported java.lang.UnsatisfiedLinkError error Daquan

1. java.lang.UnsatisfiedLinkError: method:logWrite, sig:(Lcom/tencent/mars/xlog/Xlog$XLoggerInfo;Ljava/lang/String;)V The full error log is as follows: java.lang.UnsatisfiedLinkError: method:logWrite, sig:(Lcom/tencent/mars/xlog/Xlog$XLoggerInfo;Ljava/lang/String;)V at java.lang.Runtime.nativeLoad(Native Method) at java.lang.Runtime.nativeLoad(Runtime.java:1115) at java.lang.Runtime.loadLibrary0(Runtime.java:1069) at java.lang.Runtime.loadLibrary0(Runtime.java:1007) at java.lang.System.loadLibrary(System.java:1668) at d.a.a.a.j.<clinit>(SourceFile:240) at d.a.a.a.j.j(SourceFile:246) at com.hl.demo.Appapplication.onCreate(SourceFile:43) at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1202) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7588) at android.app.ActivityThread.access$2600(ActivityThread.java:260) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2435) at android.os.Handler.dispatchMessage(Handler.java:110) at android.os.Looper.loop(Looper.java:219) at android.app.ActivityThread.main(ActivityThread.java:8668) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1109) Check whether the […]

[iOS memory management – compile link & dynamic linker]

Article directory foreword Computer Languages file extension The process of compiling and linking compile link Preprocessing (precompilation) -> Generate .i file Compile -> generate .s file Assembly -> generate .o file Link Dynamic library and static library 1. Static library 2. Dynamic library 3. The difference between dynamic library and static library 4. What is […]

UnsatisfiedLinkError: dlopen failed: “/data/app/~~xxxxx==/lib/arm64/.so” has bad ELF magic: 00000000

1. Error description: Debugging an Android hardware box, after upgrading the app, power off and restart, the following error message appears: UnsatisfiedLinkError: dlopen failed: “/data/app/~~pGPujfYZls2be5Bj5rrwSg==/xxxx(this is the package name)-m5mN2cWGRTn-ZUO_CY4Fng== /lib/arm64/xxx_jni.so” has bad ELF magic: 00000000 2. Error analysis: This error indicates that there was a problem loading the shared library. The meaning of each part […]

Use ESP32+Blinker to complete the feedback of bedroom smart door lock and bedroom temperature and humidity

Initial idea: The original idea is to connect to the school’s campus network through the ESP32 board, and then access the school’s association server (only the campus network or association WiFi can connect to the association’s server), use the server’s Broker, based on the MQTT protocol, through ArduinoIDE Use C++ to burn the program on […]

Linker handles duplicate symbols (2) Global objects with specific different addresses

Article directory question example Generate static library libsingleton.a Generate dynamic library libfirst.so Control dynamic export symbols Generate dynamic library libsecond.so Generate executable app question Solution: Question In the following example, the executable program app links a static library libsingleton.a and two dynamic libraries libfirst.so, libsecond.so. The static library libsingleton.a is a singleton object that is […]