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

ort with flutter - several issues #6269

Closed
ibelz opened this issue Dec 21, 2022 · 18 comments
Closed

ort with flutter - several issues #6269

ibelz opened this issue Dec 21, 2022 · 18 comments
Labels
docker About Docker topics question An issue that is actually a question

Comments

@ibelz
Copy link

ibelz commented Dec 21, 2022

Hi,
I'm trying to set up ort for Flutter - but unfortunately the analyze keeps crashing.
I'll be honest, I have only rudimentary Docker knowledge - and I have a Mac Pro with an Apple M1 chip.

First I tried the docker installation written in the readme "docker build -t ort .". The build was quick and went well.
The analyze of a sample Flutter project stops with this:

image

After some researches with Google I found the hint to build with "docker build --platform linux/x86_64 -t ort ." when Apple M1 chip. The build takes hours...
The analyze of the same Flutter project crashes:

image

I have no clue how to fix this. Can somebody help me?
Is there anybody who is using already ort with Flutter?

Thanks
Ivonne

@sschuberth
Copy link
Member

Maybe @MarcelBochtler can help (but he's already on vacation, so may be slow to respond 😉).

@sschuberth sschuberth added question An issue that is actually a question docker About Docker topics labels Dec 21, 2022
@sschuberth
Copy link
Member

PS: Please don't post screenshots of logs / console output as they're not searchable. Just copy & paste the text instead.

@ibelz
Copy link
Author

ibelz commented Dec 21, 2022

== FIRST DOCKER SETUP ==

docker build -t ort .


docker run -v $PWD/:/fla ort:latest --info analyze -f JSON -i /fla/news_async_redux -o /fla/ort/analyze

--- RESULT ---

16:36:01,030 |-INFO in ch.qos.logback.classic.LoggerContext[default] - This is logback-classic version 1.4.5
16:36:01,044 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml]
16:36:01,049 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [jar:file:/opt/ort/lib/cli-DOCKER-SNAPSHOT.jar!/logback.xml]
16:36:01,050 |-WARN in ch.qos.logback.classic.util.DefaultJoranConfigurator@25c53f74 - Resource [logback.xml] occurs multiple times on the classpath.
16:36:01,050 |-WARN in ch.qos.logback.classic.util.DefaultJoranConfigurator@25c53f74 - Resource [logback.xml] occurs at [jar:file:/opt/ort/lib/helper-cli-DOCKER-SNAPSHOT.jar!/logback.xml]
16:36:01,050 |-WARN in ch.qos.logback.classic.util.DefaultJoranConfigurator@25c53f74 - Resource [logback.xml] occurs at [jar:file:/opt/ort/lib/cli-DOCKER-SNAPSHOT.jar!/logback.xml]
16:36:01,053 |-INFO in ch.qos.logback.core.joran.spi.ConfigurationWatchList@5e2f3be5 - URL [jar:file:/opt/ort/lib/cli-DOCKER-SNAPSHOT.jar!/logback.xml] is not of type file
16:36:01,109 |-INFO in ch.qos.logback.core.model.processor.AppenderModelHandler - Processing appender named [STDOUT]
16:36:01,109 |-INFO in ch.qos.logback.core.model.processor.AppenderModelHandler - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender]
16:36:01,115 |-INFO in ch.qos.logback.core.model.processor.ImplicitModelHandler - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
16:36:01,138 |-INFO in ch.qos.logback.classic.model.processor.RootLoggerModelHandler - Setting level of ROOT logger to WARN
16:36:01,141 |-INFO in ch.qos.logback.core.model.processor.AppenderRefModelHandler - Attaching appender named [STDOUT] to Logger[ROOT]
16:36:01,142 |-INFO in ch.qos.logback.classic.model.processor.LoggerModelHandler - Setting level of logger [org.apache.http.headers] to ERROR
16:36:01,142 |-INFO in ch.qos.logback.classic.model.processor.LoggerModelHandler - Setting level of logger [org.apache.http.wire] to ERROR
16:36:01,142 |-INFO in ch.qos.logback.classic.model.processor.LoggerModelHandler - Setting level of logger [org.eclipse.jgit.internal.storage.file.FileSnapshot] to ERROR
16:36:01,142 |-INFO in ch.qos.logback.classic.model.processor.LoggerModelHandler - Setting level of logger [org.ossreviewtoolkit.analyzer.managers.Yarn2] to INFO
16:36:01,142 |-INFO in ch.qos.logback.classic.model.processor.LoggerModelHandler - Setting level of logger [org.ossreviewtoolkit.clients.fossid.FossIdRestService] to INFO
16:36:01,142 |-INFO in ch.qos.logback.classic.model.processor.LoggerModelHandler - Setting level of logger [org.ossreviewtoolkit.reporter.reporters.fossid.FossIdReporter] to INFO
16:36:01,142 |-INFO in ch.qos.logback.classic.model.processor.LoggerModelHandler - Setting level of logger [org.ossreviewtoolkit.scanner.scanners.fossid.FossId] to INFO
16:36:01,142 |-INFO in ch.qos.logback.classic.model.processor.LoggerModelHandler - Setting level of logger [org.ossreviewtoolkit.scanner.scanners.fossid.FossIdConfig] to INFO
16:36:01,142 |-INFO in ch.qos.logback.classic.model.processor.LoggerModelHandler - Setting level of logger [org.ossreviewtoolkit.scanner.scanners.fossid.FossIdUrlProvider] to INFO
16:36:01,142 |-INFO in ch.qos.logback.core.model.processor.DefaultProcessor@1bd0b0e5 - End of configuration.
16:36:01,142 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@dc7b462 - Registering current configuration as safe fallback point

16:36:01.311 [main] INFO org.ossreviewtoolkit.utils.common.EnvironmentVariableFilter - EnvironmentVariableFilter initialized with denySubstrings = [key, pass, pwd, token, user] and allowNames = [CARGO_HTTP_USER_AGENT, COMPOSER_ALLOW_SUPERUSER, CONAN_LOGIN_ENCRYPTION_KEY, CONAN_LOGIN_USERNAME, CONAN_PASSWORD, CONAN_USERNAME, CONAN_USER_HOME, CONAN_USER_HOME_SHORT, DOTNET_CLI_CONTEXT_ANSI_PASS_THRU, GIT_ASKPASS, GIT_HTTP_USER_AGENT, GRADLE_USER_HOME, HACKAGE_USERNAME, HACKAGE_PASSWORD, HACKAGE_KEY, PWD, USER, USERPROFILE].


/ _______ __ / The OSS Review Toolkit, version DOCKER-SNAPSHOT.
| | | | / | |
| | | | | \ | | Running 'analyze' as 'ort' under Java 11.0.17 on Linux
_
/ ||/ |__| with 5 CPUs and a maximum of 1964 MiB of memory.

Environment variables:
ORT_CONFIG_DIR = /home/ort/.ort/config
ORT_DATA_DIR = /home/ort/.ort
JAVA_HOME = /opt/java/openjdk
ANDROID_HOME = /opt/android-sdk

Looking for ORT configuration in the following file:
/home/ort/.ort/config/config.yml (does not exist)

