question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

mockk-agent-android 1.12.4 missing native lib

See original GitHub issue

Expected Behavior

libmockkjvmtiagent.so lib embedded in aar like before

Current Behavior

No lib -> This error occured due to an I/O error during the creation of this agent: java.io.IOException: Unable to dlopen libmockkjvmtiagent.so: dlopen failed: library "libmockkjvmtiagent.so" not found

image

Failure Information (for bugs)

Steps to Reproduce

  • Import 1.12.4
  • Try to use Mockk

Context

Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.

  • MockK version: 1.12.4
  • Type of test: android instrumented test

Stack trace

Caused by: io.mockk.proxy.MockKAgentException: MockK could not self-attach a jvmti agent to the current VM. This feature is required for inline mocking.
This error occured due to an I/O error during the creation of this agent: java.io.IOException: Unable to dlopen libmockkjvmtiagent.so: dlopen failed: library "libmockkjvmtiagent.so" not found

Potentially, the current VM does not support the jvmti API correctly
at io.mockk.proxy.android.AndroidMockKAgentFactory.init(AndroidMockKAgentFactory.kt:67)
at io.mockk.impl.JvmMockKGateway.<init>(JvmMockKGateway.kt:46)
at io.mockk.impl.JvmMockKGateway.<clinit>(JvmMockKGateway.kt:186)
... 33 more
Caused by: java.io.IOException: Unable to dlopen libmockkjvmtiagent.so: dlopen failed: library "libmockkjvmtiagent.so" not found
at dalvik.system.VMDebug.nativeAttachAgent(Native Method)
at dalvik.system.VMDebug.attachAgent(VMDebug.java:572)
at android.os.Debug.attachJvmtiAgent(Debug.java:2563)
at io.mockk.proxy.android.JvmtiAgent.<init>(JvmtiAgent.kt:48)
at io.mockk.proxy.android.AndroidMockKAgentFactory.init(AndroidMockKAgentFactory.kt:40)
... 35 more

Minimal reproducible code (the gist of this issue)

mockk()

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:32
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

11reactions
SimonMarquiscommented, Jul 27, 2022

Back to normal with the latest release: https://github.com/mockk/mockk/releases/tag/1.12.5

7reactions
kloverdecommented, Jun 30, 2022

I think this warrants either withdrawing the 1.12.4 release or putting warnings on the website, the readme, etc. It isn’t mentioned in the “Known Issues” section that this release is partially broken.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Missing and Murdered Indigenous People Crisis | Indian Affairs
For decades, Native American and Alaska Native communities have struggled with high rates of assault, abduction, and murder of women.
Read more >
Missing and Murdered Indigenous Peoples
The unit is providing leadership and direction for cross-departmental and interagency work involving missing and murdered American Indians and Alaska Natives.
Read more >
Red dresses bring awareness to missing Indigenous women
Each red dress was put here to represent an Indigenous woman who was murdered or missing. They're hanging in or near 25 libraries...
Read more >
Native American Children Reported Missing to NCMEC
This report presents data on cases of missing or abducted Native American children reported to the National Center for Missing and Exploited Children ......
Read more >
Fargo library art exhibit tells story of missing indigenous women
"Bring Her Home: Stolen Daughters of Turtle Island" opened earlier this year at All My Relations Gallery in Minneapolis, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found