rgriebl / brickstore

An offline BrickLink inventory management tool.
https://www.brickstore.dev/
GNU General Public License v3.0
116 stars 26 forks source link

Brickognize Camera screen is black but still works. V 2024.2.1 Build 1184 #845

Open Brick-Slayer opened 7 months ago

Brick-Slayer commented 7 months ago

When I click the camera icon to open the brickognize feature the preview screen is black and you cannot see the part. But if i click the spacebar it will open the correct part in brickstore so the brickognize feature is working but the display is just black for the camera. Seems this has been an issue on Macs for the last few versions. If I revert backto version 2024.1.2 Build 1143 it will work again the previous newer version will not. It also has the same issue if i try the using the camera on my phone or a different webcam also.

Currents system: Mac Book Pro 13-inch, M1, 2020 Chip Apple M1 Memory 8GB Mac Os Sonoma 14.2.1

Screenshot 2024-03-06 at 11 06 26 AM

BrickStore 2024.2.1 (build: 1184)

sirlaugher commented 6 months ago

I have this problem as well and am on a Windows machine. I have tried this on another PC I have that is Windows and have the same issue.

pchtri commented 6 months ago

Same issue here on Windows 11. The black camera problem appeared a couple of versions ago. Preview works fine if I use Brickognize.com

BrickerMom commented 6 months ago

I'm experiencing the same issue. When I connected the camera for the first time, BrickStore displayed the camera view correctly. When I relaunched BrickStore the next day the camera display was showing black. Like the others, the camera is still capturing the image and Brickognize is finding the part.

Mac Mini(late 2014), running Monterey, BrickStore version 2024.2.1 (build:1184)

rgriebl commented 6 months ago

I finally managed to reproduce this problem once now on a Mac, but not in a state where I could debug it. What did work for me, was to simply resize the window.

Could you please try if this works for you too?

pchtri commented 6 months ago

Yes! Resizing the window did resolve the problem for me on Windows 11.

BrickerMom commented 6 months ago

Here's the crazy thing. When I first opened the camera yesterday I was getting the black screen view. Then about half way through the day it started showing the image. I didn't do anything that I can figure out. I didn't update anything, I didn't move the window, I didn't change the size, nothing. It was showing black 1 minute and an image the next.

Ginny

On Mon, Mar 18, 2024, 5:09 PM rgriebl @.***> wrote:

I finally managed to reproduce this problem once now on a Mac, but not in a state where I could debug it. What did work for me, was to simply resize the window.

Could you please try if this works for you too?

— Reply to this email directly, view it on GitHub https://github.com/rgriebl/brickstore/issues/845#issuecomment-2004995467, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXRNDHCOQKRMLGN2GXGORWDYY5J2LAVCNFSM6AAAAABEJONL32VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMBUHE4TKNBWG4 . You are receiving this because you commented.Message ID: @.***>

Brick-Slayer commented 6 months ago

I downloaded the new version again and now it seems to be working fine no matter what size the window it. Thanks for your help in solving this issue on Mac.

rgriebl commented 6 months ago

For people on Macs: the problem comes from the "macOS-10-Legacy" (**) version of BrickStore. It has known issues with Webcam access, but I cannot fix them anymore, as macOS 10.x is not supported anymore. Now the auto update had a bug in the past, where it sometimes installed the legacy version on up-to-date Macs. This will be rectified by the next auto update, or you can manually download the normal version and replace the application (this is what @Brick-Slayer did).

As for the Windows 11 problem: I have no idea right now, if you are on the latest BrickStore version 2024.2.1. If you are on an older version, that is a known - and fixed - bug.

(**) Go to Help > System Information: if it says build.qt.version: 6.4.3, you are using the legacy macOS 10 version.

pilotflying777 commented 6 months ago

I have this problem as well and am on a Windows machine. I have tried this on another PC I have that is Windows and have the same issue.

Same for me. I am using the latest version 2024.3.1 on Windows 11 and the screen remains black until I resize the window manually. Please have a look.

henriquedesousa commented 4 months ago

Hello, I have the same issue, but I'm on Linux Mint (Ubuntu 22.04 based). I have libqt6multimedia6 installed.

sudo apt-get install libqt6multimedia6 Reading package lists... Done Building dependency tree... Done Reading state information... Done libqt6multimedia6 is already the newest version (6.2.4-1).

I have tried to resize the window, but without success. There's some useful log entries when I run Bickstore from the command line:

qrc:/Scanner/CameraPreview.qml:6:1: module "QtMultimedia" is not installed 
     import QtMultimedia 
     ^ (at qrc:/Scanner/CameraPreview.qml, 6)
CameraPreviewWidget: failed to load QML file: (at /brickstore/src/scanner/camerapreviewwidget.cpp, 33)
   "qrc:/Scanner/CameraPreview.qml:6:1: module \"QtMultimedia\" is not installed" (at /brickstore/src/scanner/camerapreviewwidget.cpp, 36)
NEW STATE Scanner::Capture::State::Inactive [[ OLD STATE Scanner::Capture::State::Idle ]] (at /brickstore/src/scanner/capture.cpp, 296)

But the incredible thing is.. is that the recognition is actually working ! It's just very difficult to center a part on the webcam without the preview.

Vielen Dank für Ihr Hilfe.