Looking for analyzer-specific configuration in the following files and directories:
/home/ort/.ort/config/curations.yml (does not exist)
/home/ort/.ort/config/curations (does not exist)
/fla/news_async_redux/.ort.yml (does not exist)
/home/ort/.ort/config/resolutions.yml (does not exist)
The following package managers are enabled:
Bower, Bundler, Cargo, Carthage, CocoaPods, Composer, Conan, DotNet, GoDep, GoMod, Gradle, Maven, NPM, NuGet, PIP, Pipenv, PNPM, Poetry, Pub, SBT, SpdxDocumentFile, Stack, Unmanaged, Yarn, Yarn2
Analyzing project path:
/fla/news_async_redux
16:36:03.086 [main] INFO org.ossreviewtoolkit.analyzer.PackageManager - Not analyzing directory '/fla/news_async_redux/.git' as it is hard-coded to be ignored.
16:36:03.135 [main] INFO org.ossreviewtoolkit.analyzer.PackageManager - Not analyzing directory '/fla/news_async_redux/android/.gradle' as it is hard-coded to be ignored.
16:36:07.658 [main] INFO org.ossreviewtoolkit.utils.ort.OrtAuthenticator - Authenticator was successfully installed.
16:36:07.670 [main] INFO org.ossreviewtoolkit.utils.ort.OrtProxySelector - Proxy selector was successfully installed.
Found 2 CocoaPods definition file(s) at:
ios/Podfile
macos/Podfile
Found 2 Gradle definition file(s) at:
android/build.gradle
android/app/build.gradle
Found 2 Pub definition file(s) at:
pubspec.yaml
.dart_tool/flutter_gen/pubspec.yaml
Found 6 definition file(s) from 3 package manager(s) in total.
16:36:08.046 [main] INFO org.ossreviewtoolkit.analyzer.PackageManager - Not analyzing directory '/fla/news_async_redux/.git' as it is hard-coded to be ignored.
16:36:08.049 [main] INFO org.ossreviewtoolkit.analyzer.PackageManager - Not analyzing directory '/fla/news_async_redux/android/.gradle' as it is hard-coded to be ignored.
16:36:09.247 [main] INFO org.ossreviewtoolkit.analyzer.Analyzer - Starting Pub analysis.
16:36:09.252 [main] INFO org.ossreviewtoolkit.analyzer.Analyzer - Gradle is waiting for the following package managers to complete: Pub.
16:36:09.252 [main] INFO org.ossreviewtoolkit.analyzer.Analyzer - Starting CocoaPods analysis.
16:36:09.281 [DefaultDispatcher-worker-3] INFO org.ossreviewtoolkit.utils.common.ProcessCapture - Running 'pod --version --allow-root' in '/home/ort'...
16:36:09.357 [DefaultDispatcher-worker-1] INFO org.ossreviewtoolkit.analyzer.PackageManager - Not analyzing directory '/fla/news_async_redux/.git' as it is hard-coded to be ignored.
16:36:09.358 [DefaultDispatcher-worker-1] INFO org.ossreviewtoolkit.analyzer.PackageManager - Not analyzing directory '/fla/news_async_redux/android/.gradle' as it is hard-coded to be ignored.
16:36:09.732 [DefaultDispatcher-worker-1] INFO org.ossreviewtoolkit.analyzer.managers.Pub - Found 2 Gradle project(s).
16:36:09.733 [DefaultDispatcher-worker-1] INFO org.ossreviewtoolkit.analyzer.managers.Pub - - pubspec.yaml
16:36:09.733 [DefaultDispatcher-worker-1] INFO org.ossreviewtoolkit.analyzer.managers.Pub - - android/build.gradle
16:36:09.734 [DefaultDispatcher-worker-1] INFO org.ossreviewtoolkit.analyzer.managers.Pub - - android/app/build.gradle
16:36:09.736 [DefaultDispatcher-worker-1] INFO org.ossreviewtoolkit.analyzer.managers.Pub - Bootstrapping flutter as it was not found.
16:36:09.737 [DefaultDispatcher-worker-1] INFO org.ossreviewtoolkit.analyzer.managers.Pub - Downloading flutter-3.3.8-stable from https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.3.8-stable.tar.xz...
16:36:09.849 [DefaultDispatcher-worker-3] INFO org.ossreviewtoolkit.analyzer.PackageManager - Resolving CocoaPods dependencies for path 'ios/Podfile'...
16:36:09.853 [DefaultDispatcher-worker-3] INFO org.ossreviewtoolkit.utils.common.ProcessCapture - Running 'pod repo add-cdn trunk https://cdn.cocoapods.org --allow-root' in '/home/ort'...
16:36:10.496 [DefaultDispatcher-worker-3] INFO org.ossreviewtoolkit.utils.common.ProcessCapture - Running 'pod spec which Flutter --version=1.0.0 --allow-root --regex' in '/fla/news_async_redux/ios'...
16:36:14.145 [DefaultDispatcher-worker-3] INFO org.ossreviewtoolkit.utils.common.ProcessCapture - Running 'pod spec which package_info_plus --version=0.4.5 --allow-root --regex' in '/fla/news_async_redux/ios'...
16:36:14.595 [DefaultDispatcher-worker-3] WARN org.ossreviewtoolkit.analyzer.managers.CocoaPods - Failed to get the '.podspec' file for package 'Pod::package_info_plus:0.4.5': IOException: Running 'pod spec which package_info_plus --version=0.4.5 --allow-root --regex' in '/fla/news_async_redux/ios' failed with exit code 1:
[!] Unable to find a pod with name matching `package_info_plus'

16:36:14.600 [DefaultDispatcher-worker-3] INFO org.ossreviewtoolkit.utils.common.ProcessCapture - Running 'pod spec which path_provider_ios --version=0.0.1 --allow-root --regex' in '/fla/news_async_redux/ios'...
16:36:14.999 [DefaultDispatcher-worker-3] WARN org.ossreviewtoolkit.analyzer.managers.CocoaPods - Failed to get the '.podspec' file for package 'Pod::path_provider_ios:0.0.1': IOException: Running 'pod spec which path_provider_ios --version=0.0.1 --allow-root --regex' in '/fla/news_async_redux/ios' failed with exit code 1:
[!] Unable to find a pod with name matching `path_provider_ios'

16:36:15.001 [DefaultDispatcher-worker-3] INFO org.ossreviewtoolkit.utils.common.ProcessCapture - Running 'pod spec which shared_preferences_ios --version=0.0.1 --allow-root --regex' in '/fla/news_async_redux/ios'...
16:36:15.435 [DefaultDispatcher-worker-3] WARN org.ossreviewtoolkit.analyzer.managers.CocoaPods - Failed to get the '.podspec' file for package 'Pod::shared_preferences_ios:0.0.1': IOException: Running 'pod spec which shared_preferences_ios --version=0.0.1 --allow-root --regex' in '/fla/news_async_redux/ios' failed with exit code 1:
[!] Unable to find a pod with name matching `shared_preferences_ios'

16:36:15.438 [DefaultDispatcher-worker-3] INFO org.ossreviewtoolkit.utils.common.ProcessCapture - Running 'pod spec which sqlite3_flutter_libs --version=0.0.1 --allow-root --regex' in '/fla/news_async_redux/ios'...
16:36:15.843 [DefaultDispatcher-worker-3] WARN org.ossreviewtoolkit.analyzer.managers.CocoaPods - Failed to get the '.podspec' file for package 'Pod::sqlite3_flutter_libs:0.0.1': IOException: Running 'pod spec which sqlite3_flutter_libs --version=0.0.1 --allow-root --regex' in '/fla/news_async_redux/ios' failed with exit code 1:
[!] Unable to find a pod with name matching `sqlite3_flutter_libs'

16:36:15.845 [DefaultDispatcher-worker-3] INFO org.ossreviewtoolkit.utils.common.ProcessCapture - Running 'pod spec which sqlite3 --version=3.39.3 --allow-root --regex' in '/fla/news_async_redux/ios'...
16:36:22.797 [DefaultDispatcher-worker-3] INFO org.ossreviewtoolkit.utils.common.ProcessCapture - Running 'pod spec which url_launcher_ios --version=0.0.1 --allow-root --regex' in '/fla/news_async_redux/ios'...
16:36:23.281 [DefaultDispatcher-worker-3] WARN org.ossreviewtoolkit.analyzer.managers.CocoaPods - Failed to get the '.podspec' file for package 'Pod::url_launcher_ios:0.0.1': IOException: Running 'pod spec which url_launcher_ios --version=0.0.1 --allow-root --regex' in '/fla/news_async_redux/ios' failed with exit code 1:
[!] Unable to find a pod with name matching `url_launcher_ios'

16:36:23.284 [DefaultDispatcher-worker-3] INFO org.ossreviewtoolkit.utils.common.ProcessCapture - Running 'pod spec which video_player_avfoundation --version=0.0.1 --allow-root --regex' in '/fla/news_async_redux/ios'...
16:36:23.691 [DefaultDispatcher-worker-3] WARN org.ossreviewtoolkit.analyzer.managers.CocoaPods - Failed to get the '.podspec' file for package 'Pod::video_player_avfoundation:0.0.1': IOException: Running 'pod spec which video_player_avfoundation --version=0.0.1 --allow-root --regex' in '/fla/news_async_redux/ios' failed with exit code 1:
[!] Unable to find a pod with name matching `video_player_avfoundation'

