Cg Error Invalid Program Handle
Support Search GitHub This repository Watch 18 Star 47 Fork 27 danping/CoSLAM Code Issues 1 Pull requests 0 Projects 0 Pulse Graphs New issue Cg Runtime errors #2 Open xepost opened this Issue May 26, 2015 · 2 comments Projects None yet Labels None yet Milestone No milestone Assignees No one assigned 2 participants xepost commented May 26, 2015 Hi, I am trying to run the code on several machines but it gives same error for Mint14, Mint17,Ubuntu 12.04 all x64 system. I get some Cg errors and code stops and waits to be terminated.You can see the screen image and the error log below. I would be happy if you can help solving this. Bests, Soner %%%%%%%%%%%%%%%%Error Log Begins%%%%%%%%%%%%%%%%%%%%%% coslam@coslam-XPS-12-9Q23 ~/coslam_codes/CoSLAM-master/CoSlam-build $ ./CoSLAM ./input.txt nViews:2 Skipped frames:0 Init frames:0 Video input:/home/coslam/coslam_codes/CoSLAM-master/rob_01_2015-05-21-17-45-04.avi Camera parameters:/home/coslam/coslam_codes/CoSLAM-master/rob_01_rgb_A00364A05539053A.txt Skipped frames:0 Init frames:0 Video input:/home/coslam/coslam_codes/CoSLAM-master/rob_02_2015-05-21-17-45-01.avi Camera parameters:/home/coslam/coslam_codes/CoSLAM-master/rob_02_rgb_A00364A06192053A.txt Loading video sequences.. OK! Cg error: The compile returned an error. Program: PyramidWithDerivativesCreator::buildPyramidForGrayscaleImage_impl::pass1HorizShader Cg compiler report: (73) : warning C7011: implicit cast from "float4" to "float" (74) : warning C7011: implicit cast from "float4" to "float" (75) : warning C7011: implicit cast from "float4" to "float" (76) : warning C7011: implicit cast from "float4" to "float" (77) : warning C7011: implicit cast from "float4" to "float" (73) : warning C7011: implicit cast from "float4" to "float" (74) : warning C7011: implicit cast from "float4" to "float" (75) : warning C7011: implicit cast from "float4" to "float" (76) : warning C7011: implicit cast from "float4" to "float" (77) : warning C7011: implicit cast from "float4" to "float" (124) : error C3004: function "half2 unpack_2half(float);" not supported in this profile (125) : error C3004: function "half2 unpack_2half(float);" not supported in this profile Cg error: Invalid program handle. Cg error: Invalid program handle. Cg error: The compile returned an error. Program: PyramidWithDerivativesCreator::buildPyramidForGrayscaleImage_impl::pass1VertShader Cg compiler report: (115) : e
4 Reference Pages OpenGL 3.3 Reference Pages OpenGL 2.1 Reference Pages OS/Platform Implementations OpenGL Books Coding Resources OpenGL SDK FAQs Sample Code & Tutorials GLUT & Utility Libraries Programming Language Bindings Benchmarks Mailing Lists & News Groups Archived Resources Wiki Forums About OpenGL Contact Us OpenGL logo Advertise on OpenGL Jobs Register Help Remember Me? What's New? Forum New Posts FAQ Calendar Forum Actions Mark Forums Read Quick Links Today's Posts View Site Leaders Khronos Forums COLLADA forums OpenGL: Getting Started Advanced Search Forum DEVELOPERS OpenGL coding: advanced Problems with Cg First time visitors, please read our FAQ and our Forum Rules and Guidelines. You must register before you can post. Page 1 of 2 12 Last Jump to page: Results 1 to 10 of https://github.com/danping/CoSLAM/issues/2 12 Thread: Problems with Cg Thread Tools Show Printable Version Email this Page… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode 07-15-2006,07:55 AM #1 holdeWaldfee View Profile View Forum Posts Private Message Intern Contributor Join Date Oct 2004 Posts 63 Problems with Cg For every local parameter setting, Cg makes several thousand unnecessary GetProgram and BindProgram calls. Same problem for all Cg versions so far. I found that this was brought up on other forums (gamedev, https://www.opengl.org/discussion_boards/showthread.php/148149-Problems-with-Cg etc.) too, but no solution was found. I even asked nvidia, but didn't get a reply yet. So has anyone the same problem and/or found a solution for this? Thanks! 07-15-2006,03:06 PM #2 PfhorSlayer View Profile View Forum Posts Private Message Intern Newbie Join Date Apr 2003 Posts 42 Re: Problems with Cg I have the exact same issue (I was the one that brought it up over at gamedev). Eight THOUSAND API calls per frame! Most of which are completely pointless! My opinion is that they build the libs with the debugging stuff turned on (to make sure everything is what it should be at run time), and released them that way. However, I would think that they'd make sure that wasn't the case, as people trying to choose between Cg and something else would be hard pressed to choose Cg if it made their application slow to a crawl. I too emailed Nvidia and never got a response back. Maybe someone who works there will read this... 07-17-2006,07:56 AM #3 cass View Profile View Forum Posts Private Message Visit Homepage Advanced Member Frequent Contributor Join Date Feb 2000 Location Austin, TX, USA Posts 913 Re: Problems with Cg Hi holdeWaldfee and PfhorSlayer, I'm sorry you haven't gotten a response to your questions about Cg. If you'll send them directly to me (cass@nvidia.com), I'll make sure they get answered. We are worki
full version with proper formatting. Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 http://forums.pcsx2.net/archive/index.php/thread-4108-5.html 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 http://ogre3d.org/forums/viewtopic.php?f=2&t=68762 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 cg error 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 salomaoo02-28-2009, 02:22 AM oh, and these errors spamming the console whe AA set to 8x or cg error invalid 16x ZeroGS: Cg error: CG ERROR : The parameter used is invalid. ZeroGS: Cg error: CG ERROR : Invalid parameter handle. ZeroGS: Cg error: CG ERROR : Invalid program handle. (soorry about double post , tought it was gonna merge this one too :/) chuuey02-28-2009, 02:49 AM well i managed to build the .dll as well with your tips but it doesn't show up in my plugin selection menu in pcsx2 for some reason nevermind i didn't have cg.dll and another .dll in my pcsx2 root folder welp, it's great it compiled and all, but text and other stuff are distorted, i guess it's cause of the modifications satan66602-28-2009, 05:56 AM (02-28-2009, 02:22 AM)salomaoo Wrote: [ -> ]oh, and these errors spamming the console whe AA set to 8x or 16x ZeroGS: Cg error: CG ERROR : The parameter used is invalid. ZeroGS: Cg error: CG ERROR : Invalid parameter handle. ZeroGS: Cg error: CG ERROR : Invalid program handle. (soorry about double post , tought it was gonna merge this one too :/) Could you make patch file or something? Thanks. Zeydlitz02-28-2009, 08:28 AM Do not try to build developer's build yet -- it's known to be buggied and spamm about Shaders when switching x8 and x16. Quote:3-in zerogs.h: //#include "common/PS2Etypes.h" //#include "common/PS2Edefs.h" moved #include "ZeroGSShaders/zerogsshaders.h" to after using namespace std
• All times are UTC [ DST ] Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group. Color scheme by ColorizeIt!