Grey screen on OSX on v1.10.0 — probably build pipeline issue #603

Closed
opened 2022-12-16 19:01:26 +00:00 by openprivacyuser1234 · 4 comments

Hello, upon downloading cwtch v1.10.0 and opening on OSX it all i get is a grey screen. When starting it from the terminal, I get these logs.

❯ ./Cwtch
flutter: Cwtch version: v1.10.0 built on: 2022-12-14-23-00
flutter: runApp()
flutter: initState: running...
flutter: initState: registering notification, shutdown handlers...
flutter: initState: creating cwtchnotifier, ffi
flutter: Invalid argument(s): Failed to load dynamic library 'libCwtch.x64.dylib': dlopen(libCwtch.x64.dylib, 0x0001): tried: '/Applications/Cwtch.app/Contents/Frameworks/FlutterMacOS.framework/Versions/A/./libCwtch.x64.dylib' (no such file), '/Applications/Cwtch.app/Contents/Frameworks/FlutterMacOS.framework/Versions/A/../../../libCwtch.x64.dylib' (not a mach-o file), '/usr/lib/swift/libCwtch.x64.dylib' (no such file), '/usr/lib/swift/libCwtch.x64.dylib' (no such file), '/Applications/Cwtch.app/Contents/MacOS/../Frameworks/libCwtch.x64.dylib' (not a mach-o file), '/Applications/Cwtch.app/Contents/MacOS/Frameworks/libCwtch.x64.dylib' (no such file), '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libCwtch.x64.dylib' (no such file), '/Applications/Cwtch.app/Contents/MacOS/../Frameworks/libCwtch.x64.dylib' (not a mach-o file), 'libCwtch.x64.dylib' (no such file), '/usr/local/lib/libCwtch.x64.dylib' (no such file), '/usr/lib/libCwtch.x64.dylib' (no such file), '/Applications/Cwtch.app/Contents/MacOS/libCwtch.x64.dylib' (no such file), '/usr/local/lib/libCwtch.x64.dylib' (no such file), '/usr/lib/libCwtch.x64.dylib' (no such file)
flutter: #0      _open (dart:ffi-patch/ffi_dynamic_library_patch.dart:12)
flutter: #1      new DynamicLibrary.open (dart:ffi-patch/ffi_dynamic_library_patch.dart:23)
flutter: #2      new CwtchFfi (package:cwtch/cwtch/ffi.dart:143)
flutter: #3      FlwtchState.initState (package:cwtch/main.dart:92)
flutter: #4      StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:5015)
flutter: #5      ComponentElement.mount (package:flutter/src/widgets/framework.dart:4853)
flutter: #6      Element.inflateWidget (package:flutter/src/widgets/framework.dart:3863)
flutter: #7      Element.updateChild (package:flutter/src/widgets/framework.dart:3592)
flutter: #8      RenderObjectToWidgetElement._rebuild (package:flutter/src/widgets/binding.dart:1195)
flutter: #9      RenderObjectToWidgetElement.mount (package:flutter/src/widgets/binding.dart:1164)
flutter: #10     RenderObjectToWidgetAdapter.attachToRenderTree.<anonymous closure> (package:flutter/src/widgets/binding.dart:1111)
flutter: #11     BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2605)
flutter: #12     RenderObjectToWidgetAdapter.attachToRenderTree (package:flutter/src/widgets/binding.dart:1110)
flutter: #13     WidgetsBinding.attachRootWidget (package:flutter/src/widgets/binding.dart:945)
flutter: #14     WidgetsBinding.scheduleAttachRootWidget.<anonymous closure> (package:flutter/src/widgets/binding.dart:925)
flutter: (elided 4 frames from class _RawReceivePortImpl, class _Timer, and dart:async-patch)

From reading these logs, to me, it seems like the issue is with the "libCwtch.x64.dylib" file that is bundled with the cwtch application. I looked at this file (in Cwtch.app/Contents/Frameworks/libCwtch.x64.dylib) and rather than a binary it appears to be a html file.

Cwtch.app/Contents/Frameworks
❯ cat libCwtch.x64.dylib
<html>
<head><title>404 Not Found</title></head>
<body>
<center><h1>404 Not Found</h1></center>
<hr><center>nginx/1.18.0 (Ubuntu)</center>
</body>
</html>

(the arm64 version is also like this)

I imagine that something is going strangely in your build pipeline for this to happen. Although I don't really know that much about this kind of thing. Also sorry if this issue doesn't have the right labels/tags on it, I couldn't figure out how to add any.

