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

NSImageCache on Mac Catalina 10.15.6 #311

Closed
BenStigsen opened this issue Aug 30, 2020 · 4 comments
Closed

NSImageCache on Mac Catalina 10.15.6 #311

BenStigsen opened this issue Aug 30, 2020 · 4 comments

Comments

@BenStigsen
Copy link

BenStigsen commented Aug 30, 2020

Expected Behavior
The application should be able to run on Mac Catalina 10.15.6

Actual Behavior
Produces an NSImageCache exception

Steps to Reproduce the Problem

  1. Open the application

Specifications

  • NeutralinoJs Version: 1.5.0
  • NeutralinoJs CLI version: 1.7.0
  • Platform: Mac Catalina 10.15.6

This isn't on my PC, this is however something I tried to release which can be found here. I created a release script in Python, which instead of generating one zip archive for all platforms at once, it generates three different zip archives for each platform, with the platform specific executable in each. I've compared the folders when using my script and Neu CLI, it does not make a difference to the folder content, except for only having one executable, instead of three. The executable is outputted as neutralino instead of neutralino-mac, but this hopefully shouldn't make a difference.

@BenStigsen
Copy link
Author

This is still a valid issue.

@shalithasuranga
Copy link
Member

There were some issues with the mac version. Now we have a new version for Neutralinojs mac. Could you please check it.

@wenq1
Copy link

wenq1 commented Mar 6, 2023

The issue persists with the latest version.

[1] ERROR 2023-03-06 18:20:29,339 Unable to open ./www/build/icons/appIcon.png api/debug/debug.cpp:16 wc@unknown-host
[1] 2023-03-06 18:20:29.344 neutralino-mac_x64[9397:3110234] *** Terminating app due to uncaught exception 'NSImageCacheException', reason: 'Cannot lock focus on image <NSImage 0x7ffea9e41a90 Size={0, 0} Reps=(
[1] )>, because it is size zero.'
[1] *** First throw call stack:
[1] (
[1]     0   CoreFoundation                      0x00007fff325fab57 __exceptionPreprocess + 250
[1]     1   libobjc.A.dylib                     0x00007fff6b4445bf objc_exception_throw + 48
[1]     2   CoreFoundation                      0x00007fff325fa9b5 +[NSException raise:format:] + 189
[1]     3   AppKit                              0x00007fff2f96e0fd -[NSImage _lockFocusOnRepresentation:rect:context:hints:flipped:] + 316
[1]     4   AppKit                              0x00007fff2f96dfab __51-[NSImage lockFocusWithRect:context:hints:flipped:]_block_invoke + 66
[1]     5   AppKit                              0x00007fff2f94a4d5 -[NSImage _usingBestRepresentationForRect:context:hints:body:] + 145
[1]     6   AppKit                              0x00007fff2f96df5f -[NSImage lockFocusWithRect:context:hints:flipped:] + 141
[1]     7   AppKit                              0x00007fff2f9fcc63 -[NSImage lockFocusFlipped:] + 111
[1]     8   AppKit                              0x00007fff2fac839f __45-[NSApplication _updateIconImageFromOriginal]_block_invoke + 38
[1]     9   AppKit                              0x00007fff2f7db751 +[NSAppearance _performWithCurrentAppearance:usingBlock:] + 66
[1]     10  AppKit                              0x00007fff2fac82d2 -[NSApplication _updateIconImageFromOriginal] + 328
[1]     11  AppKit                              0x00007fff2fac8105 -[NSApplication _setApplicationIconImage:setDockImage:] + 68
[1]     12  neutralino-mac_x64                  0x000000010fbc0c8c _ZN6window7setIconERKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE + 249
[1]     13  neutralino-mac_x64                  0x000000010fbc0f9a _ZN6window11controllers14__createWindowEv + 445
[1]     14  neutralino-mac_x64                  0x000000010fbc3582 _ZN6window11controllers4initERKN8nlohmann10basic_jsonINSt3__13mapENS3_6vectorENS3_12basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEbxydS9_NS1_14adl_serializerENS5_IhNS9_IhEEEEEE + 1069
[1]     15  neutralino-mac_x64                  0x000000010fb5cd8a _Z10__startAppv + 635
[1]     16  neutralino-mac_x64                  0x000000010fb5da26 main + 172
[1]     17  libdyld.dylib                       0x00007fff6c5eccc9 start + 1
[1]     18  ???                                 0x0000000000000009 0x0 + 9
[1] )
[1] libc++abi.dylib: terminating with uncaught exception of type NSException
[1] neu: INFO neutralino-mac_x64 was stopped with success code 0
[1] neu run --frontend-lib-dev -- --window-enable-inspector exited with code 0
--> Sending SIGTERM to other processes..


--- Project: nouveau (js.neutralino.vite react) ---
Neutralinojs binaries: v4.6.0
Neutralinojs client: v3.5.0
Project version: v0.0.0

@techo207
Copy link

I was able to fix this error adding a correct path to image in neutralino.config.json in property modes.window.icon

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

4 participants