gitbutler icon indicating copy to clipboard operation
gitbutler copied to clipboard

UI Not loading properly.

Open Wolverin-e opened this issue 1 year ago • 9 comments

Version

0.12.19

Operating System

Mac OS X

Distribution Method

dmg (Intel)

Describe the issue

My UI is not loading properly Screenshot 2024-08-12 at 7 28 11 PM Screenshot 2024-08-12 at 7 28 20 PM Screenshot 2024-08-12 at 7 31 27 PM Screenshot 2024-08-12 at 7 31 37 PM Screenshot 2024-08-12 at 7 26 59 PM Screenshot 2024-08-12 at 7 27 08 PM Screenshot 2024-08-12 at 7 27 29 PM Screenshot 2024-08-12 at 7 27 58 PM

How to reproduce

  • Download Latest Mac Intel DMG
  • Install (Ui does not look well here as well)
  • Clone a Repository (Ui does not look & work well)

Expected behavior

The UI should Look & work like as shown in the video https://youtu.be/PWc4meBj4jo?si=WX5sleIMW5LX6LT5

Relevant log output

[Error] ipc->list_branches: {"projectId":"f2324790-4fa2-4cf7-9f1f-9ececc79469f","filter":{}} (2)
Error: There is no default target
Object
	(anonymous function) (ipc.wSV4mBKh.js:1:1046)
	asyncFunctionResume
	(anonymous function)
	promiseReactionJobWithoutPromise
	promiseReactionJob
[Error] 347daf116d584846b5be7cb08cf9b6ec: There is no default target

o@tauri://localhost/_app/immutable/chunks/ipc.wSV4mBKh.js:1:691
fromError@tauri://localhost/_app/immutable/chunks/ipc.wSV4mBKh.js:1:860
@tauri://localhost/_app/immutable/chunks/ipc.wSV4mBKh.js:1:1022
asyncFunctionResume@[native code]
@[native code]
promiseReactionJobWithoutPromise@[native code]
promiseReactionJob@[native code]

	N (app.4MuxQ0qP.js:6:205)
	(anonymous function) (app.4MuxQ0qP.js:3:3158)
[Error] Unhandled Promise Rejection: Error: There is no default target
	(anonymous function) (groupBy.DTzsBiCl.js:1:17281)
	asyncFunctionResume
	(anonymous function)
	promiseReactionJobWithoutPromise
	promiseReactionJob
[Error] ipc->list_remote_branches: {"projectId":"f2324790-4fa2-4cf7-9f1f-9ececc79469f"} (2)
Error: There is no default target
Object
	(anonymous function) (ipc.wSV4mBKh.js:1:1046)
	asyncFunctionResume
	(anonymous function)
	promiseReactionJobWithoutPromise
	promiseReactionJob
[Error] ipc->list_branches: {"projectId":"f2324790-4fa2-4cf7-9f1f-9ececc79469f","filter":{}} (2)
Error: There is no default target
Object
	(anonymous function) (ipc.wSV4mBKh.js:1:1046)
	asyncFunctionResume
	(anonymous function)
	promiseReactionJobWithoutPromise
	promiseReactionJob
[Error] 5d68025459454c3abc3a12e613b26048: There is no default target

o@tauri://localhost/_app/immutable/chunks/ipc.wSV4mBKh.js:1:691
fromError@tauri://localhost/_app/immutable/chunks/ipc.wSV4mBKh.js:1:860
@tauri://localhost/_app/immutable/chunks/ipc.wSV4mBKh.js:1:1022
asyncFunctionResume@[native code]
@[native code]
promiseReactionJobWithoutPromise@[native code]
promiseReactionJob@[native code]

	N (app.4MuxQ0qP.js:6:205)
	(anonymous function) (app.4MuxQ0qP.js:3:3158)
[Error] Unhandled Promise Rejection: Error: There is no default target
	(anonymous function) (groupBy.DTzsBiCl.js:1:17281)
	asyncFunctionResume
	(anonymous function)
	promiseReactionJobWithoutPromise
	promiseReactionJob
