Author Topic: SVN Error  (Read 24987 times)

Lord High Warlock

  • Full Member
  • *
  • Posts: 159
  • Karma: 2
  • I am The Lord thy Warlock.
    • The Crystal Fortress
SVN Error
« on: November 02, 2009, 10:23:30 am »
I just tried to check and see if any new revisions of SMG had been posted when I received the following error:

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 5007449 bytes) in /home/smfmedia/public_html/community/Sources/Class-Package.php on line 346

Thought you guys might want to know about it...

Dragooon

  • Hero Member
  • *
  • Posts: 2609
  • Karma: 7
Re: SVN Error
« Reply #1 on: November 02, 2009, 11:32:24 am »
I'll look into this issue tomorrow.

Lord High Warlock

  • Full Member
  • *
  • Posts: 159
  • Karma: 2
  • I am The Lord thy Warlock.
    • The Crystal Fortress
Re: SVN Error
« Reply #2 on: November 03, 2009, 11:25:28 am »
Tried it again...got a different line number this time, Dragooon...

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 11913917 bytes) in /home/smfmedia/public_html/community/Sources/Class-Package.php on line 101

Nao

  • Hero Member
  • *
  • Posts: 3609
  • Karma: 22
    • WEDGE!
Re: SVN Error
« Reply #3 on: November 03, 2009, 11:29:56 am »
It's annoying, it prevented me from doing my usual packaging method today... (commit my changes, go download latest rev as a zip, unzip, delete converters, rezip, upload to SM.org)
« Everyone knows rock attained perfection in 1974. It's a scientific fact. » (Homer Simpson)

Developer of Wedge, the SMF fork.
No PM support! Or I'll eat you with salad and garlic sausage.

Dragooon

  • Hero Member
  • *
  • Posts: 2609
  • Karma: 7
Re: SVN Error
« Reply #4 on: November 06, 2009, 10:46:21 am »
I am trying to fix this now, it is not easy to process an XML file filled with SVN commits which is 8.6 MB. Apparently our friend Nao crossed the bearable limit of this script :P

Nao

  • Hero Member
  • *
  • Posts: 3609
  • Karma: 22
    • WEDGE!
Re: SVN Error
« Reply #5 on: November 06, 2009, 10:55:36 am »
Sorry, lol ;)

BTW is this a mod you made by yourself...? What script did you base it upon?

Maybe you could simply change the script so that it only retrieves the latest 100 commits?
« Everyone knows rock attained perfection in 1974. It's a scientific fact. » (Homer Simpson)

Developer of Wedge, the SMF fork.
No PM support! Or I'll eat you with salad and garlic sausage.

Dragooon

  • Hero Member
  • *
  • Posts: 2609
  • Karma: 7
Re: SVN Error
« Reply #6 on: November 06, 2009, 10:56:51 am »
Sorry, lol ;)

BTW is this a mod you made by yourself...? What script did you base it upon?

Maybe you could simply change the script so that it only retrieves the latest 100 commits?
Its a small script I made myself, I did not base it on anything. I am trying to do the same, limit it to last x commits.

Nao

  • Hero Member
  • *
  • Posts: 3609
  • Karma: 22
    • WEDGE!
Re: SVN Error
« Reply #7 on: November 06, 2009, 11:20:17 am »
You mean even you even wrote the SVN retrieval code...? Isn't that a complicated thing to accomplish?
I'm guessing it's tied to the server entirely!
« Everyone knows rock attained perfection in 1974. It's a scientific fact. » (Homer Simpson)

Developer of Wedge, the SMF fork.
No PM support! Or I'll eat you with salad and garlic sausage.

Dragooon

  • Hero Member
  • *
  • Posts: 2609
  • Karma: 7
Re: SVN Error
« Reply #8 on: November 06, 2009, 11:29:28 am »
You mean even you even wrote the SVN retrieval code...? Isn't that a complicated thing to accomplish?
I'm guessing it's tied to the server entirely!
Its a 10KB script including templates, not really complicated. Plus I used SMF's XML parsers, it makes stuff easier. I basically used SVN's shell commands to retrieve the list into a XML file and then parse it. Its not something tied to server, I think Simpleportal uses it to(They asked for it sometime in the past).

Dragooon

  • Hero Member
  • *
  • Posts: 2609
  • Karma: 7
Re: SVN Error
« Reply #9 on: November 06, 2009, 11:44:25 am »
OK I have fixed, it now limits to the last 100 commits.

Lord High Warlock

  • Full Member
  • *
  • Posts: 159
  • Karma: 2
  • I am The Lord thy Warlock.
    • The Crystal Fortress
Re: SVN Error
« Reply #10 on: November 06, 2009, 12:10:06 pm »
Thanks, Dragooon!   ;D