INTERACT FORUM

More => Old Versions => JRiver Media Center 23 for Windows => Topic started by: F Ribeiro on February 21, 2018, 07:02:01 pm

Title: Windows start menu bug - simple app to reset start menu with exta
Post by: F Ribeiro on February 21, 2018, 07:02:01 pm
I don't like to have Windows task schedulers to kill and restart explorer each 20 minutes to solve the bug (or any other kind of schedulers running in the background).
So, I wrote a simple and tiny app to restart explorer, which reset the start menu to normal operation.
You can put it on your task bar or in the desktop and run only when you need.
Sometimes (not often) I need to kill all Media Center processes.
Specialy wen we get the error message in attachment (click over the picture in attachment).
So, I put an option to Kill all media center processes.

Lines of code that matters:
---------------------------

 Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click

        If Me.CheckBox1.Checked = True Then
            Dim arrProcess() As Process = System.Diagnostics.Process.GetProcessesByName("explorer")
            For Each p As Process In arrProcess
                p.Kill()
                p.WaitForExit()
            Next
        End If

        If Me.CheckBox2.Checked = True Then
            Dim arrProcess() As Process = System.Diagnostics.Process.GetProcessesByName("Media Center 23")
            For Each p As Process In arrProcess
                p.Kill()
                p.WaitForExit()
            Next
        End If
        If Me.CheckBox3.Checked = True Then
            Close()
        End If
    End Sub
 


Title: Re: Windows start menu bug - simple app to reset start menu with exta
Post by: ~OHM~ on February 22, 2018, 02:03:06 pm
just out of curiosity did you read the pop up and fix the issue? thus not needing a special app...I don't think it's a bug but I'm not a guru.

I don't know you, you have what 10-12 posts. I would never download something and install it from a unknown source....really are you kidding me!
Title: Re: Windows start menu bug - simple app to reset start menu with exta
Post by: d8lock on March 09, 2018, 03:27:22 am
I'm on the 30 day trial, and am leaning towards picking it up.  I do have one problem that keeps coming up.  After watching a few videos from the library, and switching the MC app from left to right monitor (dual monitor setup), the Start button will stop working.  The action center is also unresponsive.  A reboot fixes this, but I was hoping there was a few settings I could change. 
Title: Re: Windows start menu bug - simple app to reset start menu with exta
Post by: Awesome Donkey on March 09, 2018, 03:44:47 am
Known Windows 10 issue.

https://yabb.jriver.com/interact/index.php/topic,106925.0.html
https://yabb.jriver.com/interact/index.php/topic,113034.0.html
Title: Re: Windows start menu bug - simple app to reset start menu with exta
Post by: CountryBumkin on March 09, 2018, 05:16:30 am
I'm on the 30 day trial, and am leaning towards picking it up.  I do have one problem that keeps coming up.  After watching a few videos from the library, and switching the MC app from left to right monitor (dual monitor setup), the Start button will stop working.  The action center is also unresponsive.  A reboot fixes this, but I was hoping there was a few settings I could change.


You can open Task Manager (Ctrl+Alt+Del) and just restart Windows Explorer. No need to reboot computer.

Title: Re: Windows start menu bug - simple app to reset start menu with exta
Post by: d8lock on March 09, 2018, 06:48:59 am
Known Windows 10 issue.

https://yabb.jriver.com/interact/index.php/topic,106925.0.html
https://yabb.jriver.com/interact/index.php/topic,113034.0.html

Just downloaded the script now.  Thanks for the quick responses!
Title: Re: Windows start menu bug - simple app to reset start menu with exta
Post by: RD James on March 09, 2018, 11:20:18 am
Do you have Windows completely up-to-date?
If you run "winver" it should be Version 1709 (OS Build 16299.251)
It's not been completely eliminated yet, but it's rare that I encounter this now.
Title: Re: Windows start menu bug - simple app to reset start menu with exta
Post by: DJLegba on March 09, 2018, 11:31:46 am
Do you have Windows completely up-to-date?
If you run "winver" it should be Version 1709 (OS Build 16299.251)
It's not been completely eliminated yet, but it's rare that I encounter this now.

That's the version I have (new install but fully updated). I'm using MC for audio only on this PC and I see this problem all the time. It's a headless NUC dedicated to MC so the Start button bug isn't an issue for me, but it's definitely there.
Title: Re: Windows start menu bug - simple app to reset start menu with exta
Post by: Vocalpoint on March 12, 2018, 02:41:30 pm
It's not been completely eliminated yet, but it's rare that I encounter this now.

I thought I had this beat back over the Xmas break but it's back. I have been running 1709 (as in inplace upgrade to 1607 for about three months now)

I have seen the Start menu freeze out at least a half dozen times in the last week. Always when MC is running. Made an interesting observance on one of the freezes. After I saw the Start menu freeze - I purposely shut MC down and then left the machine alone for about a half hour.

When I came back - I immediately tried the Start menu and it worked fine.

So whatever MC is doing - it seems to not do it after a period of time. How long is unknown. But I do know that if you get a freeze, kill MC and try the start menu immediately after the shutdown - it still will not work. But leave it for a while (how long is unknown) and the start menu will come back...

Again - only when MC is in the picture does this happen.

