View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0014723 | ParaView | (No Category) | public | 2014-05-12 09:46 | 2014-08-29 11:00 | ||||
Reporter | Andy Bauer | ||||||||
Assigned To | Andy Bauer | ||||||||
Priority | normal | Severity | minor | Reproducibility | have not tried | ||||
Status | closed | Resolution | fixed | ||||||
Platform | OS | OS Version | |||||||
Product Version | git-master | ||||||||
Target Version | 4.2 | Fixed in Version | 4.2 | ||||||
Summary | 0014723: exporting Catalyst scripts with multiple layouts crashes the gui | ||||||||
Description | If there's more than a single layout in the ParaView GUI, is there a rendering context for each of them available all of the time? When using the CoProcessing plugin it crashes if I have more than one layout in the GUI when I try to export the Python script. The crash occurs in pqImageOutputInfo::setupScreenShotInfo() (shown below) because result is NULL which results from this->View->captureImage(thumbnailSize) returning NULL. So basically, is there a simple way to change the way we capture an image of a view if the view is in a "non-active" layout? 107 //----------------------------------------------------------------------------- 108 void pqImageOutputInfo::setupScreenshotInfo() 109 { 110 this->Info.thumbnailLabel->setVisible(true); 111 if(!this->View) 112 { 113 cerr << "no view available which seems really weird\n"; 114 return; 115 } 116 117 QSize viewSize = this->View->getSize(); 118 QSize thumbnailSize; 119 if(viewSize.width() > viewSize.height()) 120 { 121 thumbnailSize.setWidth(100); 122 thumbnailSize.setHeight(100*viewSize.height()/viewSize.width()); 123 } 124 else 125 { 126 thumbnailSize.setHeight(100); 127 thumbnailSize.setWidth(100*viewSize.width()/viewSize.height()); 128 } 129 vtkSmartPointer<vtkImageData> image; 130 image.TakeReference(this->View->captureImage(thumbnailSize)); 131 vtkNew<vtkPNGWriter> pngWriter; 132 pngWriter->SetInputData(image); 133 pngWriter->WriteToMemoryOn(); 134 pngWriter->Update(); 135 pngWriter->Write(); 136 vtkUnsignedCharArray* result = pngWriter->GetResult(); 137 QPixmap thumbnail; 138 thumbnail.loadFromData( 139 result->GetPointer(0), 140 result->GetNumberOfTuples()*result->GetNumberOfComponents(), "PNG"); 141 142 this->Info.thumbnailLabel->setPixmap(thumbnail); 143 } | ||||||||
Tags | No tags attached. | ||||||||
Project | TBD | ||||||||
Topic Name | 14723_export_coprocessing_scripts | ||||||||
Type | incorrect functionality | ||||||||
Attached Files | |||||||||
Relationships | |
Relationships |
Notes | |
(0032663) Utkarsh Ayachit (administrator) 2014-05-28 07:00 |
SUMMARY --------------------------------------------- Topics merged into master: 14723_export_coprocessing_scripts 14742_vtkImageDataToUniformGrid 14744_cleanup_views 14748_compile_cth_markers_in_by_default 14753_PluginSettings cleanup_viewframe_interface dashboard_maintenance fix-install-test fix_intel_compiler_mpich_issues fix_settings_server_processes pvweb-ubuntu-14LTS-doc-update settings_custom_apps use-external-data |
(0032724) Alan Scott (manager) 2014-06-03 20:45 |
I think this is actually just a developer tag in Git. Closing. If it should be tested, please let me know how, and set the bug to customer review. |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
2014-05-12 09:46 | Andy Bauer | New Issue | |
2014-05-12 09:46 | Andy Bauer | Assigned To | => Andy Bauer |
2014-05-21 16:05 | Andy Bauer | Status | backlog => todo |
2014-05-21 16:05 | Andy Bauer | Status | todo => active development |
2014-05-22 09:42 | Andy Bauer | Topic Name | => 14723_export_coprocessing_scripts |
2014-05-22 09:42 | Andy Bauer | Status | active development => gatekeeper review |
2014-05-22 09:42 | Andy Bauer | Fixed in Version | => git-next |
2014-05-22 09:42 | Andy Bauer | Resolution | open => fixed |
2014-05-28 06:59 | Utkarsh Ayachit | Fixed in Version | git-next => git-master |
2014-05-28 07:00 | Utkarsh Ayachit | Status | gatekeeper review => customer review |
2014-05-28 07:00 | Utkarsh Ayachit | Note Added: 0032663 | |
2014-06-03 20:45 | Alan Scott | Note Added: 0032724 | |
2014-06-03 20:45 | Alan Scott | Status | customer review => closed |
2014-06-17 09:22 | Utkarsh Ayachit | Target Version | => 4.2 |
2014-08-29 11:00 | Utkarsh Ayachit | Fixed in Version | git-master => 4.2 |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |