bdkjones / CodeKit-1-Old

147 stars 1 forks source link

Codekit hanging after each file compilation #695

Open tenfef opened 10 years ago

tenfef commented 10 years ago

Hi, I rely on Codekit to compile JS and Less for a fairly large scale web app. I've upgraded to Mavericks and it is now hanging for us after every script compile, and the only way to use it is to force quit and re-open Codekit to get it to work.

What can I send you to help debug what's going on?

bdkjones commented 10 years ago

First, make sure you don't have an infinite import loops in your code. That is, File A imports File B, which imports File A.

Second, reset the app by quitting it and then relaunching it while holding down the shift key. Continue to hold shift until the window appears.

tenfef commented 10 years ago

After doing step 2 it now crashes on launch. :(

bdkjones commented 10 years ago

I need the crash report it's generating. If you click "Report", it should bring up a window that displays the full crash log. Copy and paste that into this thread.

tenfef commented 10 years ago

I also tried deleting the app support files, and it still happens.

There was no crash report because it just dies on launch with no dialog. But I dug this up from the console if it helps:

1/11/13 9:46:17.604 am CodeKit[13712]: Migrating old fileTypes to new, 1.3+ fileTypes
1/11/13 9:46:17.663 am CodeKit[13712]: An uncaught exception was raised
1/11/13 9:46:17.663 am CodeKit[13712]: Couldn't posix_spawn: error 9
1/11/13 9:46:17.664 am CodeKit[13712]: (
0   CoreFoundation                      0x00007fff8589441c __exceptionPreprocess + 172
1   libobjc.A.dylib                     0x00007fff8195ae75 objc_exception_throw + 43
2   CoreFoundation                      0x00007fff858942cc +[NSException raise:format:] + 204
3   Foundation                          0x00007fff83344214 -[NSConcreteTask launchWithDictionary:] + 3167
4   CodeKit                             0x000000010c9b508f __52-[LPCompiler initWithAppController:modelController:]_block_invoke + 216
5   libdispatch.dylib                   0x00007fff8903f1d7 _dispatch_call_block_and_release + 12
6   libdispatch.dylib                   0x00007fff8903c2ad _dispatch_client_callout + 8
7   libdispatch.dylib                   0x00007fff8903e09e _dispatch_root_queue_drain + 326
8   libdispatch.dylib                   0x00007fff8903f193 _dispatch_worker_thread2 + 40
9   libsystem_pthread.dylib             0x00007fff8c274ef8 _pthread_wqthread + 314
10  libsystem_pthread.dylib             0x00007fff8c277fb9 start_wqthread + 13

)

1/11/13 9:46:17.664 am CodeKit[13712]: *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Couldn't posix_spawn: error 9'
*** First throw call stack:
(
0   CoreFoundation                      0x00007fff8589441c __exceptionPreprocess + 172
1   libobjc.A.dylib                     0x00007fff8195ae75 objc_exception_throw + 43
2   CoreFoundation                      0x00007fff858942cc +[NSException raise:format:] + 204
3   Foundation                          0x00007fff83344214 -[NSConcreteTask launchWithDictionary:] + 3167
4   CodeKit                             0x000000010c9b508f __52-[LPCompiler initWithAppController:modelController:]_block_invoke + 216
5   libdispatch.dylib                   0x00007fff8903f1d7 _dispatch_call_block_and_release + 12
6   libdispatch.dylib                   0x00007fff8903c2ad _dispatch_client_callout + 8
7   libdispatch.dylib                   0x00007fff8903e09e _dispatch_root_queue_drain + 326
8   libdispatch.dylib                   0x00007fff8903f193 _dispatch_worker_thread2 + 40
9   libsystem_pthread.dylib             0x00007fff8c274ef8 _pthread_wqthread + 314
10  libsystem_pthread.dylib             0x00007fff8c277fb9 start_wqthread + 13
)
ste7enm commented 4 years ago

Similar issue for me. Would love a way to turn off the "Server" functionality of CodeKit, as I believe it's a contributing factor in this. I want to monitor my files for compiling, but I don't need CodeKit to act as a local server for testing / preview. Turning that functionality off and just having it act as a low-key file monitor and compiler would probably give me better performance and reduce the number of crashes / hangs.

Edit: Whoa, didn't notice how old this open issue was... Well, my comment stands. Ha.

bdkjones commented 4 years ago

This is an archived repo for CodeKit 1.x, which was discontinued over 5 years ago. Are you running CodeKit 3.9.2?

ste7enm commented 4 years ago

This is an archived repo for CodeKit 1.x, which was discontinued over 5 years ago. Are you running CodeKit 3.9.2?

Sorry, @bdkjones – I noticed that after I posted, this was the repo that came up in Google when I was searching whether or not there was a way to turn off the server functionality of CodeKit. I was actually running 3.6.1 (just noticed it wasn't updating because of that dumb error when you migrate to a new machine and it thinks the app isn't in the Applications folder).

The latest version is less temperamental, but it still hangs on start / occasionally. It struggles with big projects. I think I'd still like the ability to turn off the web server to hopefully improve performance... Even though this isn't the right place to make a request, after all.

bdkjones commented 4 years ago

Turning off the server will have zero effect on performance. Hold down the Option key while launching CodeKit to perform a safe start.

Sent from my iPhone

On Aug 19, 2019, at 11:55, Steven Moran notifications@github.com wrote:

This is an archived repo for CodeKit 1.x, which was discontinued over 5 years ago. Are you running CodeKit 3.9.2?

Sorry, @bdkjones – I noticed that after I posted, this was the repo that came up in Google when I was searching whether or not there was a way to turn off the server functionality of CodeKit. I was actually running 3.6.1 (just noticed it wasn't updating because of that dumb error when you migrate to a new machine and it thinks the app isn't in the Applications folder).

The latest version is less temperamental, but it still hangs on start / occasionally. It struggles with big projects. I think I'd still like the ability to turn off the web server to hopefully improve performance... Even though this isn't the right place to make a request, after all.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.