Giter Site home page Giter Site logo

Problem with new build about camera.maui HOT 6 CLOSED

mancda avatar mancda commented on September 16, 2024
Problem with new build

from camera.maui.

Comments (6)

mancda avatar mancda commented on September 16, 2024

Tested version 1.4 on an iOS phone and it works fine.

from camera.maui.

SimonBrettschneider avatar SimonBrettschneider commented on September 16, 2024

I have tried out version 1.4 on Android (google pixel 7 Pro) and have had similar issues. The app crashes. The older version works fine.

from camera.maui.

hjam40 avatar hjam40 commented on September 16, 2024

Hi,

sorry, but I can't reproduce the error. Could you download this repository and test the included app in debug mode?

from camera.maui.

mancda avatar mancda commented on September 16, 2024

I have download the repository test app and found the line of code in MainCameraView.cs InitDevices that is causing the null exception.

            foreach(var s in map.GetOutputSizes(Class.FromType(typeof(ImageReader))))
                cameraInfo.AvailableResolutions.Add(new(s.Width, s.Height));

Works fine on the pixel 5 emulator but errors out on my Samsung S20 device.

from camera.maui.

hjam40 avatar hjam40 commented on September 16, 2024

Hi,

Really I don't understand why it crash... I call the same function in other code part (in previews versions too) and It works... by the way I added an exception control in the last version (1.4.2) and It should works right now.

from camera.maui.

mancda avatar mancda commented on September 16, 2024

That fixed it. Thanks

from camera.maui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.