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

MacOS tests failed #57

Open
al-kau opened this issue Nov 14, 2024 · 0 comments
Open

MacOS tests failed #57

al-kau opened this issue Nov 14, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@al-kau
Copy link
Contributor

al-kau commented Nov 14, 2024

The project cannot pass tests on MacOS.

Error:

Starting test execution, please wait...
A total of 1 test files matched the specified pattern.
  Failed AddContactToDataStorage [618 ms]
  Error Message:
   System.TypeInitializationException : The type initializer for 'SQLite.SQLiteConnection' threw an exception.
  ----> System.DllNotFoundException : Unable to load shared library 'e_sqlcipher' or one of its dependencies. In order to help diagnose loading problems, consider setting the DYLD_PRINT_LIBRARIES environment variable: 
dlopen(/Users/runner/.dotnet/shared/Microsoft.NETCore.App/8.0.11/e_sqlcipher.dylib, 0x0001): tried: '/Users/runner/.dotnet/shared/Microsoft.NETCore.App/8.0.11/e_sqlcipher.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/runner/.dotnet/shared/Microsoft.NETCore.App/8.0.11/e_sqlcipher.dylib' (no such file), '/Users/runner/.dotnet/shared/Microsoft.NETCore.App/8.0.11/e_sqlcipher.dylib' (no such file)
dlopen(/Users/runner/work/TuviCore/TuviCore/Sources/Tests/Tuvi.Core.DataStorage.Impl.Tests/bin/Debug/net8.0/e_sqlcipher.dylib, 0x0001): tried: '/Users/runner/work/TuviCore/TuviCore/Sources/Tests/Tuvi.Core.DataStorage.Impl.Tests/bin/Debug/net8.0/e_sqlcipher.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/runner/work/TuviCore/TuviCore/Sources/Tests/Tuvi.Core.DataStorage.Impl.Tests/bin/Debug/net8.0/e_sqlcipher.dylib' (no such file), '/Users/runner/work/TuviCore/TuviCore/Sources/Tests/Tuvi.Core.DataStorage.Impl.Tests/bin/Debug/net8.0/e_sqlcipher.dylib' (no such file)
dlopen(e_sqlcipher.dylib, 0x0001): tried: 'e_sqlcipher.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OSe_sqlcipher.dylib' (no such file), '/usr/lib/e_sqlcipher.dylib' (no such file, not in dyld cache), 'e_sqlcipher.dylib' (no such file), '/usr/local/lib/e_sqlcipher.dylib' (no such file), '/usr/lib/e_sqlcipher.dylib' (no such file, not in dyld cache)
dlopen(/Users/runner/.dotnet/shared/Microsoft.NETCore.App/8.0.11/libe_sqlcipher.dylib, 0x0001): tried: '/Users/runner/.dotnet/shared/Microsoft.NETCore.App/8.0.11/libe_sqlcipher.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/runner/.dotnet/shared/Microsoft.NETCore.App/8.0.11/libe_sqlcipher.dylib' (no such file), '/Users/runner/.dotnet/shared/Microsoft.NETCore.App/8.0.11/libe_sqlcipher.dylib' (no such file)
dlopen(/Users/runner/work/TuviCore/TuviCore/Sources/Tests/Tuvi.Core.DataStorage.Impl.Tests/bin/Debug/net8.0/libe_sqlcipher.dylib, 0x0001): tried: '/Users/runner/work/TuviCore/TuviCore/Sources/Tests/Tuvi.Core.DataStorage.Impl.Tests/bin/Debug/net8.0/libe_sqlcipher.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/runner/work/TuviCore/TuviCore/Sources/Tests/Tuvi.Core.DataStorage.Impl.Tests/bin/Debug/net8.0/libe_sqlcipher.dylib' (no such file), '/Users/runner/work/TuviCore/TuviCore/Sources/Tests/Tuvi.Core.DataStorage.Impl.Tests/bin/Debug/net8.0/libe_sqlcipher.dylib' (no such file)
dlopen(libe_sqlcipher.dylib, 0x0001): tried: 'libe_sqlcipher.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OSlibe_sqlcipher.dylib' (no such file), '/usr/lib/libe_sqlcipher.dylib' (no such file, not in dyld cache), 'libe_sqlcipher.dylib' (no such file), '/usr/local/lib/libe_sqlcipher.dylib' (no such file), '/usr/lib/libe_sqlcipher.dylib' (no such file, not in dyld cache)
dlopen(/Users/runner/.dotnet/shared/Microsoft.NETCore.App/8.0.11/e_sqlcipher, 0x0001): tried: '/Users/runner/.dotnet/shared/Microsoft.NETCore.App/8.0.11/e_sqlcipher' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/runner/.dotnet/shared/Microsoft.NETCore.App/8.0.11/e_sqlcipher' (no such file), '/Users/runner/.dotnet/shared/Microsoft.NETCore.App/8.0.11/e_sqlcipher' (no such file)
dlopen(/Users/runner/work/TuviCore/TuviCore/Sources/Tests/Tuvi.Core.DataStorage.Impl.Tests/bin/Debug/net8.0/e_sqlcipher, 0x0001): tried: '/Users/runner/work/TuviCore/TuviCore/Sources/Tests/Tuvi.Core.DataStorage.Impl.Tests/bin/Debug/net8.0/e_sqlcipher' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/runner/work/TuviCore/TuviCore/Sources/Tests/Tuvi.Core.DataStorage.Impl.Tests/bin/Debug/net8.0/e_sqlcipher' (no such file), '/Users/runner/work/TuviCore/TuviCore/Sources/Tests/Tuvi.Core.DataStorage.Impl.Tests/bin/Debug/net8.0/e_sqlcipher' (no such file)
dlopen(e_sqlcipher, 0x0001): tried: 'e_sqlcipher' (no such file), '/System/Volumes/Preboot/Cryptexes/OSe_sqlcipher' (no such file), '/usr/lib/e_sqlcipher' (no such file, not in dyld cache), 'e_sqlcipher' (no such file), '/usr/local/lib/e_sqlcipher' (no such file), '/usr/lib/e_sqlcipher' (no such file, not in dyld cache)
dlopen(/Users/runner/.dotnet/shared/Microsoft.NETCore.App/8.0.11/libe_sqlcipher, 0x0001): tried: '/Users/runner/.dotnet/shared/Microsoft.NETCore.App/8.0.11/libe_sqlcipher' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/runner/.dotnet/shared/Microsoft.NETCore.App/8.0.11/libe_sqlcipher' (no such file), '/Users/runner/.dotnet/shared/Microsoft.NETCore.App/8.0.11/libe_sqlcipher' (no such file)
dlopen(/Users/runner/work/TuviCore/TuviCore/Sources/Tests/Tuvi.Core.DataStorage.Impl.Tests/bin/Debug/net8.0/libe_sqlcipher, 0x0001): tried: '/Users/runner/work/TuviCore/TuviCore/Sources/Tests/Tuvi.Core.DataStorage.Impl.Tests/bin/Debug/net8.0/libe_sqlcipher' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/runner/work/TuviCore/TuviCore/Sources/Tests/Tuvi.Core.DataStorage.Impl.Tests/bin/Debug/net8.0/libe_sqlcipher' (no such file), '/Users/runner/work/TuviCore/TuviCore/Sources/Tests/Tuvi.Core.DataStorage.Impl.Tests/bin/Debug/net8.0/libe_sqlcipher' (no such file)
dlopen(libe_sqlcipher, 0x0001): tried: 'libe_sqlcipher' (no such file), '/System/Volumes/Preboot/Cryptexes/OSlibe_sqlcipher' (no such file), '/usr/lib/libe_sqlcipher' (no such file, not in dyld cache), 'libe_sqlcipher' (no such file), '/usr/local/lib/libe_sqlcipher' (no such file), '/usr/lib/libe_sqlcipher' (no such file, not in dyld cache)

  Stack Trace:
     at SQLite.SQLiteConnection..ctor(SQLiteConnectionString connectionString)
   at SQLite.SQLiteConnectionWithLock..ctor(SQLiteConnectionString connectionString)
   at SQLite.SQLiteConnectionPool.Entry..ctor(SQLiteConnectionString connectionString)
   at SQLite.SQLiteConnectionPool.GetConnectionAndTransactionLock(SQLiteConnectionString connectionString, Object& transactionLock)
   at SQLite.SQLiteAsyncConnection.GetConnectionAndTransactionLock(Object& transactionLock)
   at SQLite.SQLiteAsyncConnection.<>c__DisplayClass34_0`1.<TransactAsync>b__0()
   at System.Threading.Tasks.Task`1.InnerInvoke()
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
--- End of stack trace from previous location ---
   at Tuvi.Core.DataStorage.Impl.PasswordProtectedStorage.<>c__DisplayClass12_0.<<CreateAsync>b__0>d.MoveNext() in /Users/runner/work/TuviCore/TuviCore/Sources/Tuvi.Core.DataStorage.Impl/PasswordProtectedStorage.cs:line [62](https://github.com/Eppie-io/TuviCore/actions/runs/11835240814/job/32977612365#step:6:63)
--- End of stack trace from previous location ---
   at Tuvi.Core.DataStorage.Impl.PasswordProtectedStorage.DoCancellableTaskAsync(Func`2 task, CancellationToken cancellationToken) in /Users/runner/work/TuviCore/TuviCore/Sources/Tuvi.Core.DataStorage.Impl/PasswordProtectedStorage.cs:line 263
   at Tuvi.Core.DataStorage.Tests.TestWithStorageBase.CreateDataStorageAsync() in /Users/runner/work/TuviCore/TuviCore/Sources/Tests/Tuvi.Core.DataStorage.Impl.Tests/TestWithStorageBase.cs:line 29
   at Tuvi.Core.DataStorage.Tests.ContactsTests.SetupAsync() in /Users/runner/work/TuviCore/TuviCore/Sources/Tests/Tuvi.Core.DataStorage.Impl.Tests/DataStorageContactsTests.cs:line 17
   at NUnit.Framework.Internal.TaskAwaitAdapter.GenericAdapter`1.BlockUntilCompleted()
   at NUnit.Framework.Internal.MessagePumpStrategy.NoMessagePumpStrategy.WaitForCompletion(AwaitAdapter awaiter)
   at NUnit.Framework.Internal.AsyncToSyncAdapter.Await(Func`1 invoke)
   at NUnit.Framework.Internal.Commands.SetUpTearDownItem.RunSetUpOrTearDownMethod(TestExecutionContext context, IMethodInfo method)
   at NUnit.Framework.Internal.Commands.SetUpTearDownItem.RunSetUp(TestExecutionContext context)
   at NUnit.Framework.Internal.Commands.SetUpTearDownCommand.<>c__DisplayClass0_0.<.ctor>b__0(TestExecutionContext context)
   at NUnit.Framework.Internal.Commands.BeforeAndAfterTestCommand.<>c__DisplayClass1_0.<Execute>b__0()
   at NUnit.Framework.Internal.Commands.DelegatingTestCommand.RunTestMethodInThreadAbortSafeZone(TestExecutionContext context, Action action)
--DllNotFoundException
   at System.Runtime.InteropServices.NativeLibrary.LoadLibraryByName(String libraryName, Assembly assembly, Nullable`1 searchPath, Boolean throwOnError)
   at SQLitePCL.NativeLibrary.Load(String libraryName, Assembly assy, Int32 flags)
   at SQLitePCL.Batteries_V2.MakeDynamic(String name, Int32 flags)
   at SQLitePCL.Batteries_V2.DoDynamic_cdecl(String name, Int32 flags)
   at SQLitePCL.Batteries_V2.Init()
   at SQLite.SQLiteConnection..cctor()
@al-kau al-kau added the bug Something isn't working label Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant