brent- / geoda

Automatically exported from code.google.com/p/geoda
GNU General Public License v3.0
0 stars 0 forks source link

GeoDa crash after failed Oracle DB connect #76

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Using GeoDa 1.5.23 for Mac on OSX 10.9

Tried to connect to local Oracle DB (using ldstech vm).

When clicking on Table choice get:
Error

Failed to open data source. Please check if the data is
valid and its data type/format is supported by
GeoDa.

Pressed "OK", then "Close".  Instant repeatable crash:

Process:         GeoDa [81762]
Path:            /Applications/GeoDa.app/Contents/MacOS/GeoDa
Identifier:      edu.asu.geodacenter.GeoDa
Version:         1.0
Code Type:       X86-64 (Native)
Parent Process:  launchd [257]
Responsible:     GeoDa [81762]
User ID:         501

Date/Time:       2014-02-06 10:28:19.634 -0800
OS Version:      Mac OS X 10.9.1 (13B42)
Report Version:  11
Anonymous UUID:  B7E94893-B6F8-0231-8E6B-A5BB3B884066

Sleep/Wake UUID: 67951894-B529-48F0-8872-A3987477A702

Crashed Thread:  0  Dispatch queue: com.apple.main-thread

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: EXC_I386_GPFLT

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   GeoDa                           0x00000001000dcb1e 
ConnectDatasourceDlg::~ConnectDatasourceDlg() + 44
1   GeoDa                           0x0000000100182f8b 
GdaFrame::OnNewProject(wxCommandEvent&) + 2173
2   GeoDa                           0x0000000100558511 
wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&, 
wxEvtHandler*, wxEvent&) + 91
3   GeoDa                           0x0000000100558f2c 
wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) + 124
4   GeoDa                           0x0000000100558fcb 
wxEvtHandler::TryHereOnly(wxEvent&) + 115
5   GeoDa                           0x000000010055a266 
wxEvtHandler::TryBeforeAndHere(wxEvent&) + 48
6   GeoDa                           0x0000000100558ff7 
wxEvtHandler::ProcessEventLocally(wxEvent&) + 27
7   GeoDa                           0x00000001005590d0 
wxEvtHandler::ProcessEvent(wxEvent&) + 180
8   GeoDa                           0x0000000100489502 
wxWindowBase::TryAfter(wxEvent&) + 96
9   GeoDa                           0x00000001005590ea 
wxEvtHandler::ProcessEvent(wxEvent&) + 206
10  GeoDa                           0x0000000100489502 
wxWindowBase::TryAfter(wxEvent&) + 96
11  GeoDa                           0x00000001005590ea 
wxEvtHandler::ProcessEvent(wxEvent&) + 206
12  GeoDa                           0x0000000100559296 
wxEvtHandler::SafelyProcessEvent(wxEvent&) + 22
13  GeoDa                           0x0000000100488696 
wxWindowBase::HandleWindowEvent(wxEvent&) const + 16
14  GeoDa                           0x000000010047cf4c 
wxToolBarBase::OnLeftClick(int, bool) + 88
15  GeoDa                           0x00000001003eb237 wxToolBarTool::Action() + 
145
16  GeoDa                           0x00000001003e627b -[wxNSToolBarButton 
clickedAction:] + 75
17  com.apple.AppKit                0x00007fff981793d0 -[NSApplication 
sendAction:to:from:] + 327
18  com.apple.AppKit                0x00007fff9817924e -[NSControl 
sendAction:to:] + 86
19  com.apple.AppKit                0x00007fff981c5d7d -[NSCell 
_sendActionFrom:] + 128
20  com.apple.AppKit                0x00007fff981df715 -[NSCell 
trackMouse:inRect:ofView:untilMouseUp:] + 2316
21  com.apple.AppKit                0x00007fff981deae7 -[NSButtonCell 
trackMouse:inRect:ofView:untilMouseUp:] + 487
22  com.apple.AppKit                0x00007fff981de1fd -[NSControl mouseDown:] + 
706
23  com.apple.AppKit                0x00007fff9815fd08 -[NSWindow sendEvent:] + 
11296
24  GeoDa                           0x00000001003db851 -[wxNSWindow sendEvent:] 
+ 217
25  com.apple.AppKit                0x00007fff980fe744 -[NSApplication 
sendEvent:] + 2021
26  GeoDa                           0x0000000100365375 -[wxNSApplication 
sendEvent:] + 162
27  com.apple.AppKit                0x00007fff97f4ea29 -[NSApplication run] + 646
28  GeoDa                           0x00000001003cb04a 
wxGUIEventLoop::OSXDoRun() + 116
29  GeoDa                           0x0000000100544543 wxCFEventLoop::DoRun() + 
31
30  GeoDa                           0x00000001004ec3fa wxEventLoopBase::Run() + 
176
31  GeoDa                           0x00000001004ca181 
wxAppConsoleBase::MainLoop() + 103
32  GeoDa                           0x0000000100397559 wxApp::OnRun() + 39
33  GeoDa                           0x000000010050c80d wxEntry(int&, wchar_t**) 
+ 119
34  GeoDa                           0x000000010017284c main + 20
35  GeoDa                           0x000000010006d028 start + 52