[Error] ipc->fetch_from_remotes: {"projectId":"f2324790-4fa2-4cf7-9f1f-9ececc79469f","action":"auto"} (2)
Error: There is no default target
Object
	(anonymous function) (ipc.wSV4mBKh.js:1:1046)
	asyncFunctionResume
	(anonymous function)
	promiseReactionJobWithoutPromise
	promiseReactionJob

Wolverin-e avatar Aug 12 '24 14:08 Wolverin-e

Thanks a lot for reporting!

Since GitButler uses the built-in browser's WebView, I wonder if it relies on more recent versions than are present on your system?

Could you see if what navigator.userAgent yields on your system? Here is the output of mine.

Screenshot 2024-08-12 at 17 32 29

Thanks a lot for your help.

Byron avatar Aug 12 '24 15:08 Byron

Hi @Byron

I did navigator.userAgent & it looks like this:

Screenshot 2024-08-13 at 10 35 52 AM

Wolverin-e avatar Aug 13 '24 05:08 Wolverin-e

Thank you, that's interesting, it looks like the very same version. Does this mean you are on MacOS 14.6.1 as well?

CC @PavelLaptev - it looks like CSS isn't interpreted correctly, but the browser-engine claims to be the same.

Byron avatar Aug 13 '24 05:08 Byron

@Wolverin-e can you check your network tab in the dev tools? Are there any CSS files that maybe didn't load correctly?

Wasn't able to reproduce on 0.12.19 on Linux btw :thinking:

ndom91 avatar Aug 13 '24 09:08 ndom91

Thank you, that's interesting, it looks like the very same version. Does this mean you are on MacOS 14.6.1 as well?

CC @PavelLaptev - it looks like CSS isn't interpreted correctly, but the browser-engine claims to be the same.

@Byron my MacOS version is: 12.0.1

Wolverin-e avatar Aug 13 '24 13:08 Wolverin-e

@ndom91 I was checking the network tab & I don't think I received any 404s.

Here is the HAR Export from my Network Tab: (I performed a No-Cache Hard Reload before recording the activity) localhost.har.zip

Screenshots: Screenshot 2024-08-13 at 7 23 20 PM Screenshot 2024-08-13 at 7 23 29 PM Screenshot 2024-08-13 at 7 23 58 PM Screenshot 2024-08-13 at 7 24 04 PM

Wolverin-e avatar Aug 13 '24 13:08 Wolverin-e

Thank you, that's interesting, it looks like the very same version. Does this mean you are on MacOS 14.6.1 as well? CC @PavelLaptev - it looks like CSS isn't interpreted correctly, but the browser-engine claims to be the same.

@Byron my MacOS version is: 12.0.1

Thanks! Then my best guess would be that the browser engine used here is 'somehow' old enough to not understand some of the CSS the way it should?

When I check Safari -> About I see Version 17.6 (19618.3.11.11.5) - is it the same as yours?

Byron avatar Aug 13 '24 18:08 Byron

Thank you, that's interesting, it looks like the very same version. Does this mean you are on MacOS 14.6.1 as well?

CC @PavelLaptev - it looks like CSS isn't interpreted correctly, but the browser-engine claims to be the same.

@Byron my MacOS version is: 12.0.1

Looks like MacOS 12.0.1 corresponds to safari ~15.1 (https://tauri.app/v1/references/webview-versions/#webkit-versions-in-safari).

You're right, this probably doesn't support some of the more modern css features that are being used.

ndom91 avatar Aug 14 '24 06:08 ndom91

@Byron @ndom91 Safari → About shows: Version 15.1 (17612.2.9.1.20)

Wolverin-e avatar Aug 14 '24 16:08 Wolverin-e

probably related https://github.com/gitbutlerapp/gitbutler/issues/2878

PavelLaptev avatar Aug 26 '24 09:08 PavelLaptev

Closing this one since we havent heard back in a while. Feel free to open a new issue if anything else arises

PavelLaptev avatar Dec 25 '24 01:12 PavelLaptev