hanzhi713 / image-collage-maker

A photo mosaic (pixel collage) maker. Use all your friends' profile pictures to approximate your profile picture! 如何用 Python 制作一个炫酷的微信好友图
MIT License
150 stars 14 forks source link

Black screen! #8

Closed Drjacky closed 2 years ago

Drjacky commented 2 years ago

v3.3

Screen Shot 2022-01-16 at 12 11 02
Drjacky commented 2 years ago
➜  NFT ./photomosaic-maker-3.3-macos-x64
DEPRECATION WARNING: The system version of Tk is deprecated and may be removed in a future release. Please don't rely on it. Set TK_SILENCE_DEPRECATION=1 to suppress this warning.
hanzhi713 commented 2 years ago

Interesting. The macOS version is not really tested as I don't own a Mac machine. I'll investigate this.

Drjacky commented 2 years ago

@hanzhi713 I can try your pre-releases on the Mac if you want. Just attach them here and I'll send the result.

hanzhi713 commented 2 years ago

It seems that the Tkinter that comes with macOS has some serious problems (see https://www.python.org/download/mac/tcltk/). My app is built with Python 3.7 and it will use the system supplied Tkinter. Give me a day or two and let me try with Python 3.9 build and see if it works.

hanzhi713 commented 2 years ago

Try this Python 3.9 build: https://github.com/hanzhi713/image-collage-maker/releases/tag/v3.4

Drjacky commented 2 years ago

This one: photomosaic-maker-3.4-macos-x64.3-macos-x64

resulted this ->

./photomosaic-maker-3.4-macos-x64.3-macos-x64
DEPRECATION WARNING: The system version of Tk is deprecated and may be removed in a future release. Please don't rely on it. Set TK_SILENCE_DEPRECATION=1 to suppress this warning.
Screen Shot 2022-01-21 at 09 58 53

Any option/flag we could add to see the stack trace for debugging purposes?

hanzhi713 commented 2 years ago

Any option/flag we could add to see the stack trace for debugging purposes?

The terminal should show stack trace if there's any

Drjacky commented 2 years ago

Then no, the only log was that DEPRECATION WARNING

hanzhi713 commented 2 years ago

Can you try the macos 11 build? https://github.com/hanzhi713/image-collage-maker/releases/tag/v3.4-macos11 Unfortunately github actions do not yet provide macos 12 build environment

Drjacky commented 2 years ago

When the app opened, it was black, then when I dragged the window:

Screen Shot 2022-01-26 at 16 32 13

Then, when you leave it for a few seconds and switch to another desktop and back, it blinks between the black screen and the app UI screen quickly:

Screen Recording 2022-01-26 at 16 35 23

hanzhi713 commented 2 years ago

Ok. Let me see if I can borrow a MacBook running macos 12 to reproduce this.

ncarboni commented 2 years ago

I have the same problem running photomosaic-maker-4.2-macos-11-x64 on Mac 12.3 (M1 Chip)

photomosaic

Any solution? I also have problem installing lapjv on M1, so I was hoping to use at least the binaries

hanzhi713 commented 2 years ago

Unfortunately, my binaries only support x86-64 architecture. M1 is on ARM64 I believe.

hanzhi713 commented 2 years ago

Any solution? I also have problem installing lapjv on M1, so I was hoping to use at least the binaries

If you compile from source, lapjv can work. The lapjv binaries also assume x64 architecture.

Drjacky commented 2 years ago

@hanzhi713 https://github.com/actions/virtual-environments/issues/5446

hanzhi713 commented 2 years ago

This will be helpful, but it's not for M1. Still, I can try to start providing macOS 12 builds.

ncarboni commented 2 years ago

Thank you, however lapjv doesn't seems to be support to be built on m1 either... :/ In any case, if in the future you would like to build it for M1, there are some AWS instances (but definitively not free) https://aws.amazon.com/about-aws/whats-new/2021/12/amazon-ec2-m1-mac-instances-macos/ Thank you for the help!