Thread 1:: Dispatch queue: com.apple.libdispatch-manager
0   libsystem_kernel.dylib          0x00007fff8c6f8662 kevent64 + 10
1   libdispatch.dylib               0x00007fff8ed7c43d _dispatch_mgr_invoke + 239
2   libdispatch.dylib               0x00007fff8ed7c152 _dispatch_mgr_thread + 52

Thread 2:
0   libsystem_kernel.dylib          0x00007fff8c6f3a1a mach_msg_trap + 10
1   libsystem_kernel.dylib          0x00007fff8c6f2d18 mach_msg + 64
2   com.apple.CoreFoundation        0x00007fff93ea5315 
__CFRunLoopServiceMachPort + 181
3   com.apple.CoreFoundation        0x00007fff93ea4939 __CFRunLoopRun + 1161
4   com.apple.CoreFoundation        0x00007fff93ea4275 CFRunLoopRunSpecific + 309
5   com.apple.AppKit                0x00007fff980fb1ce _NSEventThread + 144
6   libsystem_pthread.dylib         0x00007fff8fa17899 _pthread_body + 138
7   libsystem_pthread.dylib         0x00007fff8fa1772a _pthread_start + 137
8   libsystem_pthread.dylib         0x00007fff8fa1bfc9 thread_start + 13

Thread 3:
0   libsystem_kernel.dylib          0x00007fff8c6f7e6a __workq_kernreturn + 10
1   libsystem_pthread.dylib         0x00007fff8fa18f08 _pthread_wqthread + 330
2   libsystem_pthread.dylib         0x00007fff8fa1bfb9 start_wqthread + 13

Thread 4:
0   libsystem_kernel.dylib          0x00007fff8c6f7e6a __workq_kernreturn + 10
1   libsystem_pthread.dylib         0x00007fff8fa18f08 _pthread_wqthread + 330
2   libsystem_pthread.dylib         0x00007fff8fa1bfb9 start_wqthread + 13

Thread 0 crashed with X86 Thread State (64-bit):
  rax: 0x2000000010e74286  rbx: 0x0000000102e0b6a8  rcx: 0x0000000000000000  rdx: 0x00000000000cd890
  rdi: 0x000000010e720760  rsi: 0x0000000000000000  rbp: 0x00007fff5fbfde20  rsp: 0x00007fff5fbfde10
   r8: 0x0000000000000002   r9: 0x0000000109bc06f0  r10: 0x00000000cd4b8afd  r11: 0x000000005e525bcb
  r12: 0x00007fff5fbfde90  r13: 0x00007fff5fbfde90  r14: 0x0000000100b35948  r15: 0x00007fff5fbfee80
  rip: 0x00000001000dcb1e  rfl: 0x0000000000010206  cr2: 0x00000000b7382000

Logical CPU:     1
Error Code:      0x00000000
Trap Number:     13

Original issue reported on code.google.com by mmcc...@gmail.com on 6 Feb 2014 at 6:30

GoogleCodeExporter commented 9 years ago
I think we decide to go with 11g and the vm one is 10g?

DOn't have time to check it for  now. Will look later.

Xun

Original comment by lixun...@gmail.com on 6 Feb 2014 at 6:32

GoogleCodeExporter commented 9 years ago
So Oracle itself needs to be at least version 11g?  The connection worked fine 
on my Desktop to same VM, but on the laptop failed.  However, this is a very 
bad bug in GeoDa DataSource code.  It should not crash after a failed 
connection.  We can't have it be so fragile.

Original comment by mmcc...@gmail.com on 6 Feb 2014 at 6:35

GoogleCodeExporter commented 9 years ago
Oh I know . It's not a oracle problem. Its the code the I put in Datasource 
deconstructor. I can't work in front of computer right now. Will fix it later.

Best Regards!
Xun

Original comment by lixun...@gmail.com on 6 Feb 2014 at 6:40

GoogleCodeExporter commented 9 years ago
I was pretty sure it wasn't an ORacle prob looking at the traceback.  Cool.

Original comment by mmcc...@gmail.com on 6 Feb 2014 at 6:41

GoogleCodeExporter commented 9 years ago

Original comment by lixun...@gmail.com on 10 Feb 2014 at 11:21