kumaryu / peercaststation

PeerCastのリメイク
http://www.pecastation.org/
Other
101 stars 18 forks source link

Version 2.0.0 起動後しばらくすると動作が停止する #230

Closed pormrigle closed 8 years ago

pormrigle commented 8 years ago

Version 2.0.0 実行後、GUIがでて5秒ほど経過後、「動作が停止しました。」とダイアログが出て、強制終了します。

Version 1.8.1 (2015年5月9日安定版)は問題なく使用できます。

OS:Windows7 Ultimate SP1(64bit) CPU:Intel Corei7-4790K メモリ:16GB RAM

2015/11/30 22:30:56: PeerCastStation/2.0.0.0 (OS:Microsoft Windows NT 6.1.7601 Service Pack 1, CLR:4.0.30319.18444)
System.UriFormatException: 無効な URI: 無効なポートが指定されています。
   場所 System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)
   場所 Mono.Nat.Upnp.MessageBase.CreateRequest(String upnpMethod, String methodParameters, Byte[]& body)
   場所 Mono.Nat.Upnp.CreatePortMappingMessage.Encode(Byte[]& body)
   場所 Mono.Nat.Upnp.UpnpNatDevice.BeginMessageInternal(MessageBase message, AsyncCallback storedCallback, Object asyncState, AsyncCallback callback)
   場所 Mono.Nat.Upnp.UpnpNatDevice.BeginCreatePortMap(Mapping mapping, AsyncCallback callback, Object asyncState)
   場所 PeerCastStation.UI.PortMapperMonitor.AddPort(Int32 port)
   場所 PeerCastStation.UI.PortMapperMonitor.OnTimer()
   場所 PeerCastStation.Core.PeerCast.<StartMonitor>b__1e(Object state, Boolean timed_out)
   場所 System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   場所 System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   場所 System.Threading._ThreadPoolWaitOrTimerCallback.PerformWaitOrTimerCallback(Object state, Boolean timedOut)
kumaryu commented 8 years ago

ポート番号って何指定してありますか?

pormrigle commented 8 years ago

ZIPダウンロードして解凍して、そのまま実行で発生します。 なので7144だと思います

pormrigle commented 8 years ago

UPnP NAT-PMPのポート自動開放をオフにした所、動作するようになりました。

kumaryu commented 8 years ago

5秒だと無理かと思ったんですけどできたんですね…… 引き続き調べます

kumaryu commented 8 years ago

解析のためにログ出すようにしたのを作ったので試してもらっていいでしょうか? https://github.com/kumaryu/peercaststation/releases/download/v2.1.0.0-log/PeerCastStation-2.1.0.0.PortMapperLog.zip ポート自動開放ONにすると C:\Users(ユーザ名)\AppData\Roaming\PeerCastStation\PortMapper.log というファイルが出来るので、落ちたときのこのファイルを添付してもらえると助かります。

pormrigle commented 8 years ago

試しました 192.168.3.1はルーターのIPで合ってます

Searching for: UpnpSearcher
Searching for: PmpSearcher
UPnP Response: Router advertised a 'urn:schemas-upnp-org:service:WANIPConnection:1' service
Found device at: http://192.168.3.1:8000/Public_UPNP_gatedesc.xml
Parsed device as: 192.168.3.1:8000
Fetching service list: 192.168.3.1:8000
UPnP Response: Router advertised a 'urn:schemas-upnp-org:service:WANPPPConnection:' service
Found device at: http://192.168.3.1:8000/Public_UPNP_gatedesc.xml
Parsed device as: 192.168.3.1:8000
192.168.3.1:8000: Couldn't parse services list
192.168.3.1:8000: Parsed services list
192.168.3.1:8000: Found service: urn:schemas-upnp-org:service:Layer3Forwarding:1
192.168.3.1:8000: Found service: urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1
192.168.3.1:8000: Found service: urn:schemas-upnp-org:service:WANIPConnection:1
192.168.3.1:8000: Found upnp service at: Public_UPNP_C3
192.168.3.1:8000: Assuming control Uri is relative: Public_UPNP_C3
192.168.3.1:8000: Handshake Complete
Initiating request to: http://192.168.3.1:8000Public_UPNP_C3
Initiating request to: http://192.168.3.1:8000Public_UPNP_C3
Initiating request to: http://192.168.3.1:8000Public_UPNP_C3
Initiating request to: http://192.168.3.1:8000Public_UPNP_C3
UPnP Response: Router advertised a 'urn:schemas-upnp-org:service:WANIPConnection:1' service
Found device at: http://192.168.3.1:8000/Public_UPNP_gatedesc.xml
Parsed device as: 192.168.3.1:8000
UPnP Response: Router advertised a 'urn:schemas-upnp-org:service:WANPPPConnection:' service
Found device at: http://192.168.3.1:8000/Public_UPNP_gatedesc.xml
Parsed device as: 192.168.3.1:8000
UPnP Response: Router advertised a 'urn:schemas-upnp-org:service:WANIPConnection:1' service
Found device at: http://192.168.3.1:8000/Public_UPNP_gatedesc.xml
Parsed device as: 192.168.3.1:8000
UPnP Response: Router advertised a 'urn:schemas-upnp-org:service:WANPPPConnection:' service
Found device at: http://192.168.3.1:8000/Public_UPNP_gatedesc.xml
Parsed device as: 192.168.3.1:8000
Searching for: PmpSearcher
Searching for: PmpSearcher
Initiating request to: http://192.168.3.1:8000Public_UPNP_C3
kumaryu commented 8 years ago