16:36:23.693 [DefaultDispatcher-worker-3] INFO org.ossreviewtoolkit.utils.common.ProcessCapture - Running 'pod spec which wakelock --version=0.0.1 --allow-root --regex' in '/fla/news_async_redux/ios'...
16:36:24.157 [DefaultDispatcher-worker-3] WARN org.ossreviewtoolkit.analyzer.managers.CocoaPods - Failed to get the '.podspec' file for package 'Pod::wakelock:0.0.1': IOException: Running 'pod spec which wakelock --version=0.0.1 --allow-root --regex' in '/fla/news_async_redux/ios' failed with exit code 1:
[!] Unable to find a pod with name matching `wakelock'

16:36:24.160 [DefaultDispatcher-worker-3] INFO org.ossreviewtoolkit.utils.common.ProcessCapture - Running 'pod spec which webview_flutter_wkwebview --version=0.0.1 --allow-root --regex' in '/fla/news_async_redux/ios'...
16:36:24.616 [DefaultDispatcher-worker-3] WARN org.ossreviewtoolkit.analyzer.managers.CocoaPods - Failed to get the '.podspec' file for package 'Pod::webview_flutter_wkwebview:0.0.1': IOException: Running 'pod spec which webview_flutter_wkwebview --version=0.0.1 --allow-root --regex' in '/fla/news_async_redux/ios' failed with exit code 1:
[!] Unable to find a pod with name matching `webview_flutter_wkwebview'

16:36:24.995 [DefaultDispatcher-worker-3] INFO org.ossreviewtoolkit.analyzer.PackageManager - Resolving CocoaPods dependencies for path 'ios/Podfile' took 15.138278673s.
16:36:24.995 [DefaultDispatcher-worker-3] INFO org.ossreviewtoolkit.analyzer.PackageManager - Resolving CocoaPods dependencies for path 'macos/Podfile'...
16:36:24.997 [DefaultDispatcher-worker-3] INFO org.ossreviewtoolkit.utils.common.ProcessCapture - Running 'pod repo add-cdn trunk https://cdn.cocoapods.org --allow-root' in '/home/ort'...
16:36:25.725 [DefaultDispatcher-worker-3] INFO org.ossreviewtoolkit.utils.common.ProcessCapture - Running 'pod spec which FlutterMacOS --version=1.0.0 --allow-root --regex' in '/fla/news_async_redux/macos'...
16:36:27.645 [DefaultDispatcher-worker-3] WARN org.ossreviewtoolkit.analyzer.managers.CocoaPods - Failed to get the '.podspec' file for package 'Pod::FlutterMacOS:1.0.0': IOException: Running 'pod spec which FlutterMacOS --version=1.0.0 --allow-root --regex' in '/fla/news_async_redux/macos' failed with exit code 1:
[!] Can't find spec for FlutterMacOS.

16:36:27.648 [DefaultDispatcher-worker-3] INFO org.ossreviewtoolkit.utils.common.ProcessCapture - Running 'pod spec which path_provider_macos --version=0.0.1 --allow-root --regex' in '/fla/news_async_redux/macos'...
16:36:28.102 [DefaultDispatcher-worker-3] WARN org.ossreviewtoolkit.analyzer.managers.CocoaPods - Failed to get the '.podspec' file for package 'Pod::path_provider_macos:0.0.1': IOException: Running 'pod spec which path_provider_macos --version=0.0.1 --allow-root --regex' in '/fla/news_async_redux/macos' failed with exit code 1:
[!] Unable to find a pod with name matching `path_provider_macos'

16:36:28.105 [DefaultDispatcher-worker-3] INFO org.ossreviewtoolkit.utils.common.ProcessCapture - Running 'pod spec which shared_preferences_macos --version=0.0.1 --allow-root --regex' in '/fla/news_async_redux/macos'...
16:36:28.508 [DefaultDispatcher-worker-3] WARN org.ossreviewtoolkit.analyzer.managers.CocoaPods - Failed to get the '.podspec' file for package 'Pod::shared_preferences_macos:0.0.1': IOException: Running 'pod spec which shared_preferences_macos --version=0.0.1 --allow-root --regex' in '/fla/news_async_redux/macos' failed with exit code 1:
[!] Unable to find a pod with name matching `shared_preferences_macos'

16:36:28.512 [DefaultDispatcher-worker-3] INFO org.ossreviewtoolkit.utils.common.ProcessCapture - Running 'pod spec which sqlite3_flutter_libs --version=0.0.1 --allow-root --regex' in '/fla/news_async_redux/macos'...
16:36:28.918 [DefaultDispatcher-worker-3] WARN org.ossreviewtoolkit.analyzer.managers.CocoaPods - Failed to get the '.podspec' file for package 'Pod::sqlite3_flutter_libs:0.0.1': IOException: Running 'pod spec which sqlite3_flutter_libs --version=0.0.1 --allow-root --regex' in '/fla/news_async_redux/macos' failed with exit code 1:
[!] Unable to find a pod with name matching `sqlite3_flutter_libs'

16:36:28.920 [DefaultDispatcher-worker-3] INFO org.ossreviewtoolkit.utils.common.ProcessCapture - Running 'pod spec which sqlite3 --version=3.39.2 --allow-root --regex' in '/fla/news_async_redux/macos'...
16:36:29.352 [DefaultDispatcher-worker-3] INFO org.ossreviewtoolkit.utils.common.ProcessCapture - Running 'pod spec which url_launcher_macos --version=0.0.1 --allow-root --regex' in '/fla/news_async_redux/macos'...
16:36:29.754 [DefaultDispatcher-worker-3] WARN org.ossreviewtoolkit.analyzer.managers.CocoaPods - Failed to get the '.podspec' file for package 'Pod::url_launcher_macos:0.0.1': IOException: Running 'pod spec which url_launcher_macos --version=0.0.1 --allow-root --regex' in '/fla/news_async_redux/macos' failed with exit code 1:
[!] Unable to find a pod with name matching `url_launcher_macos'

16:36:29.756 [DefaultDispatcher-worker-3] INFO org.ossreviewtoolkit.utils.common.ProcessCapture - Running 'pod spec which wakelock_macos --version=0.0.1 --allow-root --regex' in '/fla/news_async_redux/macos'...
16:36:30.163 [DefaultDispatcher-worker-3] WARN org.ossreviewtoolkit.analyzer.managers.CocoaPods - Failed to get the '.podspec' file for package 'Pod::wakelock_macos:0.0.1': IOException: Running 'pod spec which wakelock_macos --version=0.0.1 --allow-root --regex' in '/fla/news_async_redux/macos' failed with exit code 1:
[!] Unable to find a pod with name matching `wakelock_macos'

16:36:30.269 [DefaultDispatcher-worker-3] INFO org.ossreviewtoolkit.analyzer.PackageManager - Resolving CocoaPods dependencies for path 'macos/Podfile' took 5.273653336s.
16:36:30.271 [DefaultDispatcher-worker-3] INFO org.ossreviewtoolkit.analyzer.Analyzer - Finished CocoaPods analysis.
16:36:30.283 [main] INFO org.ossreviewtoolkit.analyzer.Analyzer - Gradle is waiting for the following package managers to complete: Pub.
16:36:32.557 [DefaultDispatcher-worker-1] INFO org.ossreviewtoolkit.analyzer.managers.Pub - Unpacking '/home/ort/.ort/tools/flutter-3.3.8-stable/flutter_linux_3.3.8-stable.tar.xz' to '/home/ort/.ort/tools/flutter-3.3.8-stable'...
16:37:09.856 [DefaultDispatcher-worker-1] INFO org.ossreviewtoolkit.utils.common.ProcessCapture - Running '/home/ort/.ort/tools/flutter-3.3.8-stable/flutter/bin/flutter config --no-analytics' in '/home/ort'...
Exception in thread "main" java.io.IOException: Running '/home/ort/.ort/tools/flutter-3.3.8-stable/flutter/bin/flutter config --no-analytics' in '/home/ort' failed with exit code 255:
qemu-x86_64: Could not open '/lib64/ld-linux-x86-64.so.2': No such file or directory

at org.ossreviewtoolkit.utils.common.ProcessCapture.requireSuccess(ProcessCapture.kt:154)
at org.ossreviewtoolkit.analyzer.managers.Pub.beforeResolution(Pub.kt:169)
at org.ossreviewtoolkit.analyzer.PackageManager.resolveDependencies(PackageManager.kt:259)
at org.ossreviewtoolkit.analyzer.PackageManagerRunner$run$3.invokeSuspend(Analyzer.kt:324)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at kotlinx.coroutines.internal.LimitedDispatcher.run(LimitedDispatcher.kt:42)
at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:95)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)

@ibelz
Copy link
Author

ibelz commented Dec 21, 2022

== SECOND DOCKER SETUP ==

docker build --platform linux/x86_64 -t ort_x86_64 .


docker run --platform linux/x86_64 -v $PWD/:/fla ort_x86_64:latest --info analyze -f JSON -i /fla/news_async_redux -o /fla/ort/analyze

OR

docker run -v $PWD/:/fla ort_x86_64:latest --info analyze -f JSON -i /fla/news_async_redux -o /fla/ort/analyze
=> additionally Warning: "WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested"

--- RESULT ---

16:42:32,708 |-INFO in ch.qos.logback.classic.LoggerContext[default] - This is logback-classic version 1.4.5
16:42:32,793 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml]
16:42:32,856 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [jar:file:/opt/ort/lib/cli-DOCKER-SNAPSHOT.jar!/logback.xml]
16:42:32,860 |-WARN in ch.qos.logback.classic.util.DefaultJoranConfigurator@25c53f74 - Resource [logback.xml] occurs multiple times on the classpath.
16:42:32,862 |-WARN in ch.qos.logback.classic.util.DefaultJoranConfigurator@25c53f74 - Resource [logback.xml] occurs at [jar:file:/opt/ort/lib/helper-cli-DOCKER-SNAPSHOT.jar!/logback.xml]
16:42:32,862 |-WARN in ch.qos.logback.classic.util.DefaultJoranConfigurator@25c53f74 - Resource [logback.xml] occurs at [jar:file:/opt/ort/lib/cli-DOCKER-SNAPSHOT.jar!/logback.xml]
16:42:32,888 |-INFO in ch.qos.logback.core.joran.spi.ConfigurationWatchList@5e2f3be5 - URL [jar:file:/opt/ort/lib/cli-DOCKER-SNAPSHOT.jar!/logback.xml] is not of type file
16:42:33,299 |-INFO in ch.qos.logback.core.model.processor.AppenderModelHandler - Processing appender named [STDOUT]
16:42:33,299 |-INFO in ch.qos.logback.core.model.processor.AppenderModelHandler - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender]
16:42:33,386 |-INFO in ch.qos.logback.core.model.processor.ImplicitModelHandler - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
16:42:33,596 |-INFO in ch.qos.logback.classic.model.processor.RootLoggerModelHandler - Setting level of ROOT logger to WARN
16:42:33,639 |-INFO in ch.qos.logback.core.model.processor.AppenderRefModelHandler - Attaching appender named [STDOUT] to Logger[ROOT]
16:42:33,644 |-INFO in ch.qos.logback.classic.model.processor.LoggerModelHandler - Setting level of logger [org.apache.http.headers] to ERROR
16:42:33,644 |-INFO in ch.qos.logback.classic.model.processor.LoggerModelHandler - Setting level of logger [org.apache.http.wire] to ERROR
16:42:33,644 |-INFO in ch.qos.logback.classic.model.processor.LoggerModelHandler - Setting level of logger [org.eclipse.jgit.internal.storage.file.FileSnapshot] to ERROR
16:42:33,645 |-INFO in ch.qos.logback.classic.model.processor.LoggerModelHandler - Setting level of logger [org.ossreviewtoolkit.analyzer.managers.Yarn2] to INFO
16:42:33,645 |-INFO in ch.qos.logback.classic.model.processor.LoggerModelHandler - Setting level of logger [org.ossreviewtoolkit.clients.fossid.FossIdRestService] to INFO
16:42:33,645 |-INFO in ch.qos.logback.classic.model.processor.LoggerModelHandler - Setting level of logger [org.ossreviewtoolkit.reporter.reporters.fossid.FossIdReporter] to INFO
16:42:33,645 |-INFO in ch.qos.logback.classic.model.processor.LoggerModelHandler - Setting level of logger [org.ossreviewtoolkit.scanner.scanners.fossid.FossId] to INFO
16:42:33,645 |-INFO in ch.qos.logback.classic.model.processor.LoggerModelHandler - Setting level of logger [org.ossreviewtoolkit.scanner.scanners.fossid.FossIdConfig] to INFO
16:42:33,645 |-INFO in ch.qos.logback.classic.model.processor.LoggerModelHandler - Setting level of logger [org.ossreviewtoolkit.scanner.scanners.fossid.FossIdUrlProvider] to INFO
16:42:33,646 |-INFO in ch.qos.logback.core.model.processor.DefaultProcessor@1bd0b0e5 - End of configuration.
16:42:33,649 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@dc7b462 - Registering current configuration as safe fallback point

16:42:35.696 [main] INFO org.ossreviewtoolkit.utils.common.EnvironmentVariableFilter - EnvironmentVariableFilter initialized with denySubstrings = [key, pass, pwd, token, user] and allowNames = [CARGO_HTTP_USER_AGENT, COMPOSER_ALLOW_SUPERUSER, CONAN_LOGIN_ENCRYPTION_KEY, CONAN_LOGIN_USERNAME, CONAN_PASSWORD, CONAN_USERNAME, CONAN_USER_HOME, CONAN_USER_HOME_SHORT, DOTNET_CLI_CONTEXT_ANSI_PASS_THRU, GIT_ASKPASS, GIT_HTTP_USER_AGENT, GRADLE_USER_HOME, HACKAGE_USERNAME, HACKAGE_PASSWORD, HACKAGE_KEY, PWD, USER, USERPROFILE].


/ _______ __ / The OSS Review Toolkit, version DOCKER-SNAPSHOT.
| | | | / | |
| | | | | \ | | Running 'analyze' as 'ort' under Java 11.0.17 on Linux
_
/ ||/ |__| with 5 CPUs and a maximum of 1964 MiB of memory.

Environment variables:
ORT_CONFIG_DIR = /home/ort/.ort/config
ORT_DATA_DIR = /home/ort/.ort
JAVA_HOME = /opt/java/openjdk
ANDROID_HOME = /opt/android-sdk

Looking for ORT configuration in the following file:
/home/ort/.ort/config/config.yml (does not exist)

Looking for analyzer-specific configuration in the following files and directories:
/home/ort/.ort/config/curations.yml (does not exist)
/home/ort/.ort/config/curations (does not exist)
/fla/news_async_redux/.ort.yml (does not exist)
/home/ort/.ort/config/resolutions.yml (does not exist)
The following package managers are enabled:
Bower, Bundler, Cargo, Carthage, CocoaPods, Composer, Conan, DotNet, GoDep, GoMod, Gradle, Maven, NPM, NuGet, PIP, Pipenv, PNPM, Poetry, Pub, SBT, SpdxDocumentFile, Stack, Unmanaged, Yarn, Yarn2
Analyzing project path:
/fla/news_async_redux
16:42:39.795 [main] INFO org.ossreviewtoolkit.analyzer.PackageManager - Not analyzing directory '/fla/news_async_redux/.git' as it is hard-coded to be ignored.
16:42:39.827 [main] INFO org.ossreviewtoolkit.analyzer.PackageManager - Not analyzing directory '/fla/news_async_redux/android/.gradle' as it is hard-coded to be ignored.
16:42:50.505 [main] INFO org.ossreviewtoolkit.utils.ort.OrtAuthenticator - Authenticator was successfully installed.
16:42:50.639 [main] INFO org.ossreviewtoolkit.utils.ort.OrtProxySelector - Proxy selector was successfully installed.
Found 2 CocoaPods definition file(s) at:
ios/Podfile
macos/Podfile
Found 2 Gradle definition file(s) at:
android/build.gradle
android/app/build.gradle
Found 2 Pub definition file(s) at:
pubspec.yaml
.dart_tool/flutter_gen/pubspec.yaml
Found 6 definition file(s) from 3 package manager(s) in total.
16:42:51.772 [main] INFO org.ossreviewtoolkit.analyzer.PackageManager - Not analyzing directory '/fla/news_async_redux/.git' as it is hard-coded to be ignored.
16:42:51.780 [main] INFO org.ossreviewtoolkit.analyzer.PackageManager - Not analyzing directory '/fla/news_async_redux/android/.gradle' as it is hard-coded to be ignored.
16:42:54.221 [main] INFO org.ossreviewtoolkit.analyzer.Analyzer - Starting Pub analysis.
16:42:54.262 [main] INFO org.ossreviewtoolkit.analyzer.Analyzer - Gradle is waiting for the following package managers to complete: Pub.
16:42:54.263 [main] INFO org.ossreviewtoolkit.analyzer.Analyzer - Starting CocoaPods analysis.
16:42:54.522 [DefaultDispatcher-worker-3] INFO org.ossreviewtoolkit.utils.common.ProcessCapture - Running 'pod --version --allow-root' in '/home/ort'...
16:42:54.887 [DefaultDispatcher-worker-1] INFO org.ossreviewtoolkit.analyzer.PackageManager - Not analyzing directory '/fla/news_async_redux/.git' as it is hard-coded to be ignored.
16:42:54.891 [DefaultDispatcher-worker-1] INFO org.ossreviewtoolkit.analyzer.PackageManager - Not analyzing directory '/fla/news_async_redux/android/.gradle' as it is hard-coded to be ignored.
16:42:56.340 [DefaultDispatcher-worker-1] INFO org.ossreviewtoolkit.analyzer.managers.Pub - Found 2 Gradle project(s).
16:42:56.344 [DefaultDispatcher-worker-1] INFO org.ossreviewtoolkit.analyzer.managers.Pub - - pubspec.yaml
16:42:56.347 [DefaultDispatcher-worker-1] INFO org.ossreviewtoolkit.analyzer.managers.Pub - - android/build.gradle
16:42:56.347 [DefaultDispatcher-worker-1] INFO org.ossreviewtoolkit.analyzer.managers.Pub - - android/app/build.gradle
16:42:56.364 [DefaultDispatcher-worker-1] INFO org.ossreviewtoolkit.analyzer.managers.Pub - Bootstrapping flutter as it was not found.
16:42:56.369 [DefaultDispatcher-worker-1] INFO org.ossreviewtoolkit.analyzer.managers.Pub - Downloading flutter-3.3.8-stable from https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.3.8-stable.tar.xz...
16:42:57.982 [DefaultDispatcher-worker-3] INFO org.ossreviewtoolkit.analyzer.PackageManager - Resolving CocoaPods dependencies for path 'ios/Podfile'...
16:42:58.027 [DefaultDispatcher-worker-3] INFO org.ossreviewtoolkit.utils.common.ProcessCapture - Running 'pod repo add-cdn trunk https://cdn.cocoapods.org --allow-root' in '/home/ort'...
16:43:02.710 [DefaultDispatcher-worker-3] INFO org.ossreviewtoolkit.utils.common.ProcessCapture - Running 'pod spec which Flutter --version=1.0.0 --allow-root --regex' in '/fla/news_async_redux/ios'...
16:43:12.117 [DefaultDispatcher-worker-3] INFO org.ossreviewtoolkit.utils.common.ProcessCapture - Running 'pod spec which package_info_plus --version=0.4.5 --allow-root --regex' in '/fla/news_async_redux/ios'...
16:43:17.083 [DefaultDispatcher-worker-3] WARN org.ossreviewtoolkit.analyzer.managers.CocoaPods - Failed to get the '.podspec' file for package 'Pod::package_info_plus:0.4.5': IOException: Running 'pod spec which package_info_plus --version=0.4.5 --allow-root --regex' in '/fla/news_async_redux/ios' failed with exit code 1:
[!] Unable to find a pod with name matching `package_info_plus'

