Closed pAlkesz closed 1 week ago
I suspect that the problem is not actually with Paparazzi but with our setup inside the docker image
Unfortunately, there's not much we can do in this case. If you wind up investigating further and suspect Paparazzi might be to blame, please file another issue with a repro to help maintainers understand the problem better.
I was able to resolve this issue today. Turns out that the freetype library was missing from the JDK I am using so I had to install it manually. Just posting here in case other people encounter the same issue again.
Description I am using Paparazzi in a commercial project. So far we have been running our pipelines on macOS runners but now we want to switch to virtual machines running Linux (Red Hat). Unfortunately when running the verifyPaparazziDebug Gradle task it always fails. More specifically the testDebugUnitTest subtask is failing with the following errors:
MyExampleTest > MyExample_Preview1 snapshot FAILED java.lang.UnsatisfiedLinkError at MyExampleTest.kt:27 MyExampleTest > MyExample_Preview2 snapshot FAILED java.lang.NoClassDefFoundError at MyExampleTest.kt:13 Caused by: java.lang.ExceptionInInitializerError at MyExampleTest.kt:27 MyExampleTest > MyExample_Preview3 snapshot FAILED java.lang.NoClassDefFoundError at MyExampleTest.kt:20 Caused by: java.lang.ExceptionInInitializerError at MyExampleTest.kt:27 MyExampleTest > MyExample_Preview4 snapshot FAILED java.lang.NoClassDefFoundError at MyExampleTest.kt:34 Caused by: java.lang.ExceptionInInitializerError at MyExampleTest.kt:27
These errors are there for every time we call the paparazzi.snapshot() function. Interestingly the cleanRecordPaparazziDebug task runs without issue only the verifyPaparazziDebug task is failing. Locally on Mac and on Mac runners we can run the verifyPaparazziDebug task without any issues so I am guessing that on Linux there is something missing from the setup. We have java 17 installed (openjdk) and the $ANDROID_HOME and $ANDROID_SDK_ROOT variables are defined. Is there something else I need to look out for when I want to run paparazzi on Linux compared to a Mac? Any advice is appreciated
Steps to Reproduce Unfortunately I have no way to quickly put together a sample project and run it on our Gitlab runners with the same docker image we are using and I suspect that the problem is not actually with Paparazzi but with our setup inside the docker image so I am not sure a repro project is beneficial here.
Expected behavior The verifyPaparazziDebug task should be possible to run on Linux as well.
Additional information: