[confirm] TV not working after hibernation, config crashing (3 Viewers)

bounguine

Portal Pro
November 7, 2005
233
15
51
St.Petersburg
Home Country
Russian Federation Russian Federation
I don’t think there’s a need of re-installing everything (it was always really a torture to install a new RC without normal upgrade procedure for many reasons, really).
If my system is kept unchanged and a new RC causes troubles, it’s not a system fault. And it’s not my fault. RC must be installed in a proper way.
I understand that this is not a commercial SW and I can be sent to Hell,
Anyway, there should be a kind of exception handler (for drivers crashing, TVService or SQL db inaccessibility, etc.).

Please, think of me to be a stupid user, who can’t act as a bug-tester. If I have a trouble, the only thing I can do, is to post logs. But not think or re-install and test.

I worked more than 11 years for a GSM operator and there’s a rule that a stupid user is always right. So, if you release anything for a wide range of GSM mobile phones, do test yourself beforehand. If there’s a trouble afterwards, do everything to solve the problem, ‘cause you are guilty.

I used to write to the team before the troubles I have, but my questions were unanswered or nothing was done (see the threads weak signal or WebEPG). “I’m lazy to explain”, “no time to argue”, “buy a biggest dish” or “yes, we’re bad C++ coders” were the only answers.
If the team can’t help me, I must do it by myself.

Actually, this morning I got an idea what might be wrong with the TVServer and did some manual testing of tricking the server. And that worked.

I’m a tough guy (or I wouldn’t succeed in OSS/BSS making), so I had a discussion with a friend of mine who was responsible 7 or 8 years ago for making the first Russian mobileTV platform using RTSP in GSM-networks.
He performed a long training about proper way of closing Windows services, sockets, choosing the right Windows posts on resuming, etc. I can’t reproduce that, as I’m not an expert or a coder.
I was just interested, whether my solution was right or not. He said “yeah”, but disagreed to help me, as it is an open-source project.

So I am to re-write my nnCron script to parse Windows suspend command and stop it before closing the service in a proper way using a third-party app, to solve “onresuming” driver problem and to solve a problem when a driver and MP are crashed, when a signal is weak due to rain, etc.

Too much work until weekends.
Reading nnCron help now.
 

elliottmc