16:43:17.118 [DefaultDispatcher-worker-3] INFO org.ossreviewtoolkit.utils.common.ProcessCapture - Running 'pod spec which path_provider_ios --version=0.0.1 --allow-root --regex' in '/fla/news_async_redux/ios'...
16:43:21.170 [DefaultDispatcher-worker-3] WARN org.ossreviewtoolkit.analyzer.managers.CocoaPods - Failed to get the '.podspec' file for package 'Pod::path_provider_ios:0.0.1': IOException: Running 'pod spec which path_provider_ios --version=0.0.1 --allow-root --regex' in '/fla/news_async_redux/ios' failed with exit code 1:
[!] Unable to find a pod with name matching `path_provider_ios'

16:43:21.202 [DefaultDispatcher-worker-3] INFO org.ossreviewtoolkit.utils.common.ProcessCapture - Running 'pod spec which shared_preferences_ios --version=0.0.1 --allow-root --regex' in '/fla/news_async_redux/ios'...
16:43:26.267 [DefaultDispatcher-worker-3] WARN org.ossreviewtoolkit.analyzer.managers.CocoaPods - Failed to get the '.podspec' file for package 'Pod::shared_preferences_ios:0.0.1': IOException: Running 'pod spec which shared_preferences_ios --version=0.0.1 --allow-root --regex' in '/fla/news_async_redux/ios' failed with exit code 1:
[!] Unable to find a pod with name matching `shared_preferences_ios'

16:43:26.299 [DefaultDispatcher-worker-3] INFO org.ossreviewtoolkit.utils.common.ProcessCapture - Running 'pod spec which sqlite3_flutter_libs --version=0.0.1 --allow-root --regex' in '/fla/news_async_redux/ios'...
16:43:30.546 [DefaultDispatcher-worker-3] WARN org.ossreviewtoolkit.analyzer.managers.CocoaPods - Failed to get the '.podspec' file for package 'Pod::sqlite3_flutter_libs:0.0.1': IOException: Running 'pod spec which sqlite3_flutter_libs --version=0.0.1 --allow-root --regex' in '/fla/news_async_redux/ios' failed with exit code 1:
[!] Unable to find a pod with name matching `sqlite3_flutter_libs'

16:43:30.582 [DefaultDispatcher-worker-3] INFO org.ossreviewtoolkit.utils.common.ProcessCapture - Running 'pod spec which sqlite3 --version=3.39.3 --allow-root --regex' in '/fla/news_async_redux/ios'...
16:43:33.122 [DefaultDispatcher-worker-1] INFO org.ossreviewtoolkit.analyzer.managers.Pub - Unpacking '/home/ort/.ort/tools/flutter-3.3.8-stable/flutter_linux_3.3.8-stable.tar.xz' to '/home/ort/.ort/tools/flutter-3.3.8-stable'...
16:43:40.167 [DefaultDispatcher-worker-3] INFO org.ossreviewtoolkit.utils.common.ProcessCapture - Running 'pod spec which url_launcher_ios --version=0.0.1 --allow-root --regex' in '/fla/news_async_redux/ios'...
16:43:44.158 [DefaultDispatcher-worker-3] WARN org.ossreviewtoolkit.analyzer.managers.CocoaPods - Failed to get the '.podspec' file for package 'Pod::url_launcher_ios:0.0.1': IOException: Running 'pod spec which url_launcher_ios --version=0.0.1 --allow-root --regex' in '/fla/news_async_redux/ios' failed with exit code 1:
[!] Unable to find a pod with name matching `url_launcher_ios'