VP
Title: Re: Windows start menu bug - simple app to reset start menu with exta
Post by: glynor on March 12, 2018, 03:10:33 pm
The crappy Windows bug has seemed to come back recently. After the Fall Creators Windows Update I hadn't seen it again in a LONG time, but it seems to have returned just very recently (the past month or so).

I can say I only have personally seen it when MC is left running, paused or otherwise idle but open, and the machine sleeps the display. After this, there's a very good chance I'll have to restart the Windows Explorer process to get the start button working again.
Title: Re: Windows start menu bug - simple app to reset start menu with exta
Post by: Vocalpoint on March 12, 2018, 03:39:33 pm
The crappy Windows bug has seemed to come back recently. After the Fall Creators Windows Update I hadn't seen it again in a LONG time, but it seems to have returned just very recently (the past month or so).

I concur. Something has changed either within Windows (Recent Win update?) or within MC itself.

I can say I only have personally seen it when MC is left running, paused or otherwise idle but open, and the machine sleeps the display. After this, there's a very good chance I'll have to restart the Windows Explorer process to get the start button working again.

Interesting - never made the connection about the display. Over here - I never sleep the display - but it does go to screen saver mode after 30 mins or so. And I still see the menu freeze after a period of time.

VP
Title: Re: Windows start menu bug - simple app to reset start menu with exta
Post by: F Ribeiro on March 13, 2018, 06:22:53 am
I'm on the 30 day trial, and am leaning towards picking it up.  I do have one problem that keeps coming up.  After watching a few videos from the library, and switching the MC app from left to right monitor (dual monitor setup), the Start button will stop working.  The action center is also unresponsive.  A reboot fixes this, but I was hoping there was a few settings I could change.

Or you can save the attached app to your pc and put a link in the task bar.
Whenever it happens, just run the app from the task bar and press enter (in default option "restart explorer").
Your start menu should be back to normal.

If you get some alert from Windows, you can ignore it.
It´s a simple app in Microsoft .NET and the code that matters is:

Public Class Form1
    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
        For Each OneProcess As Process In Process.GetProcesses
            Me.ListBox1.Items.Add(OneProcess.ProcessName)
        Next
        ListBox1.Sorted = True
        Me.Button1.Select()
    End Sub

    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click

        If Me.CheckBox1.Checked = True Then
            Dim arrProcess() As Process = System.Diagnostics.Process.GetProcessesByName("explorer")
            For Each p As Process In arrProcess
                p.Kill()
                p.WaitForExit()
            Next
        End If

        If Me.CheckBox2.Checked = True Then
            Dim arrProcess() As Process = System.Diagnostics.Process.GetProcessesByName("Media Center 23")
            For Each p As Process In arrProcess
                p.Kill()
                p.WaitForExit()
            Next
        End If

        If Me.CheckBox4.Checked = True Then
            Dim curItem As String = ListBox1.SelectedItem.ToString()
            Dim arrProcess() As Process = System.Diagnostics.Process.GetProcessesByName(curItem)

            Dim rYesNo As String = MsgBox("Kill process " & curItem & " ?", vbOKCancel, "ATTENTION!")

            For Each p As Process In arrProcess
                If p.HasExited <> True Then
                    p.Kill()
                    p.WaitForExit()
                End If
            Next
        End If

        If Me.CheckBox3.Checked = True Then
            Close()
        End If
    End Sub

    Private Sub GroupBox1_Enter(sender As Object, e As EventArgs) Handles GroupBox1.Enter

    End Sub

    Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
        Close()
    End Sub

    Private Sub Timer1_Tick(sender As Object, e As EventArgs)

    End Sub
End Class


Title: Re: Windows start menu bug - simple app to reset start menu with exta
Post by: CountryBumkin on March 13, 2018, 10:33:52 am
And I still see the menu freeze after a period of time.

VP

This happens here too. I've posted about it before but no solution. What I've seen during the eventual shutdown and restart of MC, is a "Direct3D error" message popup just as MC closes (like it was hidden behind MC window).
Title: Re: Windows start menu bug - simple app to reset start menu with exta
Post by: B4Unyu on March 13, 2018, 05:03:14 pm
about restarting windows explorer process...

right click task manager from your desktop search results and pin it to the taskbar, restart the Windows Explorer process or whatever from there.
Title: Re: Windows start menu bug - simple app to reset start menu with exta
Post by: F Ribeiro on March 17, 2018, 10:12:46 am
just out of curiosity did you read the pop up and fix the issue? thus not needing a special app...I don't think it's a bug but I'm not a guru.

I don't know you, you have what 10-12 posts. I would never download something and install it from a unknown source....really are you kidding me!

Well,

You can have the source code as a Microsoft Visual Studio Project if you want to compile it (attached).
This way you can check the code. It's yours.

I am a JRiver fan since early versions, I love music and I certainly appreciate the extraordinary work the team at JRiver have been doing all over the years.

Besides, I use to follow the forum in a regular basis.
I don't post a lot because English is not my mother language

This is the more honest and transparent I can be (giving you the code).

I certainly am not kidding you, because if you don't know me, it means I don't know you.

Any way, I understand and respect your point of view.

Stay safe,

Fernando Ribeiro
Portugal
Title: Re: Windows start menu bug - simple app to reset start menu with exta
Post by: ~OHM~ on March 17, 2018, 01:50:23 pm
Acknowledged

Patrick