ThemeEngine icon indicating copy to clipboard operation
ThemeEngine copied to clipboard

Fix for Big Sur crash

Open jslegendre opened this issue 5 years ago • 36 comments

In TKMutableAssetStorage.m add:

- (BOOL)caAllowSubimageOfImage:(CGImageRef)image {
    return YES;
}

jslegendre avatar Aug 18 '20 17:08 jslegendre

Thanks! I've been unable to figure that out myself. I would build ThemeEngine and eventually get an NSException and TKMutableAssets would always be there as an error.

Should be fun trying on Big Sur now.

Hmm - didn't quite work as expected for me. Have you made it compile and being able to open a .car file and not just the Welcome window?

ghost avatar Aug 20 '20 17:08 ghost

Yes, I can open/browse .car files with this. Is it still crashing for you?

jslegendre avatar Aug 20 '20 17:08 jslegendre

Yes,

I get this: libsystem_kernel.dylibmach_msg_trap: 0x7fff6d98bf64 <+0>: movq %rcx, %r10 0x7fff6d98bf67 <+3>: movl $0x100001f, %eax ; imm = 0x100001F 0x7fff6d98bf6c <+8>: syscall -> 0x7fff6d98bf6e <+10>: retq
0x7fff6d98bf6f <+11>: nop
`

the -> 0x7fff6d98bf6e <+10>: retq has a green description that reads Thread 1: signal SIGCONT

ghost avatar Aug 20 '20 17:08 ghost

Sounds like you have a breakpoint set... Try running ThemeEngine without Xcode

jslegendre avatar Aug 20 '20 17:08 jslegendre

Much better ! :D Thanks. Now I can get to see what changes I can make to Big Sur. There are so many .car files that needs some finding out this time around

ghost avatar Aug 20 '20 18:08 ghost

Too bad that I can't save any .car files on Big Sur... I installed Big Sur using csrutil authenticated-root disable and csrutil disable - that still hasn't made a difference. I also mounted( I think) all the volumes and changes permissions on the .car file I want to change. Yet, ThemeEngine doesn't respond to Save commands. Perhaps adding ThemeEngine to the Full Disk Access list would help. Edit.. no, didn't help adding ThemeEngine to the Full Disk Access list.

ghost avatar Aug 20 '20 18:08 ghost

Try restarting Finder. In terminal type killall Finder

jslegendre avatar Aug 20 '20 19:08 jslegendre

In TKMutableAssetStorage.m add:

- (BOOL)caAllowSubimageOfImage:(CGImageRef)image {
    return YES;
}

Would someone be able to build it to an app for me with that change as I am only a graphic designer and editing/building an app is a whole new world for me. it would be greatly appreciated 👉👈

yonigold1 avatar Aug 28 '20 02:08 yonigold1

Would someone be able to compile it for me?

yonigold1 avatar Sep 01 '20 20:09 yonigold1

@yonigold1 I have made a fork of this project and included a notarized release. https://github.com/jslegendre/ThemeEngine/releases/tag/v1.0.0(112)

@MUI68K My fork contains instructions on how to remount the system volume as read/write. I have included various fixes as well as some support for the new glyphs (SF Symbols) on Big Sur and 'Receive from Editor' is also working now. https://github.com/jslegendre/ThemeEngine

jslegendre avatar Sep 06 '20 03:09 jslegendre

@jslegendre Thanks! I see that you mention that Receive from Editor is working again.

@mbert and I spoke about(didn't get any further) multiple Send to Editor and the same for Receive from Editor back when he initially pulled in my before-mentioned "non-fixes" to the way of enumerating assets and the silly scrolling. Examples such as; Send to Sketch Send to Affinity Photo Send to Affinity Designer

And of course the usual Adobe entries. Send to Editor worked fine but I seem to remember it taking Affinity Photo only and not Designer - if both were installed. Receive from Editor never worked despite all my attempts in re-writing some of the script handling the AppleScript sending and receiving. I would think Acorn 6 would have full scripting, but I never got that far myself.

Great seeing Receive from Editor working again.

Thank you for the detailed explanation on Big Sur read/write access. I hope @alexzielenski sees this.

ghost avatar Sep 06 '20 19:09 ghost

Hey so I just want to thank you for doing that!!! and just a little issue I noticed in the app is that it doesn't save any of the edits I made to the .car file I've tried multiple times and can't seem to get it to work

@yonigold1 I have made a fork of this project and included a notarized release. https://github.com/jslegendre/ThemeEngine/releases/tag/v1.0.0(112)

@MUI68K My fork contains instructions on how to remount the system volume as read/write. I have included various fixes as well as some support for the new glyphs (SF Symbols) on Big Sur and 'Receive from Editor' is also working now. https://github.com/jslegendre/ThemeEngine

yonigold1 avatar Sep 07 '20 19:09 yonigold1

@yonigold1 I was getting that problem too but seemed to depend on the file and what edits were made. Issue has been fixed, check out the latest release

jslegendre avatar Sep 07 '20 19:09 jslegendre

im still expeirencing the issue so here let me get at what im trying to do/theme because maybe that can help to fix it. So im trying to theme the Domino's app on iOS because it looks like it was made for iOS 6. So the very first thing i tried to change was the app background but it doesnt seem to save. ill attach the assets.car so you can try your self (im just replacing the background with a white image) Assets.zip

yonigold1 avatar Sep 07 '20 20:09 yonigold1

@yonigold1 Yep, seems to be a problem with .jpg assets because the png files I tried worked fine. Will continue to investigate.

jslegendre avatar Sep 07 '20 23:09 jslegendre

thank you so much for your time i really appreciate it !

yonigold1 avatar Sep 07 '20 23:09 yonigold1

@jslegendre How come the names in the sidebar list are truncated? It's not a major issue as I can quickly find out what's what. What's your thought on my suggestions with having multiple Send to Editor and Receive from Editor? Currently I of course can't use any of these commands as they depend on Adobe's apps.

ghost avatar Sep 08 '20 10:09 ghost

@yonigold1 Turns out the issue was a little more complicated than I thought it would be but it's fixed now.

@MUI68K I will be switching to Sketch for sending/receiving

jslegendre avatar Sep 09 '20 22:09 jslegendre

Thank you!

hatsune-miku avatar Sep 21 '20 07:09 hatsune-miku

@yonigold1 I have made a fork of this project and included a notarized release. https://github.com/jslegendre/ThemeEngine/releases/tag/v1.0.0(112)

@MUI68K My fork contains instructions on how to remount the system volume as read/write. I have included various fixes as well as some support for the new glyphs (SF Symbols) on Big Sur and 'Receive from Editor' is also working now. https://github.com/jslegendre/ThemeEngine

Thank you very much for this! Since there's no "issues" section in your fork, is it possible to re-enable SIP after having replaced .car files? On Catalina I would usually boot into maintenance mode after my modification and run csrutil enable, so would I do csrutil authenticated-root enable; csrutil enable on Big Sur when done? Or can't I because after my modification the system volume is no longer original?

mbert avatar Nov 13 '20 15:11 mbert

Or can't I because after my modification the system volume is no longer original?

I believe that is the case. You may be able to have authenticated-root disabled with normal SIP enabled but I haven’t tried

jslegendre avatar Nov 13 '20 17:11 jslegendre

Thank you. Since Apple is making theming increasingly difficult I am tempted to leave my .car files alone for now. Overall the OS doesn't look bad. Only the 2d traffic light buttons bother me.

mbert avatar Nov 13 '20 17:11 mbert

would it be possible to use this project to restore macOS theme to what it was prior to the Big Sur update ? possibly take all the car files from a previous release (Catalina) and apply them to Big Sur ? I really dislike the new cosmetic changes apple have done. especially the window title bar height, tool bar and tool bar icons. that flat design is bad.

nsklaus avatar Nov 23 '20 08:11 nsklaus

Hey is anyone else not able to save their edits to the car file? when I press save it just doesn't save, save as doesn't work either. Perhaps in the fork this can be fixed

yonigold1 avatar Nov 27 '20 17:11 yonigold1

Hey is anyone else not able to save their edits to the car file? when I press save it just doesn't save, save as doesn't work either. Perhaps in the fork this can be fixed

resolved with the latest version v1.0.0(114): https://github.com/jslegendre/ThemeEngine/releases/tag/v1.0.0(114)

grafikartes avatar Nov 27 '20 17:11 grafikartes

Hey is anyone else not able to save their edits to the car file? when I press save it just doesn't save, save as doesn't work either. Perhaps in the fork this can be fixed

resolved with the latest version v1.0.0(114): https://github.com/jslegendre/ThemeEngine/releases/tag/v1.0.0(114)

Exactly !

ghost avatar Nov 27 '20 20:11 ghost

Thank ? I will test it now

Vào Th 7, 28 thg 11, 2020 lúc 03:59 Allan Nyholm Nielsen < [email protected]> đã viết:

Hey is anyone else not able to save their edits to the car file? when I press save it just doesn't save, save as doesn't work either. Perhaps in the fork this can be fixed

resolved with the latest version v1.0.0(114): https://github.com/jslegendre/ThemeEngine/releases/tag/v1.0.0(114)

Exactly !

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/alexzielenski/ThemeEngine/issues/63#issuecomment-734988470, or unsubscribe https://github.com/notifications/unsubscribe-auth/AP464RR2YN5DIH6HTHJQKATSSAHLZANCNFSM4QD2ZF3A .

quangka avatar Nov 28 '20 00:11 quangka

Is it possible to program themeEngine to work on Ios?

Vào Th 7, 28 thg 11, 2020 lúc 07:39 Quang Buii [email protected] đã viết:

Thank ? I will test it now

Vào Th 7, 28 thg 11, 2020 lúc 03:59 Allan Nyholm Nielsen < [email protected]> đã viết:

Hey is anyone else not able to save their edits to the car file? when I press save it just doesn't save, save as doesn't work either. Perhaps in the fork this can be fixed

resolved with the latest version v1.0.0(114): https://github.com/jslegendre/ThemeEngine/releases/tag/v1.0.0(114)

Exactly !

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/alexzielenski/ThemeEngine/issues/63#issuecomment-734988470, or unsubscribe https://github.com/notifications/unsubscribe-auth/AP464RR2YN5DIH6HTHJQKATSSAHLZANCNFSM4QD2ZF3A .

quangka avatar Nov 28 '20 05:11 quangka

Hepplme

Vào Th 7, 28 thg 11, 2020 lúc 12:21 Quang Buii [email protected] đã viết:

Is it possible to program themeEngine to work on Ios?

Vào Th 7, 28 thg 11, 2020 lúc 07:39 Quang Buii [email protected] đã viết:

Thank ? I will test it now

Vào Th 7, 28 thg 11, 2020 lúc 03:59 Allan Nyholm Nielsen < [email protected]> đã viết:

Hey is anyone else not able to save their edits to the car file? when I press save it just doesn't save, save as doesn't work either. Perhaps in the fork this can be fixed

resolved with the latest version v1.0.0(114): https://github.com/jslegendre/ThemeEngine/releases/tag/v1.0.0(114)

Exactly !

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/alexzielenski/ThemeEngine/issues/63#issuecomment-734988470, or unsubscribe https://github.com/notifications/unsubscribe-auth/AP464RR2YN5DIH6HTHJQKATSSAHLZANCNFSM4QD2ZF3A .

quangka avatar Nov 28 '20 05:11 quangka

@quangka

Is it possible to program themeEngine to work on Ios?

You can edit the iOS .car files by extracting them from iOS onto the Mac and then edit using ThemeEngine. This all requires Jailbreaking you iOS device from what I've heard.

I'm not certain if there's any plans on bringing ThemeEngine over to iOS.

ghost avatar Nov 28 '20 13:11 ghost