16:43:44.220 [DefaultDispatcher-worker-3] INFO org.ossreviewtoolkit.utils.common.ProcessCapture - Running 'pod spec which video_player_avfoundation --version=0.0.1 --allow-root --regex' in '/fla/news_async_redux/ios'...
16:43:48.009 [DefaultDispatcher-worker-3] WARN org.ossreviewtoolkit.analyzer.managers.CocoaPods - Failed to get the '.podspec' file for package 'Pod::video_player_avfoundation:0.0.1': IOException: Running 'pod spec which video_player_avfoundation --version=0.0.1 --allow-root --regex' in '/fla/news_async_redux/ios' failed with exit code 1:
[!] Unable to find a pod with name matching `video_player_avfoundation'

16:43:48.048 [DefaultDispatcher-worker-3] INFO org.ossreviewtoolkit.utils.common.ProcessCapture - Running 'pod spec which wakelock --version=0.0.1 --allow-root --regex' in '/fla/news_async_redux/ios'...
16:43:51.665 [DefaultDispatcher-worker-3] WARN org.ossreviewtoolkit.analyzer.managers.CocoaPods - Failed to get the '.podspec' file for package 'Pod::wakelock:0.0.1': IOException: Running 'pod spec which wakelock --version=0.0.1 --allow-root --regex' in '/fla/news_async_redux/ios' failed with exit code 1:
[!] Unable to find a pod with name matching `wakelock'

16:43:51.696 [DefaultDispatcher-worker-3] INFO org.ossreviewtoolkit.utils.common.ProcessCapture - Running 'pod spec which webview_flutter_wkwebview --version=0.0.1 --allow-root --regex' in '/fla/news_async_redux/ios'...
16:43:55.461 [DefaultDispatcher-worker-3] WARN org.ossreviewtoolkit.analyzer.managers.CocoaPods - Failed to get the '.podspec' file for package 'Pod::webview_flutter_wkwebview:0.0.1': IOException: Running 'pod spec which webview_flutter_wkwebview --version=0.0.1 --allow-root --regex' in '/fla/news_async_redux/ios' failed with exit code 1:
[!] Unable to find a pod with name matching `webview_flutter_wkwebview'

16:43:57.660 [DefaultDispatcher-worker-3] INFO org.ossreviewtoolkit.analyzer.PackageManager - Resolving CocoaPods dependencies for path 'ios/Podfile' took 59.590896401s.
16:43:57.662 [DefaultDispatcher-worker-3] INFO org.ossreviewtoolkit.analyzer.PackageManager - Resolving CocoaPods dependencies for path 'macos/Podfile'...
16:43:57.692 [DefaultDispatcher-worker-3] INFO org.ossreviewtoolkit.utils.common.ProcessCapture - Running 'pod repo add-cdn trunk https://cdn.cocoapods.org --allow-root' in '/home/ort'...
16:44:00.989 [DefaultDispatcher-worker-3] INFO org.ossreviewtoolkit.utils.common.ProcessCapture - Running 'pod spec which FlutterMacOS --version=1.0.0 --allow-root --regex' in '/fla/news_async_redux/macos'...
16:44:09.218 [DefaultDispatcher-worker-3] WARN org.ossreviewtoolkit.analyzer.managers.CocoaPods - Failed to get the '.podspec' file for package 'Pod::FlutterMacOS:1.0.0': IOException: Running 'pod spec which FlutterMacOS --version=1.0.0 --allow-root --regex' in '/fla/news_async_redux/macos' failed with exit code 1:
[!] Can't find spec for FlutterMacOS.

16:44:09.249 [DefaultDispatcher-worker-3] INFO org.ossreviewtoolkit.utils.common.ProcessCapture - Running 'pod spec which path_provider_macos --version=0.0.1 --allow-root --regex' in '/fla/news_async_redux/macos'...
16:44:12.994 [DefaultDispatcher-worker-3] WARN org.ossreviewtoolkit.analyzer.managers.CocoaPods - Failed to get the '.podspec' file for package 'Pod::path_provider_macos:0.0.1': IOException: Running 'pod spec which path_provider_macos --version=0.0.1 --allow-root --regex' in '/fla/news_async_redux/macos' failed with exit code 1:
[!] Unable to find a pod with name matching `path_provider_macos'

16:44:13.028 [DefaultDispatcher-worker-3] INFO org.ossreviewtoolkit.utils.common.ProcessCapture - Running 'pod spec which shared_preferences_macos --version=0.0.1 --allow-root --regex' in '/fla/news_async_redux/macos'...
16:44:16.668 [DefaultDispatcher-worker-3] WARN org.ossreviewtoolkit.analyzer.managers.CocoaPods - Failed to get the '.podspec' file for package 'Pod::shared_preferences_macos:0.0.1': IOException: Running 'pod spec which shared_preferences_macos --version=0.0.1 --allow-root --regex' in '/fla/news_async_redux/macos' failed with exit code 1:
[!] Unable to find a pod with name matching `shared_preferences_macos'

16:44:16.698 [DefaultDispatcher-worker-3] INFO org.ossreviewtoolkit.utils.common.ProcessCapture - Running 'pod spec which sqlite3_flutter_libs --version=0.0.1 --allow-root --regex' in '/fla/news_async_redux/macos'...
16:44:20.471 [DefaultDispatcher-worker-3] WARN org.ossreviewtoolkit.analyzer.managers.CocoaPods - Failed to get the '.podspec' file for package 'Pod::sqlite3_flutter_libs:0.0.1': IOException: Running 'pod spec which sqlite3_flutter_libs --version=0.0.1 --allow-root --regex' in '/fla/news_async_redux/macos' failed with exit code 1:
[!] Unable to find a pod with name matching `sqlite3_flutter_libs'

16:44:20.512 [DefaultDispatcher-worker-3] INFO org.ossreviewtoolkit.utils.common.ProcessCapture - Running 'pod spec which sqlite3 --version=3.39.2 --allow-root --regex' in '/fla/news_async_redux/macos'...
16:44:24.567 [DefaultDispatcher-worker-3] INFO org.ossreviewtoolkit.utils.common.ProcessCapture - Running 'pod spec which url_launcher_macos --version=0.0.1 --allow-root --regex' in '/fla/news_async_redux/macos'...
16:44:28.299 [DefaultDispatcher-worker-3] WARN org.ossreviewtoolkit.analyzer.managers.CocoaPods - Failed to get the '.podspec' file for package 'Pod::url_launcher_macos:0.0.1': IOException: Running 'pod spec which url_launcher_macos --version=0.0.1 --allow-root --regex' in '/fla/news_async_redux/macos' failed with exit code 1:
[!] Unable to find a pod with name matching `url_launcher_macos'

16:44:28.329 [DefaultDispatcher-worker-3] INFO org.ossreviewtoolkit.utils.common.ProcessCapture - Running 'pod spec which wakelock_macos --version=0.0.1 --allow-root --regex' in '/fla/news_async_redux/macos'...
16:44:31.980 [DefaultDispatcher-worker-3] WARN org.ossreviewtoolkit.analyzer.managers.CocoaPods - Failed to get the '.podspec' file for package 'Pod::wakelock_macos:0.0.1': IOException: Running 'pod spec which wakelock_macos --version=0.0.1 --allow-root --regex' in '/fla/news_async_redux/macos' failed with exit code 1:
[!] Unable to find a pod with name matching `wakelock_macos'

