<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>287424</bug_id>
          
          <creation_ts>2011-11-24 02:56:31 +0000</creation_ts>
          <short_desc>Stream parser exception fills hard drive</short_desc>
          <delta_ts>2012-02-11 23:00:09 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>Frameworks and Libraries</classification>
          <product>Akonadi</product>
          <component>IMAP resource</component>
          <version>4.7</version>
          <rep_platform>Ubuntu</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Corey Schuhen">corey_bugs</reporter>
          <assigned_to name="Kevin Ottens">ervin</assigned_to>
          <cc>pim-bugs-null</cc>
    
    <cc>vasyabelkin5</cc>
    
    <cc>vkrause</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>1</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1189772</commentid>
    <comment_count>0</comment_count>
    <who name="Corey Schuhen">corey_bugs</who>
    <bug_when>2011-11-24 02:56:31 +0000</bug_when>
    <thetext>Version:           4.7 (using KDE 4.7.2) 
OS:                Linux


I have one IMAP account setup, it started to download my email and all seemed ok until I realise that my hard drive is full. After investigating, it appears that KDE is writing the following string to my ~/.xsession-errors file:

The stream parser raised an exception: Inconsistent state, probably due to some packet loss


This is really really bad because even after nulling it, it fills up REALLY fast. Putting an error message in such a fast loop seems really bad design to me, regardless of what the root cause is. The file is growing at a rate of about 6MB/sec.



Reproducible: Always

Steps to Reproduce:
Setup a single account using IMAP. It&apos;s an exchange server. Works fine with the old kmail1. There is about 10G of mail, which it was downloading ok initially. 

Actual Results:  
No new mail downloaded and hard drive fills up causing MANY things to break. Even my text editor refused to run because it could not create a temporary file.

Expected Results:  
!Actual Results

I did actually loose some data because the first time that it happened I could not save some files that I had open.

Regardless of if the root cause is found or not, something needs to be done to at least slow down those messages. Even if a dirty sleep was placed, it would limit the messages such that the hard drive would almost never fill up.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1194841</commentid>
    <comment_count>1</comment_count>
    <who name="Vasya Belkin">vasyabelkin5</who>
    <bug_when>2011-12-04 20:37:01 +0000</bug_when>
    <thetext>Reproduced on Arch Linux 64b. with KDE 4.7.3</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1225785</commentid>
    <comment_count>2</comment_count>
    <who name="Kevin Ottens">ervin</who>
    <bug_when>2012-02-11 22:58:18 +0000</bug_when>
    <thetext>Git commit 2bc7588fc206e14a625b629998318938e25ed43b by Kevin Ottens.
Committed on 11/02/2012 at 23:57.
Pushed by ervin into branch &apos;master&apos;.

Handle properly inconsistent parser state by closing the session

M  +5    -2    kimap/sessionthread.cpp
M  +33   -0    kimap/tests/testsession.cpp

http://commits.kde.org/kdepimlibs/2bc7588fc206e14a625b629998318938e25ed43b</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1225786</commentid>
    <comment_count>3</comment_count>
    <who name="Kevin Ottens">ervin</who>
    <bug_when>2012-02-11 23:00:09 +0000</bug_when>
    <thetext>Git commit 1b5f32d94d4873b14ded6db1e62b8169d6fd3937 by Kevin Ottens.
Committed on 11/02/2012 at 23:57.
Pushed by ervin into branch &apos;KDE/4.8&apos;.

Handle properly inconsistent parser state by closing the session
(cherry picked from commit 2bc7588fc206e14a625b629998318938e25ed43b)

M  +5    -2    kimap/sessionthread.cpp
M  +33   -0    kimap/tests/testsession.cpp

http://commits.kde.org/kdepimlibs/1b5f32d94d4873b14ded6db1e62b8169d6fd3937</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>