leadscloud / ShadowsocksX-NG-R

Next Generation of ShadowsocksX
203 stars 27 forks source link

显示网速 会导致程序崩溃 #1

Closed leadscloud closed 5 years ago

leadscloud commented 5 years ago

2019-05-15 12:49:51.595062+0800 ShadowsocksX-NG[78921:1847118] Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Couldn't posix_spawn: error 35' First throw call stack: ( 0 CoreFoundation 0x00007fff30969ecd exceptionPreprocess + 256 1 libobjc.A.dylib 0x00007fff5ca25720 objc_exception_throw + 48 2 CoreFoundation 0x00007fff30969cff +[NSException raise:format:] + 201 3 Foundation 0x00007fff32c5fac7 -[NSConcreteTask launchWithDictionary:error:] + 4586 4 ShadowsocksX-NG 0x00000001000174fd $S15ShadowsocksX_NG14NetWorkMonitorC06updatecD4DatayyF + 2013 5 ShadowsocksX-NG 0x0000000100017a64 $S15ShadowsocksX_NG14NetWorkMonitorC06updatecD4DatayyFTo + 36 6 Foundation 0x00007fff32c62646 NSFireTimer + 80 7 CoreFoundation 0x00007fff308d1edd CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION + 20 8 CoreFoundation 0x00007fff308d1a90 CFRunLoopDoTimer + 859 9 CoreFoundation 0x00007fff308d15d0 CFRunLoopDoTimers + 333 10 CoreFoundation 0x00007fff308b281b CFRunLoopRun + 2176 11 CoreFoundation 0x00007fff308b1d48 CFRunLoopRunSpecific + 463 12 Foundation 0x00007fff32c184aa -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 280 13 Foundation 0x00007fff32c1837f -[NSRunLoop(NSRunLoop) run] + 76 14 ShadowsocksX-NG 0x0000000100016cc7 $S15ShadowsocksX_NG14NetWorkMonitorC16startUpdateTimeryyF + 503 15 ShadowsocksX-NG 0x0000000100016d04 $S15ShadowsocksX_NG14NetWorkMonitorC16startUpdateTimeryyFTo + 36 16 Foundation 0x00007fff32c0e104 NSThreadstart + 1218 17 libsystem_pthread.dylib 0x00000001012a0e35 _pthread_body + 126 18 libsystem_pthread.dylib 0x00000001012a3ec7 _pthread_start + 70 19 libsystem_pthread.dylib 0x000000010129fe51 thread_start + 13 ) libc++abi.dylib: terminating with uncaught exception of type NSException (lldb)

@objc func startUpdateTimer() {
        Timer.scheduledTimer(timeInterval: interval, target: self, selector: #selector(updateNetWorkData), userInfo: nil, repeats: true)
        RunLoop.current.run()   //在这儿代码提示错误
    }

显示网速功能会过一段时间程序崩溃。 我猜测是线程或进程控制 Contorl 控件导致的问题。

leadscloud commented 5 years ago

https://github.com/gjiazhe/Up-Down/issues/10