pulpTunes Community Forums The Web Server for iTunes

Please login or register.

Login with username, password and session length
Advanced search  

News:

Author Topic: Lastest nightly build (maybe a large library issue?)  (Read 4927 times)

hendrickx

  • Knight
  • ***
  • Posts: 19
    • View Profile
Lastest nightly build (maybe a large library issue?)
« on: March 07, 2009, 05:50:32 AM »

So I grabbed R155 this morning, and double-clicked the .jar file. PulpTunes launced, asked my where my iTunes XML was, I pointed it out, and got the please wait little swirly thingamajig.

I'm up to 15 minutes. This is with a library of 9938 songs on my quad-core vista-64 box. Java's using 87,692 KB of RAM, and is barely registering against the CPU time.    :-\

Is this normal initial-launch time on large libraries? I don't remember from when I had the full release running on the other box if I walked away to let it run overnight.

Thanks guys!

Edit: It appears to be progressing, I have temp files being written/removed in the same dir as my iTunes xml, there's also a sentinel file in there.
« Last Edit: March 12, 2009, 08:54:59 AM by hendrickx »
Logged

alpeb

  • Administrator
  • Grand Master
  • *****
  • Gender: Male
  • Posts: 444
    • View Profile
    • Email
Re: R155 (maybe a large library issue?)
« Reply #1 on: March 07, 2009, 07:56:10 AM »

I think there's a problem with the swirly thingamajig not disappearing , but the nice orange icon should be showing in your tray, and the server should be responding, no?
Logged

hendrickx

  • Knight
  • ***
  • Posts: 19
    • View Profile
Re: R155 (maybe a large library issue?)
« Reply #2 on: March 07, 2009, 09:13:50 PM »

You know, I didn't look.  I'm firing it up again right now.

Edit: Been up a couple minutes. Swirly thing is doin' it's bit, no icon in systray, no response on port 15000.

What can I give you to help troubleshoot?

Edit again: You know, I've had iTuned running both times I tried it. Does that make a difference?
« Last Edit: March 07, 2009, 09:19:52 PM by hendrickx »
Logged

alpeb

  • Administrator
  • Grand Master
  • *****
  • Gender: Male
  • Posts: 444
    • View Profile
    • Email
Re: R155 (maybe a large library issue?)
« Reply #3 on: March 07, 2009, 10:49:26 PM »

It might be a bug then. Please try with the snapshot from March 8th coming out in a few hours. Then try firing up the app from the command-line, and let me know if there's any output in the console. It doesn't make a difference if iTunes is running or not.
Logged

hendrickx

  • Knight
  • ***
  • Posts: 19
    • View Profile
Re: R155 (maybe a large library issue?)
« Reply #4 on: March 10, 2009, 04:32:45 PM »

looks like it's still there on r161.   :-[

I just fired it up, only been running for a minute or so. I'll check on it in a bit and post an update.
Logged

hendrickx

  • Knight
  • ***
  • Posts: 19
    • View Profile
Re: R155 (maybe a large library issue?)
« Reply #5 on: March 10, 2009, 04:43:51 PM »

running from a command line:

[Fatal Error] Library.xml:1:1: Content is not allowed in prolog.
Exception in thread "main" java.lang.RuntimeException: org.xml.sax.SAXParseExcep
tion: Content is not allowed in prolog.
        at pulptunes.xml.ITunesMusicDatabaseConfigurer.configure(ITunesMusicData
baseConfigurer.java:60)
        at pulptunes.PulpTunesApp.initializeMusicDatabase(PulpTunesApp.java:142)

        at pulptunes.PulpTunesApp.main(PulpTunesApp.java:318)
Caused by: org.xml.sax.SAXParseException: Content is not allowed in prolog.
        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Un
known Source)
        at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.p
arse(Unknown Source)
        at pulptunes.xml.ITunesMusicDatabaseConfigurer.configure(ITunesMusicData
baseConfigurer.java:47)
        ... 2 more

Should my itunes XML be plain text? Mine just is gobblygook when I open it in notepad.
« Last Edit: March 10, 2009, 04:49:01 PM by hendrickx »
Logged

alpeb

  • Administrator
  • Grand Master
  • *****
  • Gender: Male
  • Posts: 444
    • View Profile
    • Email
Re: R155 (maybe a large library issue?)
« Reply #6 on: March 10, 2009, 04:50:20 PM »

If you go to Advanced Settings, what's the value of the field "iTunes XML Library file location" ?
Logged

hendrickx

  • Knight
  • ***
  • Posts: 19
    • View Profile
Re: R155 (maybe a large library issue?)
« Reply #7 on: March 10, 2009, 04:59:54 PM »

If you go to Advanced Settings, what's the value of the field "iTunes XML Library file location" ?

Can't get there, app never starts.

For fun I tried the 1.0.1 release on this machine. While it ran fine under the old 32 bit machine, on this one it doesn't respond to the web.

using the release version (1.0.1) i see this in the log when I connect:

03/10/2009 18:27:15 - Server started. Listening to port 15000
03/10/2009 18:27:16 - 208.109.204.94- Server can receive connections from outside your network successfully
03/10/2009 18:27:16 - External IP is: 72.185.16.40
03/10/2009 18:27:16 - The server can receive connections from outside the network
03/10/2009 18:27:27 - ERROR: java.lang.NullPointerException
   at java.lang.String.replace(Unknown Source)
   at pulptunes.PulpTunesServer$PulpTunesServlet.getMainPage(PulpTunesServer.java:518)
   at pulptunes.PulpTunesServer$PulpTunesServlet.doGet(PulpTunesServer.java:441)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
   at pulptunes.PulpTunesServer$PulpTunesServlet.service(PulpTunesServer.java:110)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
   at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502)
   at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:363)
   at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
   at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:757)
   at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
   at org.mortbay.jetty.Server.handle(Server.java:324)
   at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:502)
   at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:826)
   at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:523)
   at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
   at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:377)
   at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228)
   at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:497)

Maybe it's a 64-bit thing?
Logged

alpeb

  • Administrator
  • Grand Master
  • *****
  • Gender: Male
  • Posts: 444
    • View Profile
    • Email
Re: R155 (maybe a large library issue?)
« Reply #8 on: March 11, 2009, 09:45:11 AM »

Ok let's try first debugging the scenario of using the snapshot in your 32bit machine. Before launching from the command line, erase the directory where pulpTunes stores its temporary data so that we start up with a clean state. Not sure about vista, but in XP it's located at \Documents and Settings\YourName\.pulpTunes

Then please post here again the output you get. I'm trying to see what's the XML file that it's being read.

Thanks,
Alejandro
Logged

hendrickx

  • Knight
  • ***
  • Posts: 19
    • View Profile
Re: R155 (maybe a large library issue?)
« Reply #9 on: March 12, 2009, 08:54:02 AM »

Ok let's try first debugging the scenario of using the snapshot in your 32bit machine. Before launching from the command line, erase the directory where pulpTunes stores its temporary data so that we start up with a clean state. Not sure about vista, but in XP it's located at \Documents and Settings\YourName\.pulpTunes

Then please post here again the output you get. I'm trying to see what's the XML file that it's being read.

Thanks,
Alejandro

On vista, the folder is at \users\YourName\.pulpTunes

I've moved to r162

On XP/32 bit, fully booted. Removed the .pulpTunes directory, stopped non-essential services, 837500K memory available.
It never asked me for my XML file location...

