janl / couchdbx-core

Package a CouchDB installation on Mac OS X with any Erlang and CouchDB version
89 stars 12 forks source link

CouchDBX 0.10.1-R13B02 running test suite hangs on OS X 10.6.2 #19

Closed flaw19plane closed 14 years ago

flaw19plane commented 14 years ago

After downloading a fresh http://cloud.github.com/downloads/janl/couchdbx-core/CouchDBX-0.10.1-R13b02-64bit-Snow-Leopard.zip and running the 'Test Suite', the CouchDBX application hangs (for at least 5 minutes now) at: 'GET' /test_suite_db/_design/test/_view/summate?reduce=false 200

Activity view says: CouchDBX (does not respond) 0.0% CPU usage

The is no line in any logfile when searching for 'couch' neither 'erlang'

flaw19plane commented 14 years ago

Sampling process 24074 for 1 seconds with 1 millisecond of run time between samples Sampling completed, processing symbols... Analysis of sampling CouchDBX (pid 24074) every 1 millisecond Call graph: 871 Thread_516034 DispatchQueue1: com.apple.main-thread (serial) 871 0x9090909090900000 871 WebCore::JSDOMWindowShell::~JSDOMWindowShell() 871 0x10d0dac00 871 0x10074b160 871 JSC::Interpreter::execute(JSC::FunctionBodyNode, JSC::ExecState, JSC::JSFunction, JSC::JSObject, JSC::ArgList const&, JSC::ScopeChainNode, JSC::JSValue) 871 0x5821efc002a4 871 WebCore::jsXMLHttpRequestPrototypeFunctionSend(JSC::ExecState, JSC::JSObject, JSC::JSValue, JSC::ArgList const&) 871 WebCore::JSXMLHttpRequest::send(JSC::ExecState, JSC::ArgList const&) 871 WebCore::XMLHttpRequest::send(WebCore::String const&, int&) 871 WebCore::XMLHttpRequest::makeSameOriginRequest(int&) 871 WebCore::XMLHttpRequest::loadRequestSynchronously(WebCore::ResourceRequest&, int&) 871 WebCore::DocumentThreadableLoader::loadResourceSynchronously(WebCore::Document, WebCore::ResourceRequest const&, WebCore::ThreadableLoaderClient&, WebCore::StoredCredentials) 871 WebCore::FrameLoader::loadResourceSynchronously(WebCore::ResourceRequest const&, WebCore::StoredCredentials, WebCore::ResourceError&, WebCore::ResourceResponse&, WTF::Vector<char, 0ul>&) 871 WebCore::ResourceHandle::loadResourceSynchronously(WebCore::ResourceRequest const&, WebCore::StoredCredentials, WebCore::ResourceError&, WebCore::ResourceResponse&, WTF::Vector<char, 0ul>&, WebCore::Frame) 871 +[WebCoreSynchronousLoader loadRequest:allowStoredCredentials:returningResponse:error:] 871 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] 871 CFRunLoopRunSpecific 871 CFRunLoopRun 871 mach_msg 871 mach_msg_trap 871 Thread_516052 DispatchQueue_2: com.apple.libdispatch-manager (serial) 871 start_wqthread 871 _pthread_wqthread 871 _dispatch_worker_thread2 871 _dispatch_queue_invoke 871 _dispatch_mgr_invoke 871 kevent 871 Thread_516054: JavaScriptCore: FastMalloc scavenger 871 thread_start 871 _pthread_start 871 WTF::TCMallocPageHeap::runScavengerThread(void) 871 WTF::TCMalloc_PageHeap::scavengerThread() 871 _pthread_cond_wait 871 __semwait_signal 871 Thread_516075 871 thread_start 871 _pthread_start 871 NSThreadmain 871 +[NSURLConnection(NSURLConnectionReallyInternal) _resourceLoadLoop:] 871 CFRunLoopRunSpecific 871 CFRunLoopRun 871 mach_msg 871 mach_msg_trap 871 Thread_516078 871 thread_start 871 _pthread_start 871 __CFSocketManager 871 select$DARWIN_EXTSN 871 Thread_523967 871 start_wqthread 871 _pthread_wqthread 871 workq_kernreturn

Total number in stack (recursive counted multiple, when >=5):

Sort by top of stack, same collapsed (when >= 5): mach_msg_trap 1742 __semwait_signal 871 __workq_kernreturn 871 kevent 871 select$DARWIN_EXTSN 871 Sample analysis of process 24074 written to file /dev/stdout

janl commented 14 years ago

this has been the case forever. WebKit doesn't support the test suite. run the tests in Firefox and all should be fine. Everything else should work just fine, too.

flaw19plane commented 14 years ago

And how should the average Apple user do that? They expect to point, click, drag and drop in a graphical user interface; and that the application than does the requested actions. And when it doesn't, the application is considered to be broken/faulty.

And even I (as not even the average Mac user) haven't got an idea how to start running the test suite in the Firefox browser.

My first approad was using http://localhost:5984/, but that only returns {"couchdb":"Welcome","version":"0.10.1"}, not the nice user interface from CouchDBX.

Any help is welcome...

janl commented 14 years ago

This app is not (yet) meant for the average apple user.

Try going to http://localhost:5984/_utils/ and read up on CouchDB: http://books.couchdb.org/relax/

flaw19plane commented 14 years ago

Thanks, this helps. Though even with Firefox (3.0) the 'Run All' command stops at 'update_documents' running… Chrome (4.0.249.49) stops at 'view_collation' and Opera (10.10) reaches the same point. However Opera is failing in tests (attachments, cookie_auth, copy_doc, etags_head, etags_views, list_views, security_validation, show_documents, stats,

janl commented 14 years ago

you might need to reunpack CouchDBX. I only tried 3.5 here, that should do.

flaw19plane commented 14 years ago

Firefox 3.5 is a No-Go-Area over here, as it breaks somewhere in javascript with our set of (compatible!) extensions loaded, rendering the browser almost useless.

After reunpack Chrome (4.0.249.49) stops at 'view_collation' with a "Crash" message (image of a sad looking face in a folder icon).

After another reunpack Firefox (3.0.17) still stops at 'update_documents'.