bug.txt 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. D:\dev\ea_sign\svnhttps\goctp\bin>ttpanel.exe
  2. 2013/10/25 20:17:56 wave2907 Tg417396
  3. 2013/10/25 20:17:57 wave2907 login ok!
  4. 2013/10/25 20:17:57 wave2907 PositionTrackingInit OK!
  5. 2013/10/25 20:17:57 wave2907 HeartbeatTimeout set ok!
  6. panic: runtime error: invalid memory address or nil pointer dereference
  7. [signal 0xc0000005 code=0x0 addr=0x0 pc=0x45f735]
  8. goroutine 1 [running]:
  9. github.com/lxn/walk.(*SolidColorBrush).handle()
  10. C:/Users/w/Desktop/wangch/go/src/github.com/lxn/walk/brush.go:127 +0x5
  11. github.com/lxn/walk.(*Canvas).withBrush(0xc080591a80, 0xc080112a80, 0x0, 0x3915d8, 0x779d6bc8, ...)
  12. C:/Users/w/Desktop/wangch/go/src/github.com/lxn/walk/canvas.go:168 +0x2e
  13. github.com/lxn/walk.(*Canvas).withBrushAndPen(0xc080591a80, 0xc080112a80, 0x0, 0xc080112780, 0xc0800000f8, ...)
  14. C:/Users/w/Desktop/wangch/go/src/github.com/lxn/walk/canvas.go:199 +0x86
  15. github.com/lxn/walk.(*Canvas).rectangle(0xc080591a80, 0xc080112a80, 0x0, 0xc080112780, 0xc0800000f8, ...)
  16. C:/Users/w/Desktop/wangch/go/src/github.com/lxn/walk/canvas.go:269 +0xa3
  17. github.com/lxn/walk.(*Canvas).FillRectangle(0xc080591a80, 0xc080112a80, 0x0, 0x0, 0x0, ...)
  18. C:/Users/w/Desktop/wangch/go/src/github.com/lxn/walk/canvas.go:298 +0x7e
  19. github.com/lxn/walk.(*WindowBase).WndProc(0xc08027dd80, 0x120dd4, 0x14, 0x330162b3, 0x0, ...)
  20. C:/Users/w/Desktop/wangch/go/src/github.com/lxn/walk/window.go:1215 +0x34a
  21. github.com/lxn/walk.(*ContainerBase).WndProc(0xc08027dd80, 0x120dd4, 0x14, 0x330162b3, 0x0, ...)
  22. C:/Users/w/Desktop/wangch/go/src/github.com/lxn/walk/container.go:302 +0x9e
  23. main.(*Container).WndProc(0xc08027dd80, 0x120dd4, 0x14, 0x330162b3, 0x0, ...)
  24. C:/Users/w/Desktop/wangch/go/src/w/ttpanel/container.go:199 +0x12c
  25. github.com/lxn/walk.defaultWndProc(0x120dd4, 0x14, 0x330162b3, 0x0, 0x0, ...)
  26. C:/Users/w/Desktop/wangch/go/src/github.com/lxn/walk/window.go:1164 +0x117
  27. syscall.Syscall(0x779d6e40, 0x2, 0x120dd4, 0xc080522370, 0x0, ...)
  28. C:/Users/ADMINI~1/AppData/Local/Temp/2/bindist675583351/go/src/pkg/runtime/zsyscall_windows_windows_amd64.c:74 +0x55
  29. github.com/lxn/win.BeginPaint(0x120dd4, 0xc080522370, 0x180dda)
  30. C:/Users/w/Desktop/wangch/go/src/github.com/lxn/win/user32.go:1699 +0x51
  31. main.(*Container).WndProc(0xc08027dd80, 0x120dd4, 0xf, 0x0, 0x0, ...)
  32. C:/Users/w/Desktop/wangch/go/src/w/ttpanel/container.go:148 +0x17b
  33. github.com/lxn/walk.defaultWndProc(0x120dd4, 0xf, 0x0, 0x0, 0x0, ...)
  34. C:/Users/w/Desktop/wangch/go/src/github.com/lxn/walk/window.go:1164 +0x117
  35. syscall.Syscall(0x779d991c, 0x1, 0xc0803a6360, 0x0, 0x0, ...)
  36. C:/Users/ADMINI~1/AppData/Local/Temp/2/bindist675583351/go/src/pkg/runtime/zsyscall_windows_windows_amd64.c:74 +0x55
  37. github.com/lxn/win.DispatchMessage(0xc0803a6360, 0x0)
  38. C:/Users/w/Desktop/wangch/go/src/github.com/lxn/win/user32.go:1862 +0x50
  39. github.com/lxn/walk.(*FormBase).Run(0xc0801466c0, 0xc08016f040)
  40. C:/Users/w/Desktop/wangch/go/src/github.com/lxn/walk/form.go:237 +0xc7
  41. main.main()
  42. C:/Users/w/Desktop/wangch/go/src/w/ttpanel/main.go:114 +0xc7f
  43. goroutine 2 [syscall]:
  44. goroutine 4 [chan receive]:
  45. main.func·019()
  46. C:/Users/w/Desktop/wangch/go/src/w/ttpanel/lmax.go:163 +0x59
  47. created by main.(*LmaxTradingApi).Login
  48. C:/Users/w/Desktop/wangch/go/src/w/ttpanel/lmax.go:169 +0x14c
  49. goroutine 5 [sleep]:
  50. time.Sleep(0x186a0)
  51. C:/Users/ADMINI~1/AppData/Local/Temp/2/bindist675583351/go/src/pkg/runtime/ztime_windows_amd64.c:19 +0x32
  52. main.func·023()
  53. C:/Users/w/Desktop/wangch/go/src/w/ttpanel/lmax.go:198 +0x247
  54. created by main.(*LmaxTradingApi).Login
  55. C:/Users/w/Desktop/wangch/go/src/w/ttpanel/lmax.go:213 +0x302
  56. goroutine 6 [select]:
  57. net.(*ioSrv).ExecIO(0xc080379c20, 0xc08037e840, 0xc080793d20, 0x0, 0x0, ...)
  58. C:/Users/ADMINI~1/AppData/Local/Temp/2/bindist675583351/go/src/pkg/net/fd_windows.go:236 +0x750
  59. net.(*netFD).Read(0xc08039a000, 0xc08023a000, 0x800, 0x800, 0x0, ...)
  60. C:/Users/ADMINI~1/AppData/Local/Temp/2/bindist675583351/go/src/pkg/net/fd_windows.go:498 +0x181
  61. net.(*conn).Read(0xc080376ab0, 0xc08023a000, 0x800, 0x800, 0xad8968, ...)
  62. C:/Users/ADMINI~1/AppData/Local/Temp/2/bindist675583351/go/src/pkg/net/net.go:123 +0xc6
  63. crypto/tls.(*block).readFromUntil(0xc080426090, 0xc0803a6030, 0xc080376ab0, 0x5, 0xc080376ab0, ...)
  64. C:/Users/ADMINI~1/AppData/Local/Temp/2/bindist675583351/go/src/pkg/crypto/tls/conn.go:401 +0xc0
  65. crypto/tls.(*Conn).readRecord(0xc0803a3000, 0x17, 0x0, 0x0)
  66. C:/Users/ADMINI~1/AppData/Local/Temp/2/bindist675583351/go/src/pkg/crypto/tls/conn.go:481 +0xfd
  67. crypto/tls.(*Conn).Read(0xc0803a3000, 0xc0803bf000, 0x1000, 0x1000, 0x0, ...)
  68. C:/Users/ADMINI~1/AppData/Local/Temp/2/bindist675583351/go/src/pkg/crypto/tls/conn.go:796 +0x105
  69. bufio.(*Reader).fill(0xc0803bac60)
  70. C:/Users/ADMINI~1/AppData/Local/Temp/2/bindist675583351/go/src/pkg/bufio/bufio.go:79 +0x10f
  71. bufio.(*Reader).ReadSlice(0xc0803bac60, 0xc080690d0a, 0x0, 0x0, 0x563912, ...)
  72. C:/Users/ADMINI~1/AppData/Local/Temp/2/bindist675583351/go/src/pkg/bufio/bufio.go:262 +0x205
  73. net/http.readLine(0xc0803bac60, 0x0, 0x0, 0xc0808662b1, 0x3, ...)
  74. C:/Users/ADMINI~1/AppData/Local/Temp/2/bindist675583351/go/src/pkg/net/http/chunked.go:91 +0x5a
  75. net/http.(*chunkedReader).beginChunk(0xc080369900)
  76. C:/Users/ADMINI~1/AppData/Local/Temp/2/bindist675583351/go/src/pkg/net/http/chunked.go:47 +0x2b
  77. net/http.(*chunkedReader).Read(0xc080369900, 0xc080504000, 0x1000, 0x1000, 0x515716, ...)
  78. C:/Users/ADMINI~1/AppData/Local/Temp/2/bindist675583351/go/src/pkg/net/http/chunked.go:65 +0x92
  79. net/http.(*body).Read(0xc080387640, 0xc080504000, 0x1000, 0x1000, 0x0, ...)
  80. C:/Users/ADMINI~1/AppData/Local/Temp/2/bindist675583351/go/src/pkg/net/http/transfer.go:535 +0x97
  81. bufio.(*Reader).fill(0xc080399ea0)
  82. C:/Users/ADMINI~1/AppData/Local/Temp/2/bindist675583351/go/src/pkg/bufio/bufio.go:79 +0x10f
  83. bufio.(*Reader).ReadByte(0xc080399ea0, 0x5, 0x0, 0x0)
  84. C:/Users/ADMINI~1/AppData/Local/Temp/2/bindist675583351/go/src/pkg/bufio/bufio.go:171 +0x80
  85. compress/flate.(*decompressor).moreBits(0xc0803cd000, 0x0, 0x0)
  86. C:/Users/ADMINI~1/AppData/Local/Temp/2/bindist675583351/go/src/pkg/compress/flate/inflate.go:609 +0x33
  87. compress/flate.(*decompressor).nextBlock(0xc0803cd000)
  88. C:/Users/ADMINI~1/AppData/Local/Temp/2/bindist675583351/go/src/pkg/compress/flate/inflate.go:223 +0xb1
  89. compress/flate.(*decompressor).Read(0xc0803cd000, 0xc080382800, 0x2800, 0x2800, 0x0, ...)
  90. C:/Users/ADMINI~1/AppData/Local/Temp/2/bindist675583351/go/src/pkg/compress/flate/inflate.go:264 +0x1a4
  91. compress/gzip.(*Reader).Read(0xc0803ca2c0, 0xc080382800, 0x2800, 0x2800, 0x100000000, ...)
  92. C:/Users/ADMINI~1/AppData/Local/Temp/2/bindist675583351/go/src/pkg/compress/gzip/gunzip.go:207 +0xee
  93. net/http.(*readerAndCloser).Read(0xc080402f80, 0xc080382800, 0x2800, 0x2800, 0x44b557, ...)
  94. C:/Users/ADMINI~1/AppData/Local/Temp/2/bindist675583351/go/src/pkg/net/http/chunked.go:0 +0x65
  95. net/http.(*bodyEOFSignal).Read(0xc080387680, 0xc080382800, 0x2800, 0x2800, 0x0, ...)
  96. C:/Users/ADMINI~1/AppData/Local/Temp/2/bindist675583351/go/src/pkg/net/http/transport.go:967 +0x19a
  97. lmaxapi.(*Session).processStreamResponse(0xc080363300, 0x0, 0x0)
  98. C:/Users/w/Desktop/wangch/go/src/lmaxapi/Session.go:207 +0x143
  99. lmaxapi.(*Session).Start(0xc080363300, 0xc080369f60, 0xc0803b06a0)
  100. C:/Users/w/Desktop/wangch/go/src/lmaxapi/Session.go:187 +0x59d
  101. main.func·025()
  102. C:/Users/w/Desktop/wangch/go/src/w/ttpanel/lmax.go:263 +0xca7
  103. created by main.(*LmaxTradingApi).Login
  104. C:/Users/w/Desktop/wangch/go/src/w/ttpanel/lmax.go:265 +0x373
  105. goroutine 12 [chan receive]:
  106. lmaxapi.func·005()
  107. C:/Users/w/Desktop/wangch/go/src/lmaxapi/Session.go:281 +0x12d
  108. created by lmaxapi.(*Session).HeartbeatTimeout
  109. C:/Users/w/Desktop/wangch/go/src/lmaxapi/Session.go:297 +0x1ba
  110. goroutine 9 [syscall]:
  111. syscall.Syscall6(0x778aa4d0, 0x5, 0x8a0, 0xc080370e00, 0xc080376a98, ...)
  112. C:/Users/ADMINI~1/AppData/Local/Temp/2/bindist675583351/go/src/pkg/runtime/zsyscall_windows_windows_amd64.c:97 +0x55
  113. syscall.GetQueuedCompletionStatus(0x8a0, 0xc080370e00, 0xc080376a98, 0xc080376a90, 0xffffffff, ...)
  114. C:/Users/ADMINI~1/AppData/Local/Temp/2/bindist675583351/go/src/pkg/syscall/zsyscall_windows_amd64.go:507 +0x9f
  115. net.(*resultSrv).Run(0xc080376b10)
  116. C:/Users/ADMINI~1/AppData/Local/Temp/2/bindist675583351/go/src/pkg/net/fd_windows.go:150 +0x151
  117. created by net.startServer
  118. C:/Users/ADMINI~1/AppData/Local/Temp/2/bindist675583351/go/src/pkg/net/fd_windows.go:285 +0x10f
  119. goroutine 10 [chan receive]:
  120. net/http.(*persistConn).readLoop(0xc08039f000)
  121. C:/Users/ADMINI~1/AppData/Local/Temp/2/bindist675583351/go/src/pkg/net/http/transport.go:761 +0x64e
  122. created by net/http.(*Transport).dialConn
  123. C:/Users/ADMINI~1/AppData/Local/Temp/2/bindist675583351/go/src/pkg/net/http/transport.go:511 +0x577
  124. goroutine 11 [select]:
  125. net/http.(*persistConn).writeLoop(0xc08039f000)
  126. C:/Users/ADMINI~1/AppData/Local/Temp/2/bindist675583351/go/src/pkg/net/http/transport.go:774 +0x272
  127. created by net/http.(*Transport).dialConn
  128. C:/Users/ADMINI~1/AppData/Local/Temp/2/bindist675583351/go/src/pkg/net/http/transport.go:512 +0x58e
  129. goroutine 15 [select]:
  130. net.(*ioSrv).ExecIO(0xc080379c20, 0xc08037e840, 0xc080487460, 0x0, 0x0, ...)
  131. C:/Users/ADMINI~1/AppData/Local/Temp/2/bindist675583351/go/src/pkg/net/fd_windows.go:236 +0x750
  132. net.(*netFD).Read(0xc0803740c0, 0xc080422c00, 0x400, 0x400, 0x0, ...)
  133. C:/Users/ADMINI~1/AppData/Local/Temp/2/bindist675583351/go/src/pkg/net/fd_windows.go:498 +0x181
  134. net.(*conn).Read(0xc0803c7478, 0xc080422c00, 0x400, 0x400, 0xc0804e210d, ...)
  135. C:/Users/ADMINI~1/AppData/Local/Temp/2/bindist675583351/go/src/pkg/net/net.go:123 +0xc6
  136. crypto/tls.(*block).readFromUntil(0xc0806e6900, 0xc0803a6030, 0xc0803c7478, 0x5, 0xc0803c7478, ...)
  137. C:/Users/ADMINI~1/AppData/Local/Temp/2/bindist675583351/go/src/pkg/crypto/tls/conn.go:401 +0xc0
  138. crypto/tls.(*Conn).readRecord(0xc0803a3280, 0x17, 0x0, 0x44e583)
  139. C:/Users/ADMINI~1/AppData/Local/Temp/2/bindist675583351/go/src/pkg/crypto/tls/conn.go:481 +0xfd
  140. crypto/tls.(*Conn).Read(0xc0803a3280, 0xc080377000, 0x1000, 0x1000, 0x0, ...)
  141. C:/Users/ADMINI~1/AppData/Local/Temp/2/bindist675583351/go/src/pkg/crypto/tls/conn.go:796 +0x105
  142. bufio.(*Reader).fill(0xc0806ebae0)
  143. C:/Users/ADMINI~1/AppData/Local/Temp/2/bindist675583351/go/src/pkg/bufio/bufio.go:79 +0x10f
  144. bufio.(*Reader).Peek(0xc0806ebae0, 0x1, 0x0, 0x0, 0x0, ...)
  145. C:/Users/ADMINI~1/AppData/Local/Temp/2/bindist675583351/go/src/pkg/bufio/bufio.go:107 +0xcc
  146. net/http.(*persistConn).readLoop(0xc0806ae200)
  147. C:/Users/ADMINI~1/AppData/Local/Temp/2/bindist675583351/go/src/pkg/net/http/transport.go:670 +0xc7
  148. created by net/http.(*Transport).dialConn
  149. C:/Users/ADMINI~1/AppData/Local/Temp/2/bindist675583351/go/src/pkg/net/http/transport.go:511 +0x577
  150. goroutine 16 [select]:
  151. net/http.(*persistConn).writeLoop(0xc0806ae200)
  152. C:/Users/ADMINI~1/AppData/Local/Temp/2/bindist675583351/go/src/pkg/net/http/transport.go:774 +0x272
  153. created by net/http.(*Transport).dialConn
  154. C:/Users/ADMINI~1/AppData/Local/Temp/2/bindist675583351/go/src/pkg/net/http/transport.go:512 +0x58e
  155. D:\dev\ea_sign\svnhttps\goctp\bin>D:\dev\ea_sign\svnhttps\goctp\bin