Code: [Select]
C:\Documents and Settings\Chris\Desktop\pulp_2009-03-12\dist>java -jar pulptunes
.jar
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
        at com.sun.org.apache.xerces.internal.util.XMLStringBuffer.append(Unknow
n Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.refres
h(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.invokeListen
ers(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.skipChar(Unk
nown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l$FragmentContentDriver.next(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(U
nknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
l.scanDocument(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U
nknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(U
nknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown So
urce)
        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Un
known Source)
        at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.p
arse(Unknown Source)
        at pulptunes.xml.ITunesMusicDatabaseConfigurer.configure(ITunesMusicData
baseConfigurer.java:47)
        at pulptunes.PulpTunesApp.initializeMusicDatabase(PulpTunesApp.java:142)

        at pulptunes.PulpTunesApp.main(PulpTunesApp.java:318)

For fun, I tried it again on Vista/64 bit, it does ask for the XML location. (C:\music\Library.xml -- it's 17.8 MB! I can zip it and put it somewhere for you to grab if you want to see it.)

Code: [Select]
C:\Users\Chris\Downloads\pulp_2009-03-12\dist>"C:\Program Files (x86)\Java\jre6\
bin\java" -jar pulptunes.jar
[Fatal Error] Library.xml:1:1: Content is not allowed in prolog.
Exception in thread "main" java.lang.RuntimeException: org.xml.sax.SAXParseExcep
tion: Content is not allowed in prolog.
        at pulptunes.xml.ITunesMusicDatabaseConfigurer.configure(ITunesMusicData
baseConfigurer.java:60)
        at pulptunes.PulpTunesApp.initializeMusicDatabase(PulpTunesApp.java:142)

        at pulptunes.PulpTunesApp.main(PulpTunesApp.java:318)
Caused by: org.xml.sax.SAXParseException: Content is not allowed in prolog.
        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Un
known Source)
        at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.p
arse(Unknown Source)
        at pulptunes.xml.ITunesMusicDatabaseConfigurer.configure(ITunesMusicData
baseConfigurer.java:47)
        ... 2 more

Thanks again for the help!

Logged

alpeb

  • Administrator
  • Grand Master
  • *****
  • Gender: Male
  • Posts: 444
    • View Profile
    • Email
Re: Lastest nightly build (maybe a large library issue?)
« Reply #10 on: March 12, 2009, 10:18:06 AM »

The error you get on XP/32 bit means java needs more memory. So you'd better start the program with something like this:

java -Xms120m -Xmx220m -jar PulpTunes.jar

If you still get the same error, try higher values for Xms and Xmx.

Let me know how it goes.

Cheers,
Alejandro
Logged

hendrickx

  • Knight
  • ***
  • Posts: 19
    • View Profile
Re: Lastest nightly build (maybe a large library issue?)
« Reply #11 on: March 12, 2009, 02:16:45 PM »

That did it. Runs on 32 bit, the login stuff looks awesome!

on my 64 bit I need to dig around and find my proper itunes Library file.
Logged

alpeb

  • Administrator
  • Grand Master
  • *****
  • Gender: Male
  • Posts: 444
    • View Profile
    • Email
Re: Lastest nightly build (maybe a large library issue?)
« Reply #12 on: March 12, 2009, 02:21:36 PM »

Cool. If you still have problems in vista 64bit please email me the xml file to alpeb at pulptunes.

Cheers,
Alejandro
Logged

hendrickx

  • Knight
  • ***
  • Posts: 19
    • View Profile
Re: Lastest nightly build (maybe a large library issue?)
« Reply #13 on: March 12, 2009, 02:31:59 PM »

HAH!  There were two xml files: Library.xml and library.xml.xml -- oddly enough remove either and iTunes breaks. I needed to use the .xml.xml one in pulpTunes, I had been using the other one.

I ran into the heap space issue, added the mem commands, and BOOM! running on 64 bit.  Sweet!

Now to setup some users and play with it...
Logged

alpeb

  • Administrator
  • Grand Master
  • *****
  • Gender: Male
  • Posts: 444
    • View Profile
    • Email
Re: Lastest nightly build (maybe a large library issue?)
« Reply #14 on: March 12, 2009, 02:37:55 PM »

That's so odd... I only knew about the existence of "iTunes Music Library.xml" file, and its binary companion "iTunes Library.itl". Maybe you have changed that file name in the iTunes preferences?

About playing with the users... can't do anything yet except playing with the groups :(

Cheers.
Logged