ありがとうございます!だめな箇所はわかったのでなんとかします ちなみにルータの型番とかよかったら教えてもらえますか?

kumaryu commented 8 years ago

対策してみました。 これで試してみてください。 https://github.com/kumaryu/peercaststation/releases/download/v2.1.0.0-UPnPFix/PeerCastStation-2.1.0.0.PortMapperFix.zip

kumaryu commented 8 years ago

すみません動いてなかったので再度修正しました。 これ試してください。 https://github.com/kumaryu/peercaststation/releases/download/v2.1.0.0-UPnPFix/PeerCastStation-2.1.0.0.PortMapperFix2.zip

pormrigle commented 8 years ago

ルーターはSoftBank 光BBユニット E-WMTA2.2です。 修正したものを使用してみました。 自動開放をONにしても停止せずに動作するようになりました。 PortMapper.logは以下の内容が増えていってます

Searching for: UpnpSearcher
Searching for: PmpSearcher
UPnP Response: Router advertised a 'urn:schemas-upnp-org:service:WANIPConnection:1' service
Found device at: http://192.168.3.1:8000/Public_UPNP_gatedesc.xml
Parsed device as: 192.168.3.1:8000
Fetching service list: 192.168.3.1:8000
UPnP Response: Router advertised a 'urn:schemas-upnp-org:service:WANPPPConnection:' service
Found device at: http://192.168.3.1:8000/Public_UPNP_gatedesc.xml
Parsed device as: 192.168.3.1:8000
192.168.3.1:8000: Parsed services list
192.168.3.1:8000: Found service: urn:schemas-upnp-org:service:Layer3Forwarding:1
192.168.3.1:8000: Found service: urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1
192.168.3.1:8000: Found service: urn:schemas-upnp-org:service:WANIPConnection:1
192.168.3.1:8000: Found upnp service at: Public_UPNP_C3
192.168.3.1:8000: Assuming control Uri is relative: /Public_UPNP_C3
192.168.3.1:8000: Handshake Complete
Initiating request to: http://192.168.3.1:8000/Public_UPNP_C3
UPnP Response: Router advertised a 'urn:schemas-upnp-org:service:WANIPConnection:1' service
Found device at: http://192.168.3.1:8000/Public_UPNP_gatedesc.xml
Parsed device as: 192.168.3.1:8000
UPnP Response: Router advertised a 'urn:schemas-upnp-org:service:WANPPPConnection:' service
Found device at: http://192.168.3.1:8000/Public_UPNP_gatedesc.xml
Parsed device as: 192.168.3.1:8000
UPnP Response: Router advertised a 'urn:schemas-upnp-org:service:WANPPPConnection:' service
Found device at: http://192.168.3.1:8000/Public_UPNP_gatedesc.xml
Parsed device as: 192.168.3.1:8000
Searching for: PmpSearcher
Initiating request to: http://192.168.3.1:8000/Public_UPNP_C3
Initiating request to: http://192.168.3.1:8000/Public_UPNP_C3

以下
Initiating request to: http://192.168.3.1:8000/Public_UPNP_C3
が大量に
kumaryu commented 8 years ago

ありがとうございます。logがでっぱなしなのは消してないからなだけなので問題ないです。ログが出ないようにしたやつを作ってリリースしたいと思います。

kumaryu commented 8 years ago

開発版2.1.1としてリリースしました。これで様子見て問題なければ安定版にも入れたいと思います。