|
SageTV Github Development Discussion related to SageTV Open Source Development. Use this forum for development topics about the Open Source versions of SageTV, hosted on Github. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
||||
|
||||
Help needed - UI Hangs while starting
I am new to Sage and have set up a test system to figure things out before switching over full time. I'm running Windows 7 with the OpenDCT service and have the Sage Service enabled.
I added the Web UI Plugin which failed to install the first time, then installed with no error the second time. It doesn't seem to work, though, but that's not my real issue here. I shut down the UI and the service, then restarted the service and ran the UI program. But now the UI is hung with the message "SageTV Service is initializing...". I've shut things down and tried again, and rebooted the system, but nothing works. Renamed Wiz.bak to Wiz.bin and restarted the service and UI but that didn't help either. I'm now stuck as the UI continues to hang at the same spot. Help? |
#2
|
|||
|
|||
How long did you wait before you considered it hung?
__________________
"Keep your goals away from the trolls" |
#3
|
||||
|
||||
15 minutes? It had been starting up very quickly until now.
I did figure out how to enable debug logging and I've attached the log. I don't see anything horribly wrong but then I'm new to this. |
#4
|
|||
|
|||
I've had it take an hour before but I have allot of recordings and imported videos that it had to scan for media file format. Yours should be quicker than that. I would just let it go and periodically look at the log and make sure this "Splash: Profiler is initializing... 0% done" is increasing. You will have to close and reopen the file. Also according to the log it looks like it was closer to 5 minutes but maybe it stopped updating. You might also add "limited_carny_init=true" to the Sage.properties file. SageTV needs to be completely shut down including service mode to edit that file.
__________________
"Keep your goals away from the trolls" |
#5
|
||||
|
||||
It stayed hung overnight, so I renamed the sage.properties to force a clean run. Yes I did kill the UI and stop the Sage service first. And it's still hanging at the same dang spot.
EDIT: Sorry, I forgot to change the limited_carny_init setting to true. I just did this and the UI started up properly. I'll have to read up to see what that actually did, but apparently I'm back in business. Thanks, Bob! Last edited by Zogg; 09-09-2016 at 08:35 AM. |
#6
|
||||
|
||||
That's very odd. I can see from the log it only has 1 Agent to process...so that should take no time at all, but it seems like it just hung there while doing it. The ThreadMonitor indicates no CPU usage during this, so something got stuck. I'm very curious why that happened but would need stack traces to debug further.
__________________
Jeffrey Kardatzke Founder of SageTV |
#7
|
||||
|
||||
Changing limited_carny_init back to false causes the problem to return. The log file looks similar.
Using Process Explorer, SageTV.exe seems to be cycling and waiting at the State: Wait:UserRequest. The stack for this thread shows this: ntdll.dll!KiFastSystemCallRet mswsock.dll+0x65cc mswsock.dll+0x5fac mswsock.dll+0x5da4 WS2_32.dll!connect+0x52 net.dll!Java_java_net_DualStackPlainSocketImpl_connect0+0x46 jvm.dll!JVM_Clone+0x43012 jvm.dll!JVM_Clone+0x4374a jvm.dll!JVM_FindSignal+0x62e7e jvm.dll!JVM_Clone+0x437cd jvm.dll!JNI_CreateJavaVM+0xad5 jvm.dll!JNI_CreateJavaVM+0xb92b SageTV.exe+0x108b SageTV.exe+0x2e20 SageTV.exe+0x4632 SageTV.exe+0x4d59 kernel32.dll!BaseThreadInitThunk+0x12 ntdll.dll!RtlInitializeExceptionChain+0xef ntdll.dll!RtlInitializeExceptionChain+0xc2 alternating with this stack: ntdll.dll!KiFastSystemCallRet kernel32.dll!WaitForMultipleObjectsEx+0x8e kernel32.dll!WaitForMultipleObjects+0x18 jvm.dll!JVM_FindSignal+0x5672 jvm.dll!JVM_Sleep+0x22a jvm.dll!JVM_Clone+0x43012 jvm.dll!JVM_Clone+0x4374a jvm.dll!JVM_FindSignal+0x62e7e jvm.dll!JVM_Clone+0x437cd jvm.dll!JNI_CreateJavaVM+0xad5 jvm.dll!JNI_CreateJavaVM+0xb92b SageTV.exe+0x108b SageTV.exe+0x2e20 SageTV.exe+0x4632 SageTV.exe+0x4d59 kernel32.dll!BaseThreadInitThunk+0x12 ntdll.dll!RtlInitializeExceptionChain+0xef ntdll.dll!RtlInitializeExceptionChain+0xc2 Does that tell you anything? Maybe a Java problem? |
#8
|
||||
|
||||
That's not the actual trace I need...but sounds like you'd have no problem getting it.
Here's how you do it: http://forums.sagetv.com/forums/show...41&postcount=5 The registry setting in that post may not be correct depending upon what version of Windows you are using and how it moves things around....but if you find the right branch then put the key there. That'll then print out the Java stack trace in the console window that'll tell me what I need to know. And you'll need to disable service mode to do that since you can't get a console window in service mode.
__________________
Jeffrey Kardatzke Founder of SageTV |
#9
|
||||
|
||||
I really appreciate you taking a look at the attached console dump.
Hopefully it's worthwhile and not a stupid error on my part, but I'll play the newbie card if I have to. |
#10
|
|||
|
|||
You've got the right person involved now.
__________________
"Keep your goals away from the trolls" |
#11
|
||||
|
||||
Apparently it hit an exception due to having an Airing object with no corresponding Show object...which is odd because it tests everything in the database for that during startup and will remove anything that has an issue like that. In the code, there lots of places where it does check to ensure the Show does resolve properly...so the easy fix is to just add that check in this same place where it was crashing. I'll go ahead and submit that fix soon.
__________________
Jeffrey Kardatzke Founder of SageTV |
#12
|
||||
|
||||
Sorry I caused another problem to be fixed, but thanks for fixing it.
|
#13
|
||||
|
||||
It was a simple one line fix, no worries.
__________________
Jeffrey Kardatzke Founder of SageTV |
#14
|
|||
|
|||
I'm assuming Narflex is ok with people finding these general purpose bugs as they may well have translated into the fiber code.
|
#15
|
||||
|
||||
Fiber doesn't run SageTV anymore....so that doesn't matter. And I won't be answering any follow up questions regarding that.
__________________
Jeffrey Kardatzke Founder of SageTV |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
SageTV Service hangs "starting" | mihooper | SageTV Software | 5 | 10-19-2009 09:19 PM |
Starting over | oopsydaisy | SageTV Mac Edition | 3 | 09-21-2009 04:24 PM |
IR.exe not starting | dvd_maniac | Hardware Support | 1 | 04-15-2009 04:09 PM |
Just starting.... | AtlasStone | Hardware Support | 12 | 08-31-2006 06:51 PM |
Just starting out | idkidd | General Discussion | 1 | 01-12-2006 04:03 PM |