Hello, upon downloading cwtch v1.10.0 and opening on OSX it all i get is a grey screen. When starting it from the terminal, I get these logs. ``` ❯ ./Cwtch flutter: Cwtch version: v1.10.0 built on: 2022-12-14-23-00 flutter: runApp() flutter: initState: running... flutter: initState: registering notification, shutdown handlers... flutter: initState: creating cwtchnotifier, ffi flutter: Invalid argument(s): Failed to load dynamic library 'libCwtch.x64.dylib': dlopen(libCwtch.x64.dylib, 0x0001): tried: '/Applications/Cwtch.app/Contents/Frameworks/FlutterMacOS.framework/Versions/A/./libCwtch.x64.dylib' (no such file), '/Applications/Cwtch.app/Contents/Frameworks/FlutterMacOS.framework/Versions/A/../../../libCwtch.x64.dylib' (not a mach-o file), '/usr/lib/swift/libCwtch.x64.dylib' (no such file), '/usr/lib/swift/libCwtch.x64.dylib' (no such file), '/Applications/Cwtch.app/Contents/MacOS/../Frameworks/libCwtch.x64.dylib' (not a mach-o file), '/Applications/Cwtch.app/Contents/MacOS/Frameworks/libCwtch.x64.dylib' (no such file), '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/libCwtch.x64.dylib' (no such file), '/Applications/Cwtch.app/Contents/MacOS/../Frameworks/libCwtch.x64.dylib' (not a mach-o file), 'libCwtch.x64.dylib' (no such file), '/usr/local/lib/libCwtch.x64.dylib' (no such file), '/usr/lib/libCwtch.x64.dylib' (no such file), '/Applications/Cwtch.app/Contents/MacOS/libCwtch.x64.dylib' (no such file), '/usr/local/lib/libCwtch.x64.dylib' (no such file), '/usr/lib/libCwtch.x64.dylib' (no such file) flutter: #0 _open (dart:ffi-patch/ffi_dynamic_library_patch.dart:12) flutter: #1 new DynamicLibrary.open (dart:ffi-patch/ffi_dynamic_library_patch.dart:23) flutter: #2 new CwtchFfi (package:cwtch/cwtch/ffi.dart:143) flutter: #3 FlwtchState.initState (package:cwtch/main.dart:92) flutter: #4 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:5015) flutter: #5 ComponentElement.mount (package:flutter/src/widgets/framework.dart:4853) flutter: #6 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3863) flutter: #7 Element.updateChild (package:flutter/src/widgets/framework.dart:3592) flutter: #8 RenderObjectToWidgetElement._rebuild (package:flutter/src/widgets/binding.dart:1195) flutter: #9 RenderObjectToWidgetElement.mount (package:flutter/src/widgets/binding.dart:1164) flutter: #10 RenderObjectToWidgetAdapter.attachToRenderTree.<anonymous closure> (package:flutter/src/widgets/binding.dart:1111) flutter: #11 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2605) flutter: #12 RenderObjectToWidgetAdapter.attachToRenderTree (package:flutter/src/widgets/binding.dart:1110) flutter: #13 WidgetsBinding.attachRootWidget (package:flutter/src/widgets/binding.dart:945) flutter: #14 WidgetsBinding.scheduleAttachRootWidget.<anonymous closure> (package:flutter/src/widgets/binding.dart:925) flutter: (elided 4 frames from class _RawReceivePortImpl, class _Timer, and dart:async-patch) ``` From reading these logs, to me, it seems like the issue is with the "libCwtch.x64.dylib" file that is bundled with the cwtch application. I looked at this file (in `Cwtch.app/Contents/Frameworks/libCwtch.x64.dylib`) and rather than a binary it appears to be a html file. ``` Cwtch.app/Contents/Frameworks ❯ cat libCwtch.x64.dylib <html> <head><title>404 Not Found</title></head> <body> <center><h1>404 Not Found</h1></center> <hr><center>nginx/1.18.0 (Ubuntu)</center> </body> </html> ``` (the arm64 version is also like this) I imagine that something is going strangely in your build pipeline for this to happen. Although I don't really know that much about this kind of thing. Also sorry if this issue doesn't have the right labels/tags on it, I couldn't figure out how to add any.
dan was assigned by sarah 2022-12-16 20:43:02 +00:00
sarah added the
mac
label 2022-12-16 20:43:10 +00:00
Owner

Thanks for the report!

This is indeed a pipeline issue. I have opened #604 to fix this.

Thanks for the report! This is indeed a pipeline issue. I have opened https://git.openprivacy.ca/cwtch.im/cwtch-ui/pulls/604 to fix this.
Owner

New fixed Mac builds now available at https://cwtch.im/download/#mac (Cwtch 1.10.0.1)

New fixed Mac builds now available at https://cwtch.im/download/#mac (Cwtch 1.10.0.1)
sarah added the
waiting-on-fix-confirmation
label 2022-12-16 21:09:10 +00:00

downloaded new build and it is working now! thanks!! <3

downloaded new build and it is working now! thanks!! <3
Owner

Awesome! Thanks for reporting and testing!

Awesome! Thanks for reporting and testing!
sarah closed this issue 2022-12-16 21:53:08 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cwtch.im/cwtch-ui#603
No description provided.