aMule Bug Tracker - aMule
View Issue Details
0001700aMuleGUIpublic2011-12-03 19:342012-02-11 19:14
TeddyBeer 
 
normalcrashsometimes
resolvedfixed 
SVN 
2.3.2 
10755
ubuntu 11.10 / qnap-firmware (linux)
0001700: amuleweb crash on CProgressImage::CreateSpan
When viewing the Transfer page in the web-gui for some minutes (15-20min) the amuleweb crashes (the page refresh itself 3-4 times a minutes) and must be restarted.

I don't have the full backtrace here, but they are quite the same as the one reported in the issue: 0001652

I'm on the latest SVN release (10686).

I've experienced the issue running the amuleweb on a QNAP-linux (arm CPU) and on my laptop either (ubuntu 11.10).

amuled is at the same version as the amuleweb.

---
a quick & dirty working patch seems to be this one (at least for me):


Index: src/webserver/src/WebServer.cpp
===================================================================
--- src/webserver/src/WebServer.cpp (revision 10686)
+++ src/webserver/src/WebServer.cpp (working copy)
@@ -1067,7 +1067,10 @@
                for(int i = 1; i <= colored_gaps_size;i++) {
                        uint32 start = colored_gaps[i].start / factor;
                        uint32 end = colored_gaps[i].end / factor;
- for(uint32 j = start; j < end; j++) {
+ if(end > m_width){
+ end=m_width;
+ }
+ for(uint32 j = start; j < end ; j++) {
                                m_ColorLine[j] = colored_gaps[i].color;
                        }
                }
@@ -1075,7 +1078,11 @@
                for(uint32 i = 0; i < m_file->m_ReqParts.size(); i++) {
                        uint32 start = m_file->m_ReqParts[i].start / factor;
                        uint32 end = m_file->m_ReqParts[i].end / factor;
- for(uint32 j = start; j < end; j++) {
+ if(end > m_width){
+ end=m_width;
+ }
+ for(uint32 j = start; j < end ; j++) {
+
                                m_ColorLine[j] = RGB(255, 208, 0);
                        }
                }
compiled from:
svn 10686
wxWidgets 2.8.12
No tags attached.
Issue History
2011-12-03 19:34TeddyBeerNew Issue
2011-12-03 19:34TeddyBeerOperating System => ubuntu 11.10 / qnap-firmware (linux)
2011-12-03 19:51TeddyBeerNote Added: 0003591
2012-02-11 19:14sturedmanFixed in Revision => 10755
2012-02-11 19:14sturedmanNote Added: 0003604
2012-02-11 19:14sturedmanStatusnew => resolved
2012-02-11 19:14sturedmanResolutionopen => fixed
2012-02-11 19:14sturedmanFixed in Version => 2.3.2

Notes
(0003591)
TeddyBeer   
2011-12-03 19:51   
i didn't attached the patch as an attachement because it's not yet considerable a real patch, because of some randomic weirdness generated in the images, but at least seems to stop the crashes.
(0003604)
sturedman   
2012-02-11 19:14   
Applied your patch, thank you!