Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Crash] Emgu.CV.Util.CvException: OpenCV: inv_scale_x > 0 #716

Closed
spoterianski opened this issue May 28, 2023 · 2 comments
Closed

[Crash] Emgu.CV.Util.CvException: OpenCV: inv_scale_x > 0 #716

spoterianski opened this issue May 28, 2023 · 2 comments
Assignees

Comments

@spoterianski
Copy link

System

UVtools v3.13.4 X64
Operative system: Darwin 22.4.0 Darwin Kernel Version 22.4.0: Mon Mar  6 21:00:17 PST 2023; root:xnu-8796.101.5~3/RELEASE_X86_64 X64
Processor: Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
Processor cores: 16
Memory RAM: 15.80 / 30.71 GB
Runtime: osx.13-x64
Framework: .NET 6.0.16
AvaloniaUI: 0.10.21
OpenCV: 4.7.0

Path:       /Applications/UVtools.app/Contents/MacOS/
Executable: /Applications/UVtools.app/Contents/MacOS/UVtools

Printer and Slicer

  • Printer:
  • Slicer:

Description of the bug

Emgu.CV.Util.CvException: OpenCV: inv_scale_x > 0
   at Emgu.CV.CvInvoke.CvErrorHandler(Int32 status, IntPtr funcName, IntPtr errMsg, IntPtr fileName, Int32 line, IntPtr userData)
Category: Non-UI
File: ru_VAC  v-1.0-F_Cu.png  [Version: 0] [Class: ImageFile]

Machine date time: 28.05.2023 19:27:39
    UTC date time: 28.05.2023 16:27:39

How to reproduce

  1. Start Program
  2. File -> Close
  3. Open PNG file 827x591 pixels
  4. Tools -> Change print resolution
  5. From "Machine presets" select "AnyCubic photon M3"
  6. Checkout "Resize layers with proposed ratio"
  7. Click "Change print resolution"

Files

No response

@github-actions
Copy link

This is your first time submitting an issue with UVtools 🥳Please review your issue and ensure that the submit template was followed, the information is complete, and not related to any other open issue. It will be reviewed shortly. Debugging is very important and make the program better. Thanks for contributing and making the software better! 🙌

@sn4k3
Copy link
Owner

sn4k3 commented May 28, 2023

UVtools was not made to work with image files and then use is very limited. However, I can't observe that error, instead I get a controlled error saying: System.NotImplementedException: The method or operation is not implemented.

image

Can you explain your use for such function?

sn4k3 added a commit that referenced this issue May 31, 2023
- **File formats:**
  - **Anycubic:**
    - (Add) Support for version 518 of the file format
    - (Add) Support for Photon Mono X 6Ks (.px6s) and corresponding PrusaSlicer printer
    - (Add) Support for Photon Mono M5 (.pm5) and corresponding PrusaSlicer printer
    - (Add) Support for Photon Mono M5s (.pm5s) and corresponding PrusaSlicer printer
    - (Improvement) Better tables validation and data structures
    - (Improvement) Ensure the correct number of thumbnails are created when converting between files with different thumbnail count
  - (Add) PRZ file format and corresponding PrusaSlicer printer Phrozen Sonic Mini 8K S (#705)
  - (Improvement) When encoding a file with wait time before cure set but file does not support it, attempt to set light-off delay with that extra time if supported
  - (Improvement) Minor code cleanup and improve some types to not nullable
- **PrusaSlicer printers:**
  - (Add) Elegoo Mars 4 Max
  - (Add) Peopoly Phenom XXL V2
  - (Add) Nova3D Bene6
- (Improvement) Suggestion - Wait time before cure: Create the empty layer only to file formats that we know who require it
- (Improvement) Disable suggestions for image file formats
- (Improvement) After file load, if version is outside the supported range for the printer and format it will prompt to change for the latest supported version
- (Improvement) Pixel size information on status bar: If pixel width is not equal to pixel height, show both
- (Fix) Tool - Timelapse: The informative number of additional lifts not respecting the selected layer range and get calculated for whole model height
- (Fix) Tool - Change resolution: Allow image file types to run this tool without error (#716)
- (Fix) Menu - Open recent file: Filenames with underscore (_) are not shown correctly
@sn4k3 sn4k3 closed this as completed Jun 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants