CRM-1989 Out of memory error at upload step of mailing

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 1.7
    • Fix Version/s: 1.7
    • Component/s: CiviMail
    • Labels:
      None

      Description

      At the upload step of sending a mailing in CiviMail, an out of memory error occurs. Initially discussed in the forum at http://forum.civicrm.org/index.php/topic,285.0.html.

      To create this on my server which has 90M memory available (CiviMail not availabe on the demo), I did the following:
      1. Initialize my contact database with 950 contacts
      2. Select send a new mailing
      3. Add a name to the mailing (Step 1)
      4. Add a small group of one individual as the recipient (Step 2)
      5. Uploaded a text message (2k) and html message (7k), then click upload (Step 3)
      Then either blank screen occurs, or a screen with error messages indicating out of memory failure at various lines of code (not necessary the same one each time).

      This problem does not occur when the number of contacts was reduced to 900, or with either the HTML or the TXT message was uploaded (but not both).

        Attachments

          Activity

          [CRM-1989] Out of memory error at upload step of mailing
          Donald A. Lobo added a comment -

          This was because an uninitialized variable was causing the code to loop across ALL custom values and hence consuming more and more memory during the test mail run. kinda surprised that we did not detect this previously . I fixed the issues and made sure the contactID is initialized if the function is called in customValues

          lobo

          Piotr Szotkowski added a comment -

          Reopening closed issues to make them editable.

          Piotr Szotkowski added a comment -

          Changing the issue to resolved and unverified for 1.8.

          Piotr Szotkowski added a comment -

          Make the issue unverified for 1.8.

          Piotr Szotkowski added a comment -

          Assigning to Pankaj for 1.8 verification.

          David Greenberg added a comment -

          Assigning back as I'm not setup to test CiviMail issues. Please reassign as needed.

          David Greenberg added a comment -

          Kurund recommended that I reassign CiviMail issues to Piotr for verification.

          Piotr Szotkowski added a comment -

          Created a CSV of 1000 contacts, imported, tried to create a mailing and succeeded. Marking as verified for 1.8.

          Manish Zope added a comment -

          Reopening for verification for 2.0

          Piotr Szotkowski added a comment -

          Verified for 2.0.

          Manish Zope added a comment -

          Issue is already verified for 2.0, hence closing it.

            People

            • Assignee:
              Piotr Szotkowski
              Reporter:
              Chris Mott

              Dates

              • Created:
                Updated:
                Resolved: