Giter Site home page Giter Site logo

1.7 Release about issues HOT 13 CLOSED

cevelop avatar cevelop commented on July 19, 2024
1.7 Release

from issues.

Comments (13)

misto avatar misto commented on July 19, 2024

@tcorbat @tonisuter @fmorgner @Stautob bitte die Liste der Plug-ins ergänzen (habs nur von letztem Mal kopiert)

from issues.

fmorgner avatar fmorgner commented on July 19, 2024

All 'CUTE' plugins should be ready and tagged for release. The 'Cevelop Plug-ins' are also ready and tagged. AFAIK @Stautob's Intwidthfixator will remain in the optional track for the foreseeable future. GSLator is scheduled to remain optional for the 1.7.0 release.

from issues.

misto avatar misto commented on July 19, 2024

Does anybody know the state of Mockator and Sconsolidator? I guess Sconsolidator is pretty stable..

from issues.

tcorbat avatar tcorbat commented on July 19, 2024

Shall we use CDT 9.2.2 for Cevelop 1.7?

from issues.

misto avatar misto commented on July 19, 2024

Does it include all patches we shipped in the past releases?

from issues.

rtosman avatar rtosman commented on July 19, 2024

cevelop 1.7 fails to load on Windows 10 Creators Update with Java 8.

The error is:

image

from issues.

tcorbat avatar tcorbat commented on July 19, 2024

from issues.

rtosman avatar rtosman commented on July 19, 2024

@tcorbat Thanks! That was it, somehow the Java installer had resisted all attempts I made to install the 64 bit version and had installed the 32 bit version. Sorry, I have been out of the Java stream of consciousness for several years :-)

from issues.

rtosman avatar rtosman commented on July 19, 2024

So, after trying to analyze our rather large source base, I keep getting Java null pointer exceptions:

Example:

Failed to get including location of include float.h.
Failed to get including location of include limits.h.
Failed to get including location of include math.h.
Failed to get including location of include new.
Failed to get including location of include stdarg.h.
Failed to get including location of include stdint.h.
Failed to get including location of include stdio.h.
Failed to get including location of include stdlib.h.
Failed to get including location of include wchar.h.
Failed to get including location of include xmmintrin.h.
File unspecified
Error while performing static analysis.
java.lang.NullPointerException

I am assuming that it isn't a problem that the system headers can't be located.

I have changed my vmargs to include:
-Xms1024m
-Xmx8192m

Is there any way to learn specifically what the issue is (I may be able to work around it if I understand what the problem is).

from issues.

PeterSommerlad avatar PeterSommerlad commented on July 19, 2024

Sorry over the Easter holidays you might not get a substantial support. But you can open the error log view, select and copy paste the corresponding stack trace here which might give an indication which checker (assuming static analysis is really the reason for the npe) is guilty. A second option is to check the JVM's/Eclipse memory usage( I know there must be a plugin for it) to see if even with your settings the JVM runs out of usable memory making allocations fail. A third option might be, that the OS limits the numbers of open files below what is needed or the files lack permissions, because you get messages related to file access.

from issues.

tcorbat avatar tcorbat commented on July 19, 2024

@rtosman We're back from our Easter holidays. Thanks for your report!

Is there a more detailed stack track in the Eclipse Error Log? It would be helpful to know where exactly this NPE occured. I guess you cannot provide a minimal example to reproduce the issue, right?

from issues.

fmorgner avatar fmorgner commented on July 19, 2024

I have found 2 NPEs. I was able to create a minimal example for the second one.

Steps to reproduce:

  1. Create a new C++ project in Cevelop

  2. Add the following two files (They have to be two separate files!):

    • GH17ClassNPE.h:
    #ifndef GH17_CLASS_NPE
    #define GH17_CLASS_NPE
    
    class GH17ClassNPE: public GH17ClassNPEBase { // The base must not exist!
        GH17ClassNPE();
    };
    #endif
    • GH17ClassNPE.cpp:
    #include "GH17ClassNPE.h"
    
    GH17ClassNPE::GH17ClassNPE() : GH17ClassNPEBase { } {
    }
  3. Run Includator "Organize Includes" on either the Project or the CPP file (This is important since running it on the header will not produce the NPE)

Stacktrace:

java.lang.NullPointerException
	at com.cevelop.includator.helpers.ConstructorReferenceHelper.findImplicitlyInitializedBaseClasses(ConstructorReferenceHelper.java:78)
	at com.cevelop.includator.helpers.ConstructorReferenceHelper.addImplicitBaseClassConstructors(ConstructorReferenceHelper.java:49)
	at com.cevelop.includator.helpers.DeclarationReferenceVisitor.performAdditionalRefActions(DeclarationReferenceVisitor.java:213)
	at com.cevelop.includator.helpers.DeclarationReferenceVisitor.addName(DeclarationReferenceVisitor.java:159)
	at com.cevelop.includator.helpers.DeclarationReferenceVisitor.visit(DeclarationReferenceVisitor.java:81)
	at org.eclipse.cdt.internal.core.dom.parser.cpp.CPPASTName.accept(CPPASTName.java:150)
	at org.eclipse.cdt.internal.core.dom.parser.cpp.CPPASTQualifiedName.accept(CPPASTQualifiedName.java:247)
	at org.eclipse.cdt.internal.core.dom.parser.cpp.CPPASTDeclarator.accept(CPPASTDeclarator.java:190)
	at org.eclipse.cdt.internal.core.dom.parser.cpp.CPPASTFunctionDefinition.accept(CPPASTFunctionDefinition.java:204)
	at org.eclipse.cdt.internal.core.dom.parser.ASTTranslationUnit.accept(ASTTranslationUnit.java:266)
	at com.cevelop.includator.helpers.DeclarationReferenceHelper.findDeclReferences(DeclarationReferenceHelper.java:54)
	at com.cevelop.includator.resources.IncludatorFile.getDeclarationReferences(IncludatorFile.java:60)
	at com.cevelop.includator.optimizer.findunusedincludes.FindUnusedIncludesAlgorithm.run(FindUnusedIncludesAlgorithm.java:55)
	at com.cevelop.includator.optimizer.Algorithm.start(Algorithm.java:42)
	at com.cevelop.includator.optimizer.ScopedAlgorithm.run(ScopedAlgorithm.java:34)
	at com.cevelop.includator.optimizer.Algorithm.start(Algorithm.java:42)
	at com.cevelop.includator.optimizer.Optimizer.run(Optimizer.java:37)
	at com.cevelop.includator.ui.OptimizationRunner.run(OptimizationRunner.java:57)
	at com.cevelop.includator.ui.actions.IncludatorAlgorithmAction.runAnalysisJob(IncludatorAlgorithmAction.java:110)
	at com.cevelop.includator.ui.actions.IncludatorAlgorithmAction$1.runWithWorkbenchWindow(IncludatorAlgorithmAction.java:58)
	at com.cevelop.includator.ui.actions.IncludatorJob.run(IncludatorJob.java:32)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

Notes

A similar NPE happens in relation to non-static member functions, but I am currently no able to reproduce it using a minimal example. For both of them, I have a preliminary fix on my own branch.

from issues.

fmorgner avatar fmorgner commented on July 19, 2024

Moved the NPE issue to #22 since it is not related to the release process. Closing this issue, since 1.7.0 has been released. Any further information shall be attached to #22. Thanks for reporting the issue!

from issues.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.