メモリリーク件

448 views
Skip to first unread message

kazura_utb

unread,
Mar 10, 2017, 2:04:35 PM3/10/17
to Tween - Twitter Client
お世話になります。

Win10に変えてから起きる不具合についてです。

数日ほどTweenをずっと起動させていると、
ある時突然、ツイートしようとした瞬間にフリーズします。
文字入力の変換候補が消えたり等の前兆現象があります。

動作を見た限り、古いツイートリストを破棄せずに、
延々とツイート取得しているようですので、
一定数を超えたあたりから、.NET内部の描画処理でメモリ確保が出来ず、落ちていそうです。

対策としては、最大保持ツイート数を設定できるようにするのがベストかと思います。
# 設定が見当たらなかったので・・・

ご検討のほどよろしくお願いします。



**** エラー ログ: 2017/03/11 3:28:47 ****
Ticks(ms): 1349631125
このファイルの内容を kiri.f...@gmail.com まで送っていただけると助かります。
ご面倒なら@TweenAppまでお知らせ頂くだけでも助かります。
Administrator権限:False
Users権限:True

動作環境:
オペレーティング システム: Microsoft Windows NT 6.2.9200.0 (64)
共通言語ランタイム : 4.0.30319.42000
Tween.exeのバージョン : 1.6.4.0
例外 System.OutOfMemoryException: メモリが不足しています。
場所 System.Drawing.Graphics.FromHdcInternal(IntPtr hdc)
場所 System.Drawing.Font.GetHeight()
場所 System.Drawing.Font.get_Height()
場所 Tween.ToolStripAPIGauge.Draw(Object sender, PaintEventArgs e)
場所 System.Windows.Forms.PaintEventHandler.Invoke(Object sender, PaintEventArgs e)
場所 System.Windows.Forms.Control.OnPaint(PaintEventArgs e)
場所 System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer)
場所 System.Windows.Forms.Control.WmPaint(Message& m)
場所 System.Windows.Forms.Control.WndProc(Message& m)
場所 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

-------StackFrame Information-------
System.String ExceptionOutMessage(System.Exception, Boolean ByRef)
Boolean ExceptionOut(System.Exception)
Void MyApplication_UnhandledException(System.Object, Microsoft.VisualBasic.ApplicationServices.UnhandledExceptionEventArgs)
Void raise_UnhandledException(System.Object, Microsoft.VisualBasic.ApplicationServices.UnhandledExceptionEventArgs)
Boolean OnUnhandledException(Microsoft.VisualBasic.ApplicationServices.UnhandledExceptionEventArgs)
Void OnThreadException(System.Exception)
Void WndProcException(System.Exception)
IntPtr Callback(IntPtr, Int32, IntPtr, IntPtr)
Boolean UpdateWindow(System.Runtime.InteropServices.HandleRef)
Boolean UpdateWindow(System.Runtime.InteropServices.HandleRef)
Void Update()
Void set_RemainCount(Int32)
Void SetStatusLabelApiHandler(System.Object, Tween.ApiInformationChangedEventArgs)
System.Object InvokeMethod(System.Object, System.Object[], System.Signature, Boolean)
System.Object UnsafeInvokeInternal(System.Object, System.Object[], System.Object[])
System.Object DynamicInvokeImpl(System.Object[])
Void InvokeMarshaledCallbackDo(ThreadMethodEntry)
Void InvokeMarshaledCallbackHelper(System.Object)
Void RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
Void Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
Void Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
Void InvokeMarshaledCallback(ThreadMethodEntry)
Void InvokeMarshaledCallbacks()
Void WndProc(System.Windows.Forms.Message ByRef)
Void WndProc(System.Windows.Forms.Message ByRef)
IntPtr Callback(IntPtr, Int32, IntPtr, IntPtr)
Void DefWndProc(System.Windows.Forms.Message ByRef)
Void WndProc(System.Windows.Forms.Message ByRef)
IntPtr Callback(IntPtr, Int32, IntPtr, IntPtr)
IntPtr DispatchMessageW(MSG ByRef)
IntPtr DispatchMessageW(MSG ByRef)
Boolean System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr, Int32, Int32)
Void RunMessageLoopInner(Int32, System.Windows.Forms.ApplicationContext)
Void RunMessageLoop(Int32, System.Windows.Forms.ApplicationContext)
Void OnRun()
Void DoApplicationModel()
Void Run(System.String[])
Void Main(System.String[])
-----End StackFrame Information-----

Kiri Feather

unread,
Mar 12, 2017, 11:03:22 PM3/12/17
to Tween - Twitter Client, thfr...@gmail.com
MS-IMEに起因しているのでは、という推測が出ております。
最新情報を追えていないのですが、未だ修正されていないのかもしれません。

最大保持数については、別途検討していきたいと思います。

Kiri Feather

unread,
Mar 13, 2017, 12:22:04 AM3/13/17
to Tween - Twitter Client, thfr...@gmail.com

thfr...@gmail.com

unread,
Mar 14, 2017, 1:56:34 PM3/14/17
to Tween - Twitter Client, thfr...@gmail.com
2017年3月13日月曜日 13時22分04秒 UTC+9 Kiri Feather:
> 回避策が出てました。
> 参考まで。
> https://blogs.msdn.microsoft.com/japan_platform_sdkwindows_sdk_support_team_blog/2016/10/27/windows-10-anniversary-update-%E3%81%AE-%E6%97%A5%E6%9C%AC%E8%AA%9E%E7%89%88-microsoft-ime-%E4%BD%BF%E7%94%A8%E6%99%82%E3%81%AB%E3%80%81%E4%B8%8D%E6%98%8E%E3%81%AA%E3%82%B9%E3%83%AC%E3%83%83%E3%83%89/

ご回答ありがとうございます。
上記の更新プログラムをインストールしてみますので、
経過を見てまたご報告いたします。

thfr...@gmail.com

unread,
Apr 7, 2017, 5:16:18 AM4/7/17
to Tween - Twitter Client, thfr...@gmail.com
遅くなってすみません。経過報告です。
3月16日から起動しっぱなしで使用しましたが、今のところ不具合は再現しておりません。
どうやらこの修正で間違いなさそうです。ありがとうございました。
Reply all
Reply to author
Forward
0 new messages