Mantis Bug Tracker
 

View Issue Details Jump to Notes ] Wiki ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0010616mantisbtattachmentspublic2009-06-22 23:452009-10-28 20:29
Reportersdurkin 
Assigned To 
PrioritynormalSeveritycrashReproducibilityalways
StatusnewResolutionopen 
PlatformXAMPP for window @GridSenseOSWindows Server 2003OS VersionEnterprise; SP2
Product Versiongit trunk 
Target VersionFixed in Version 
Summary0010616: Crash on attempt to attach file.
DescriptionWhen I try to attach a small file to an issue report, I get this error from page bug_file_add.php :

APPLICATION ERROR 0000401

Database query failed. Error received from database was #1054: Unknown column 'user_id' in 'field list' for the query: INSERT INTO mantis_bug_file_table
(bug_id, title, description, diskfile, filename, folder, filesize, file_type, date_added, content, user_id)
VALUES
(278, '', '', '83d539ad118ffebfef88af65cede9588', 'LINEman_Eng.ini', '', 23, 'application/octet-stream', '1245727506', '[Settings]\r\nPort=COM4\r\n', 2).


My mantis version is "MantisBT 1.2.0a3 2009-06-11-master-d9978e5".

I had the release version of Mantis 1.2.0a3 earlier and upgraded to the git version simply by deploying the new files. Was this wrong and the cause of my problem? Should I have gone through the /admin/install.php first?
TagsNo tags attached.
Attached Filesjpg file icon 92A.jpg [^] (1,932,614 bytes) 2009-08-19 03:55

- Relationships

-  Notes
User avatar (0022230)
sdurkin (reporter)
2009-06-23 00:12

I ran through install.php . I can now attach small files (~100k), but at 1Mb I get the following error instead ...

APPLICATION ERROR 0000401

Database query failed. Error received from database was 0002006: MySQL server has gone away for the query: INSERT INTO mantis_bug_file_table
(bug_id, title, description, diskfile, filename, folder, filesize, file_type, date_added, content, user_id)
VALUES



Note. Schema version = 173
User avatar (0022761)
sdurkin (reporter)
2009-08-19 03:53

I have updated my installation to 1.2.0cRC1 .
When I attempt to attach a jpg file (1.84 MB), Mantis crashes.

After posting this note, I will try to upload the image file to THIS installation. If it works, then maybe I need to upgrade again to the current git.
User avatar (0023397)
vboctor (administrator)
2009-10-27 04:21

Looks like your attachment upload succeeded. Should we resolve this issue as fixed?
User avatar (0023426)
sdurkin (reporter)
2009-10-27 22:53

No, the issue is not resolved. I tested it just now.

This is reproducable. My test is this.
1. Create a new issue.
2. Select Upload File | Browse... . Note, on my system the displayed label under "Select File" is "(Max. size: 16,000k)".
3. I select a file to upload. The file has size 2,865,664 bytes . This is under the designated limit.
4. I click the "Upload File" button.
5. Mantis crashes with the following error message:
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 6973241 bytes) in D:\Application Services\xampp\htdocs\mantis\core\error_api.php on line 378


Note, at this time, my installed version of Mantis is:
  MantisBT 1.2.0a3 2009-06-11-master-d9978e5
User avatar (0023446)
dhx (developer)
2009-10-28 19:22

My guess from what you've said is that another unrelated error occurred, and Mantis' error reporting is trying to dump the entire file contents in the backtrace (thus exhausting huge amounts of memory)?
User avatar (0023456)
sdurkin (reporter)
2009-10-28 20:29

Perhaps. The problem is definitely derived from file size though. Below a certain threshold of file size (about 1MB), I consistently can attach without problem. Above the threshold, I consistently get the problem.

Because Mantis at www.mantisbt.org doesnt have the problem, but my local installation does, I suspect that does local enviromental issue is at play.

I could modify my installation of Mantis to include some appropriate diagnostic information in relation to this issue. Could you give me some hints as to how to go about this? Does Mantis have an in-built logging function that I can leverage for this purpose?

- Issue History
Date Modified Username Field Change
2009-06-22 23:45 sdurkin New Issue
2009-06-23 00:12 sdurkin Note Added: 0022230
2009-08-19 03:53 sdurkin Note Added: 0022761
2009-08-19 03:55 sdurkin File Added: 92A.jpg
2009-10-27 04:21 vboctor Note Added: 0023397
2009-10-27 04:21 vboctor Status new => feedback
2009-10-27 22:53 sdurkin Note Added: 0023426
2009-10-27 22:53 sdurkin Status feedback => new
2009-10-28 18:29 vboctor Category bugtracker => attachments
2009-10-28 19:22 dhx Note Added: 0023446
2009-10-28 20:29 sdurkin Note Added: 0023456


MantisBT 1.2.2 git master-1.2.x[^]
Copyright © 2000 - 2010 MantisBT Group
Time: 0.2040 seconds.
memory usage: 1,965 KB
Powered by Mantis Bugtracker