16:44:32.153 [DefaultDispatcher-worker-3] INFO org.ossreviewtoolkit.analyzer.PackageManager - Resolving CocoaPods dependencies for path 'macos/Podfile' took 34.489390308s.
16:44:32.172 [DefaultDispatcher-worker-3] INFO org.ossreviewtoolkit.analyzer.Analyzer - Finished CocoaPods analysis.
16:44:32.385 [main] INFO org.ossreviewtoolkit.analyzer.Analyzer - Gradle is waiting for the following package managers to complete: Pub.
16:45:23.287 [DefaultDispatcher-worker-1] INFO org.ossreviewtoolkit.utils.common.ProcessCapture - Running '/home/ort/.ort/tools/flutter-3.3.8-stable/flutter/bin/flutter config --no-analytics' in '/home/ort'...
Exception in thread "main" java.io.IOException: Running '/home/ort/.ort/tools/flutter-3.3.8-stable/flutter/bin/flutter config --no-analytics' in '/home/ort' failed with exit code 134:

===== CRASH =====
si_signo=Segmentation fault(11), si_code=128, si_addr=(nil)
version=2.18.4 (stable) (Tue Nov 1 15:15:07 2022 +0000) on "linux_x64"
pid=1341, thread=1425, isolate_group=main(0x4003061000), isolate=main(0x40030d8000)
isolate_instructions=4001ed0100, vm_instructions=4001ed0100
pc 0x0000004009d17e2a fp 0x000000400a86bf48 Unknown symbol
pc 0x0000ffffb308862c fp 0x000000400a86bfb0 Unknown symbol
pc 0x0000ffffb3088426 fp 0x000000400a86c048 Unknown symbol
pc 0x0000ffffb309d339 fp 0x000000400a86c0d0 Unknown symbol
pc 0x0000ffffb309cfe8 fp 0x000000400a86c128 Unknown symbol
pc 0x0000ffffb355802d fp 0x000000400a86c168 Unknown symbol
pc 0x0000ffffb3557dc8 fp 0x000000400a86c1a8 Unknown symbol
pc 0x0000ffffb3098df3 fp 0x000000400a86c1e8 Unknown symbol
pc 0x0000ffffb3098af4 fp 0x000000400a86c228 Unknown symbol
pc 0x0000ffffb30c19fd fp 0x000000400a86c268 Unknown symbol
pc 0x0000ffffb3557668 fp 0x000000400a86c2c8 Unknown symbol
pc 0x0000ffffb354ff69 fp 0x000000400a86c318 Unknown symbol
pc 0x0000ffffb3085ba3 fp 0x000000400a86c360 Unknown symbol
pc 0x0000ffffb308581b fp 0x000000400a86c3a0 Unknown symbol
pc 0x0000ffffb3085749 fp 0x000000400a86c3c8 Unknown symbol
pc 0x0000ffffb308566e fp 0x000000400a86c408 Unknown symbol
pc 0x0000ffffb3b23ab8 fp 0x000000400a86c448 Unknown symbol
pc 0x0000ffffb3e02a0c fp 0x000000400a86c4c0 Unknown symbol
pc 0x00000040020482bd fp 0x000000400a86c560 dart::DartEntry::InvokeCode(dart::Code const&, unsigned long, dart::Array const&, dart::Array const&, dart::Thread*)+0x14d
pc 0x00000040020480fc fp 0x000000400a86c5c0 dart::DartEntry::InvokeFunction(dart::Function const&, dart::Array const&, dart::Array const&, unsigned long)+0x14c
pc 0x000000400204a52c fp 0x000000400a86c610 dart::DartLibraryCalls::HandleMessage(long, dart::Instance const&)+0x14c
pc 0x0000004002071bf0 fp 0x000000400a86cba0 dart::IsolateMessageHandler::HandleMessage(std::__2::unique_ptr<dart::Message, std::__2::default_deletedart::Message >)+0x350
pc 0x000000400209b11d fp 0x000000400a86cc10 dart::MessageHandler::HandleMessages(dart::MonitorLocker*, bool, bool)+0x14d
pc 0x000000400209b7ff fp 0x000000400a86cc60 dart::MessageHandler::TaskCallback()+0x1df
pc 0x00000040021be238 fp 0x000000400a86cce0 dart::ThreadPool::WorkerLoop(dart::ThreadPool::Worker*)+0x148
pc 0x00000040021be68d fp 0x000000400a86cd10 dart::ThreadPool::Worker::Main(unsigned long)+0x6d
pc 0x00000040021312d8 fp 0x000000400a86cdd0 /home/ort/.ort/tools/flutter-3.3.8-stable/flutter/bin/cache/dart-sdk/bin/dart+0x21312d8
-- End of DumpStackTrace
qemu: uncaught target signal 6 (Aborted) - core dumped

at org.ossreviewtoolkit.utils.common.ProcessCapture.requireSuccess(ProcessCapture.kt:154)
at org.ossreviewtoolkit.analyzer.managers.Pub.beforeResolution(Pub.kt:169)
at org.ossreviewtoolkit.analyzer.PackageManager.resolveDependencies(PackageManager.kt:259)
at org.ossreviewtoolkit.analyzer.PackageManagerRunner$run$3.invokeSuspend(Analyzer.kt:324)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at kotlinx.coroutines.internal.LimitedDispatcher.run(LimitedDispatcher.kt:42)
at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:95)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)

@MarcelBochtler
Copy link
Member

I tried to reproduce this on my M1 Macbook, with a synthetic test project.
From the logs, this looks like an issue with the Apple Silicon architecture in combination with docker and the bootstrapped flutter version.

The first thing I tried is to analyze this project using ORT without Docker and with Flutter installed via Homebrew.
This works and produces a correct analyzer-result.yml.

However, I can reproduce your issue when building the Docker image using docker build -t ort ..
I did not try to reproduce your second issue with a Docker image build with --platform linux/x86_64, as I'd not expect it to work anyway.

I think we cannot do much about this, other than waiting for a better Rosetta 2 emulation when using Docker, as there is no Linux/arm64 version of Flutter available.

As a workaround, I'd suggest to build ORT natively, install Flutter using Homebrew and produce the analyzer result without Docker.

One additional thing I noticed, Flutter will not be bootstrapped on macOS at all:

val archive = when {
Os.isWindows -> "windows/flutter_windows_$flutterVersion.zip"
Os.isLinux -> "linux/flutter_linux_$flutterVersion.tar.xz"
else -> throw IllegalArgumentException("Unsupported operating system.")
}

I created an issue for that: #6272

@ibelz
Copy link
Author

ibelz commented Dec 22, 2022

Thank you very much Marcel!

Now I have installed ORT form the sources with gradle build and it works - basically.
I have an issue with with an direct git import of a dependency in pubspec.yaml like this:

dependencies:
    ams_error_handler:
        git: ssh://git@...

but I think the analyzer cannot access via ssh. But I have to look into it further.

That's the error:

"Pub::pubspec.yaml:" : [ {
      "timestamp" : "2022-12-22T10:47:25.388528Z",
      "source" : "Pub",
      "message" : "Resolving Pub dependencies for path 'pubspec.yaml' failed with: IOException: Could not find package info for ams_error_handler",
      "severity" : "ERROR"
    } ]

@sschuberth
Copy link
Member

When cloning over ssh://, Git always needs to authenticate (there is no unauthenticated way to clone over ssh://). So either set up SSH authentication on the machine running ORT, e.g. via ssh-agent, or change the URL to https:// to clone over https:// unauthenticated (if the host supports that).

@ibelz
Copy link
Author

ibelz commented Dec 22, 2022

Maybe that's a misunderstanding - or I didn't quite understand what I have to do exactly.

I have already configured SSH locally and also pulled the ORT project over SSH (successfully).

My problem is that in the flutter pubspec.yaml a dependency is drawn via GIT-SSH. This is currently failing.
I have to enable ORT (somehow) to resolve dependencies via SSH.

@sschuberth
Copy link
Member

So, is ams_error_handler maybe hosted in a private repository that your SSH key does not provide access to?

@ibelz
Copy link
Author

ibelz commented Dec 22, 2022

Yes, it's a private repository.

If I call flutter pub get on my local machine, flutter is able to resolve the dependency because of my local SSH Config.
But ORT cannot resolve this - for some reason.

Does ORT support the resolving of unpublished packages?
https://docs.flutter.dev/development/packages-and-plugins/using-packages#dependencies-on-unpublished-packages

@sschuberth
Copy link
Member

Does ORT support the resolving of unpublished packages?

Not sure if it's related, but there might be issues. Maybe @MarcelBochtler or @fviernau can tell.

@ibelz
Copy link
Author

ibelz commented Jan 25, 2023

I have switched to an other flutter project to evaluate ORT for our flutter projects.

Now I'm struggling with the configuration and the possibilities using with Flutter.

  1. Is there somewhere a complete documentation of the structure and fields of the "config.yml"?

For example I enhanced the analyzer part at "enabledPackageManagers" with "Pub" - and it seems to work.
But what kind of options do I have for "Pub"? Obviously there are some as I see for "Gradle" and "Yarn".

analyzer:
    allowDynamicVersions: true

    # A list of enabled package managers.
    enabledPackageManagers: [DotNet, Gradle, Maven, NPM, CocoaPods, Pub]

    # A list of disabled package managers. Disabling a package manager here overrides enabling it in
    # `enabledPackageManagers`.
    disabledPackageManagers: []

    packageManagers:
      Gradle:
        # A list of package manager names that this package manager must run after. For example, this can be used if
        # another package manager generates files that this package manager requires to run correctly.
        mustRunAfter: []

      # Some package managers provide custom configuration options that are documented in the package manager class. At
      # the example of DotNet, these can be set like:
      DotNet:
        options:
          directDependenciesOnly: true

      Yarn2:
        options:
          # If set to true, disable verification of HTTPS certificate of remote registries. Useful when using a proxy to
          # intercept requests to the registry.
          disableRegistryCertificateVerification: false
  1. What possibilities do I have to rate a package?

For example, in Flutter a good package is a "Flutter Favorite" with a lot likes, pub points and popularity - and additionally it should have a verified publisher.

All of this I can see in pub.dev - some examples:
Good Package: https://pub.dev/packages/drift
Poor Package: https://pub.dev/packages/demo

If I look in my analyzer result I see for example this for the package "logging"

{
        "metadata" : {
          "id" : "Pub:logging:logging:1.0.2",
          "purl" : "pkg:pub/logging/[email protected]",
          "declared_licenses" : [ ],
          "declared_licenses_processed" : { },
          "description" : "Provides APIs for debugging and error logging, similar to loggers in other languages, such as the Closure JS Logger and java.util.logging.Logger.",
          "homepage_url" : "",
          "binary_artifact" : {
            "url" : "",
            "hash" : {
              "value" : "",
              "algorithm" : ""
            }
          },
          "source_artifact" : {
            "url" : "",
            "hash" : {
              "value" : "",
              "algorithm" : ""
            }
          },
          "vcs" : {
            "type" : "Git",
            "url" : "https://github.com/dart-lang/logging.git",
            "revision" : "",
            "path" : ""
          },
          "vcs_processed" : {
            "type" : "Git",
            "url" : "https://github.com/dart-lang/logging.git",
            "revision" : "",
            "path" : ""
          }
        }

On Pub.dev https://pub.dev/packages/logging you can see the package is under BSD-3 License, but there is no license information in the result (see above).

It seems that there is no data from Pub.dev at all.

Have I missed something in the configuration or is there no support for this kind of information in ORT?

Thanks a lot!

@sschuberth
Copy link
Member

sschuberth commented Jan 25, 2023

  1. Is there somewhere a complete documentation of the structure and fields of the "config.yml"?

You best bet is https://github.com/oss-review-toolkit/ort/blob/main/model/src/main/resources/reference.yml.

But what kind of options do I have for "Pub"?

These are usually documented as part of the class:

/**
* The [Pub](https://pub.dev/) package manager for Dart / Flutter.
*
* This implementation is using the Pub version that is distributed with Flutter. If Flutter is not installed on the
* system it is automatically downloaded and installed in the `~/.ort/tools` directory. The version of Flutter that is
* automatically installed can be configured by setting the `FLUTTER_VERSION` environment variable.
*/

As you can see, there are no special options supported for Pub. Compare e.g. with Yarn2:

/**
* The [Yarn 2+](https://next.yarnpkg.com/) package manager for JavaScript.
*
* This package manager supports the following [options][PackageManagerConfiguration.options]:
* - *disableRegistryCertificateVerification*: If true, the 'yarn npm info' commands called by this package manager
* won't verify the server certificate of the HTTPS connection to the NPM registry. This allows to replace the latter by
* a local one, e.g. for intercepting the requests or replaying them.
*/

What possibilities do I have to rate a package?

Put simply, none. As this is a Pub-specific feature, ORT's common data model for packages does not reflect this.

On Pub.dev https://pub.dev/packages/logging you can see the package is under BSD-3 License, but there is no license information in the result (see above).

There's a hint in the code:

// Pub does not declare any licenses in the pubspec files, therefore we keep this empty.
declaredLicenses = emptySet(),

So basically, what you see at https://pub.dev/packages/logging/license is what ORT would detect during the scan phase. It's not a declared license (in ORT speak) that would be discovered during analysis already.

But in the end, I'm no Pub expert. Maybe https://pub.dev/ offers some kind of API that would also allow to query the license of a package, but so far I didn't find such an API.

@ibelz
Copy link
Author

ibelz commented Jan 25, 2023

Thank you, that helps a lot.

It is a pity that the meta data from pub.dev cannot be used.

I was hoping ORT would support that.

I know, of course, that Flutter is "exotic" and that the other tools can't do it any better, but I don't know if it's "worth" using ORT for Flutter. I'll take a look at the scan result. It's been running for hours. :)

@sschuberth
Copy link
Member

Maybe https://pub.dev/ offers some kind of API that would also allow to query the license of a package, but so far I didn't find such an API.

Now I found it, see https://pub.dev/help/api and https://github.com/dart-lang/pub/blob/master/doc/repository-spec-v2.md. However, the JSON response e.g. for https://pub.dev/api/packages/logging also does not list any license metadata. There's already an issue for that, see dart-lang/pub-dev#4717.

@sschuberth
Copy link
Member

What possibilities do I have to rate a package?

Put simply, none. As this is a Pub-specific feature, ORT's common data model for packages does not reflect this.

BTW, I feel that we could consider gathering likes, Pub Points, and popularity as part of #3317.

@ibelz
Copy link
Author

ibelz commented Feb 8, 2023

This would be very nice.

I just tried to dig a little bit deeper in the infos I get from ORT and created a sample Flutter Project just with the "Logger", but it fails at anaylze. I have opened an issue for that #6457

@sschuberth
Copy link
Member

I'm closing the issue as the discussion has digressed quite a bit into a bunch of other issues here and there, making it very hard to catch up with what the actual issue to solve is. Please create individual follow-up issues (one for each different issue) if parts of the problem are still reproducible, and describe the necessary steps to do so.

@sschuberth sschuberth closed this as not planned Won't fix, can't repro, duplicate, stale Jan 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docker About Docker topics question An issue that is actually a question
Projects
None yet
Development

No branches or pull requests

3 participants