Retired Team Member
  • Premium Supporter
  • August 7, 2005
    14,927
    6,061
    Cardiff, UK
    Home Country
    United Kingdom United Kingdom
    Hi,

    Is anyone still having this problem? If so, could you please replace the relevant files with those in the attached zip file. You may need to stop your TV service first.

    I think that this fix (courtesy of MrHipp) will only work with MySQL.

    If this fixes your problem, please report back!

    Thanks,

    Mark
     

    Attachments

    • mysql.zip
      625.7 KB

    flodav

    Portal Member
    November 3, 2008
    25
    1
    Home Country
    France France
    Hi,

    I also have random crashes of MePo if I launch TV after resuming from standby. The problem is that it is not easily reproducible, it can happen randomly after few standby (typically once a week)

    I will test your update and report here in this thread.

    What have you changed in your update ?
     

    elliottmc

    Retired Team Member
  • Premium Supporter
  • August 7, 2005
    14,927
    6,061
    Cardiff, UK
    Home Country
    United Kingdom United Kingdom
    Hi,

    I also have random crashes of MePo if I launch TV after resuming from standby. The problem is that it is not easily reproducible, it can happen randomly after few standby (typically once a week)

    I will test your update and report here in this thread.

    What have you changed in your update ?

    The version of part of the SQL software. I don't actually understand the changes, but one of the developers reported seeing similar problems and this fixed them. It would be good to get feedback, although this change is now in SVN and will be in RC5.

    Mark
     

    flodav

    Portal Member
    November 3, 2008
    25
    1
    Home Country
    France France
    OK, I will do the test. I will upgrade my system this evening.

    Please note, that it will take some time before I can report because my "crash" problem is not occuring at each "resume from standby"
     

    doveman

    Portal Pro
    February 12, 2008
    2,326
    178
    Home Country
    United Kingdom United Kingdom
    elliottmc,

    Thanks for the fix. I haven't had a chance to test it yet as I've been having harddrive problems and have just done a reinstall of XP and MP RC4, but I'll give it a go once I get everything setup properly..
     

    bounguine

    Portal Pro
    November 7, 2005
    233
    15
    51
    St.Petersburg
    Home Country
    Russian Federation Russian Federation
    Wow!
    RC4 throws the same errors with MSSQL, as RC3.
    Nothing was done by the team at all.
    Need some time to make something, which slightly resembles "coding", out of what I have done for myself.
    Just not to be called "lamer", when posting it here.
     

    elliottmc

    Retired Team Member
  • Premium Supporter
  • August 7, 2005
    14,927
    6,061
    Cardiff, UK
    Home Country
    United Kingdom United Kingdom
    Wow!
    RC4 throws the same errors with MSSQL, as RC3.
    Nothing was done by the team at all.
    Need some time to make something, which slightly resembles "coding", out of what I have done for myself.
    Just not to be called "lamer", when posting it here.

    Could you please clarify?

    Is there a bug in RC4? Is it relevant to this thread? Have you fixed it?

    If so, please post your fix, and I am sure that the team will help to incorporate it.

    Otherwise, I can't see the point if your post, since you are not telling us what the problem is, or giving any information that will allow us to fix it.

    Mark
     

    bounguine

    Portal Pro
    November 7, 2005
    233
    15
    51
    St.Petersburg
    Home Country
    Russian Federation Russian Federation
    Thanks for your answer.

    Yes, TVServer cannot be accessed in RC4, but now not every time like in RC3, when PC is resuming.
    Just from time to time.
    The logs are like those above.

    Actually, what I did.

    I don't have much understanding in the way MP is made.
    So, I tried to be simply logical.

    TVServer throws errors on resuming, only when it was used before hibernating (when I have watched TV).
    The error occurs, when I send PC to hibernation using remote or power button or when it is sent to hibernation by PowerScheduler plugin.

    I manually restarted TVServer after watching and then sent PC to hibernation. No errors on resuming.

    What I did next.
    I intercepted hibernation using nnCron together with Shutdown Stopper (no skills to make it myself and no time to read MSDN, so I merely used Shutdown Stopper as a blocker), then I restarted TVService with nnCron, retrieved the event (hibernation or shutdown) from Shutdown Stopper logs and hibernated (powered off) PC with nnCron accordingly.

    But I'm lucky to use WinXP.
    Hibernation is not intercepted in Vista and above, as I know.

    I changed power button to “shutdown”, intercepted the command and throw an ugly message like “press YES or wait 1 minute to hibernate, press NO to shutdown”.
    Now I’m working on changing the power button function through the registry.
    But there’s a problem – PowerScheduler has no option to shutdown. So I can’t automatically change PowerScheduler command using nnCron.

    I can post my scripts, but they are not yet ready to be public for many reasons.
    I’m planning to fully control SQL-server, TVServer and MP through nnCron.
    nnCron parses every event, watches if the process really started and gives a command to start next service/app.
    When something crashes, nnCron starts a task to check every service and to make a repairing procedure if needed. Actually, nnCron checks all the processes every minute.
    Besides it read logs to solve DVB-driver, D3D and some other problems.
    So, it’s more like a monitoring handler.

    Now all the logs are substituted in scripts with messages for me to control visually all the processes.
    Please, remember that I’m not a coder, so I need some time to go deeper in some questions. I don’t know yet how to establish lost connection from MP to SQL and TVServer without restarting MP GUI, etc
    Anyway, I’m always open to cooperate.
     

    elliottmc

    Retired Team Member
  • Premium Supporter
  • August 7, 2005
    14,927
    6,061
    Cardiff, UK
    Home Country
    United Kingdom United Kingdom
    Thanks for your answer.

    Yes, TVServer cannot be accessed in RC4, but now not every time like in RC3, when PC is resuming.
    Just from time to time.
    The logs are like those above.

    Actually, what I did.

    I don't have much understanding in the way MP is made.
    So, I tried to be simply logical.

    TVServer throws errors on resuming, only when it was used before hibernating (when I have watched TV).
    The error occurs, when I send PC to hibernation using remote or power button or when it is sent to hibernation by PowerScheduler plugin.

    I manually restarted TVServer after watching and then sent PC to hibernation. No errors on resuming.

    What I did next.
    I intercepted hibernation using nnCron together with Shutdown Stopper (no skills to make it myself and no time to read MSDN, so I merely used Shutdown Stopper as a blocker), then I restarted TVService with nnCron, retrieved the event (hibernation or shutdown) from Shutdown Stopper logs and hibernated (powered off) PC with nnCron accordingly.

    But I'm lucky to use WinXP.
    Hibernation is not intercepted in Vista and above, as I know.

    I changed power button to “shutdown”, intercepted the command and throw an ugly message like “press YES or wait 1 minute to hibernate, press NO to shutdown”.
    Now I’m working on changing the power button function through the registry.
    But there’s a problem – PowerScheduler has no option to shutdown. So I can’t automatically change PowerScheduler command using nnCron.

    I can post my scripts, but they are not yet ready to be public for many reasons.
    I’m planning to fully control SQL-server, TVServer and MP through nnCron.
    nnCron parses every event, watches if the process really started and gives a command to start next service/app.
    When something crashes, nnCron starts a task to check every service and to make a repairing procedure if needed. Actually, nnCron checks all the processes every minute.
    Besides it read logs to solve DVB-driver, D3D and some other problems.
    So, it’s more like a monitoring handler.

    Now all the logs are substituted in scripts with messages for me to control visually all the processes.
    Please, remember that I’m not a coder, so I need some time to go deeper in some questions. I don’t know yet how to establish lost connection from MP to SQL and TVServer without restarting MP GUI, etc
    Anyway, I’m always open to cooperate.

    Hi,

    It seems as though you have narrowed down the situations in which this is a problem.

    We really do need your clean logs in order to have a chance of solving the problem before 1.1.0 is released.

    Best wishes,

    Mark
     

    Users who are viewing this thread

    Top Bottom