lihaochen910 / Candy

A Moai Editor.
Other
1 stars 1 forks source link

AKU.pyd终于编译成功 #3

Closed shixiaoshan2000 closed 2 years ago

shixiaoshan2000 commented 2 years ago

谢谢 AKU.pyd终于编译成功, 换了一个版本moai,64位编译,用的是lua5.13,jit版不支持64位吧?你的是PYthon是64位的?

lihaochen910 commented 2 years ago

是64位的

shixiaoshan2000 commented 2 years ago

修改了你发过的src 后,64位lua和jit版AKU.pyd生成成功

[string "E:\can1\Candy-master/lib/lua/init.lua"]:30 in main chunk [STATUS] [MOAIRuntime] initContext() ok. [STATUS] change moai working path:E:\can1\Candy-master\shi [STATUS] init GL context [WARNING] no GL initializer found [STATUS] loading module:search_view Could not create pixmap from :\images\handle.png [STATUS] loading module:scene_editor [STATUS] loading module:candy E:\can1\Candy-master/lib/lua/candy_edit.lua:13: loop or previous error loading m

shixiaoshan2000 commented 2 years ago

odule 'candy' stack traceback: [C] in function 'require' E:\can1\Candy-master/lib/lua/candy_edit.lua:13 in main chunk [C] in function 'require' [string "chunk"]:1 in main chunk [CandyRuntime] candy.init Traceback (most recent call last): File "E:\can1\Candy-master\candy_editor_bin.py", line 94, in <module main () File "E:\can1\Candy-master\candy_editor_bin.py", line 88, in main MOAIImageFormatPng.zip

shixiaoshan2000 commented 2 years ago

:\images\handle.png 在那

lihaochen910 commented 2 years ago
Could not create pixmap from :\images\handle.png

这个文件没找到不影响执行, 检查一下是不是其他位置报错

shixiaoshan2000 commented 2 years ago

这样吧,我把我机器生成的aku.pyd发给你,看在你那行不,我是lua5.13及jit2.03

shixiaoshan2000 commented 2 years ago

AKU.zip

shixiaoshan2000 commented 2 years ago

AKU3.zip

shixiaoshan2000 commented 2 years ago

我的环境win7 64 vs2019 winsdk10.0.19041.0 Python 64 3.810

lihaochen910 commented 2 years ago

我这里报:

Must use luaL_newstate() for 64 bit target
Windows fatal exception: access violation

可能是跟MOAILuaRuntime.cpp第896行定义有关,

MOAIScopedLuaState MOAILuaRuntime::Open () {

    if ( this->IsOpen ()) {
        this->Close ();
    }

    // open the main state
    #if (MOAI_WITH_LUAJIT && (defined(__x86_64 ) || defined(__amd64)) )
        this->mState = luaL_newstate();  //luajit doesn't support custom allocs on 64bit
    #else
        this->mState = lua_newstate ( _trackingAlloc, NULL );
    #endif

    lua_atpanic ( this->mState, &_panic );

    // set up the ref tables
    this->mStrongRefs.InitStrong ();
    this->mWeakRefs.InitWeak ();

    return MOAIScopedLuaState ( this->mState );
}

需要在moai-lib-core项目属性中添加预处理器定义__x86_64, 我的是

WIN32;_CRT_SECURE_NO_WARNINGS;_CRT_SECURE_NO_DEPRECATE;DEBUG;_DEBUG;MOAI_WITH_LUAJIT;__x86_64;%(PreprocessorDefinitions)
shixiaoshan2000 commented 2 years ago

谢谢,是这个问题,lua5.13版在你机器也不行吗,修改后生成moai.exe 在我本机可以正常运行,但aku.pyd还是有问题 [STATUS] loading module:candy [CandyRuntime] candy.init [STAT :candy] loading game config from : E:\can1\Candy-master\shi/env/con fig/game_config.json [STAT :candy] [LOG :candy] Init Graphics Resolution 0 0 [STAT :candy] setting up window callbacks [LOG :candy] init RenderManager!! GL 3 1 [STAT :candy] resize context content :false 1024 768 [STAT :candy] resize context :false 1024 768 [STAT :candy] register render context: game <GameRenderContext:0x000 00000>:false AKU.zip [STAT :candy] init game render context [STAT :candy] init device output render target [STAT :candy] system graphics context ready! Windows fatal exception: code 0xe24c4a02``

shixiaoshan2000 commented 2 years ago

我把新生成aku.pyd发了过去看你那边是不是报同样的错

lihaochen910 commented 2 years ago

需要使用LuaJit链接, 普通版本lua不行

shixiaoshan2000 commented 2 years ago

我发过去的是jit

shixiaoshan2000 commented 2 years ago

修改后的

lihaochen910 commented 2 years ago

试了一下, 是有报错但是也能启动编辑器.

C:\Python38\python.exe D:/OneDrive/Documents/CandyEditor/candy_editor_bin.py ide
[STATUS]    start tool: ide <D:\OneDrive\Documents\CandyEditor\tools/ide>
PYTHONPATH: D:\OneDrive\Documents\CandyEditor;D:\OneDrive\Documents\CandyEditor\lib;C:\Users\Kanbaru\AppData\Local\JetBrains\Toolbox\apps\PyCharm-P\ch-1\203.7717.81\plugins\python\helpers\pycharm_matplotlib_backend;C:\Users\Kanbaru\AppData\Local\JetBrains\Toolbox\apps\PyCharm-P\ch-1\203.7717.81\plugins\python\helpers\pycharm_display
PYTHONPATH: D:\OneDrive\Documents\CandyEditor;D:\OneDrive\Documents\CandyEditor\lib;C:\Users\Kanbaru\AppData\Local\JetBrains\Toolbox\apps\PyCharm-P\ch-1\203.7717.81\plugins\python\helpers\pycharm_matplotlib_backend;C:\Users\Kanbaru\AppData\Local\JetBrains\Toolbox\apps\PyCharm-P\ch-1\203.7717.81\plugins\python\helpers\pycharm_display

 --     ,_______    ------------------------------------------------------ 
       /        \       _______  ___   ___                               
      /        |  >    |       ||   | |   |                              
      |          ;     |    ___||   | |   |                                
     /           |     |   | __ |   | |   |                                
    / <_         |     |   ||  ||   | |   |                                
   /             |     |   |_| ||   | |   |                               
   \,,,,,,,,,,,,/      |_______||___| |___|   Candy development environment 
 --      |   |      ------------------------------------------------------

[STATUS]    project loaded: D:\OneDrive\Documents\CandyEditor\ZGameProject
[STATUS]    registering asset manager: asset_manager.image
[STATUS]    registering asset manager: asset_manager.text
[STATUS]    registering asset manager: asset_manager.scene
[STATUS]    registering asset manager: asset_manager.prefab
[STATUS]    registering asset manager: asset_manager.texture_processor
[STATUS]    registering asset manager: asset_manager.texture
[STATUS]    registering asset manager: asset_manager.prebuilt_atlas
[STATUS]    registering asset manager: asset_manager.deck2d
[STATUS]    registering asset manager: asset_manager.font
[STATUS]    registering asset manager: asset_manager.stylesheet
[STATUS]    registering asset manager: asset_manager.data_json
[STATUS]    registering asset manager: asset_manager.named_tileset
[STATUS]    registering asset manager: asset_manager.animator_data
[STATUS]    scanning package in:D:\OneDrive\Documents\CandyEditor/packages
[ERROR] failed reading package settings:EditorConsole
[WARNING]   no __candy__.json found in package folder: D:\OneDrive\Documents\CandyEditor/packages/WelcomeScreen
[WARNING]   no __candy__.json found in package folder: D:\OneDrive\Documents\CandyEditor/packages/__pycache__
[STATUS]    packages loaded!
[STATUS]    loading module:qt
Windows fatal exception: code 0xc0000139

Thread 0x000037f8 (most recent call first):
  File "C:\Python38\lib\selectors.py", line 314 in _select
  File "C:\Python38\lib\selectors.py", line 323 in select
  File "C:\Python38\lib\socketserver.py", line 294 in handle_request
  File "D:\OneDrive\Documents\CandyEditor/lib\candy_editor\core\InstanceHelper.py", line 32 in serve_forever
  File "C:\Python38\lib\threading.py", line 870 in run
  File "C:\Python38\lib\threading.py", line 932 in _bootstrap_inner
  File "C:\Python38\lib\threading.py", line 890 in _bootstrap

Thread 0x00002fcc (most recent call first):
  File "D:\OneDrive\Documents\CandyEditor/lib\candy_editor\qt\QtSupport.py", line 124 in onLoad
  File "D:\OneDrive\Documents\CandyEditor/lib\candy_editor\core\EditorModule.py", line 137 in load
  File "D:\OneDrive\Documents\CandyEditor/lib\candy_editor\core\EditorModule.py", line 249 in loadModule
  File "D:\OneDrive\Documents\CandyEditor/lib\candy_editor\core\EditorModule.py", line 267 in loadAllModules
  File "D:\OneDrive\Documents\CandyEditor/lib\candy_editor\core\EditorApp.py", line 96 in init
  File "D:\OneDrive\Documents\CandyEditor/lib\candy_editor\core\EditorApp.py", line 110 in run
  File "D:\OneDrive\Documents\CandyEditor\tools/ide/__init__.py", line 24 in run
  File "C:\Python38\lib\site-packages\click\core.py", line 610 in invoke
  File "C:\Python38\lib\site-packages\click\core.py", line 1066 in invoke
  File "C:\Python38\lib\site-packages\click\core.py", line 782 in main
  File "C:\Python38\lib\site-packages\click\core.py", line 829 in __call__
  File "D:\OneDrive\Documents\CandyEditor\tools/ide/__init__.py", line 28 in main
  File "D:\OneDrive\Documents\CandyEditor/lib\candy_editor\core\tool.py", line 100 in startTool
  File "D:\OneDrive\Documents\CandyEditor/lib\candy_editor\core\tool.py", line 189 in startupTool
  File "D:\OneDrive\Documents\CandyEditor/lib\candy_editor\__init__.py", line 6 in startup
  File "D:/OneDrive/Documents/CandyEditor/candy_editor_bin.py", line 88 in main
  File "D:/OneDrive/Documents/CandyEditor/candy_editor_bin.py", line 94 in <module>
[STATUS]    loading module:moai
[STATUS]    loading moai lua runtime
[STATUS]    loading project script lib
[STATUS]    change moai working path:D:\OneDrive\Documents\CandyEditor\ZGameProject/game
[STATUS]    loading candy lua module
Could not connect to localhost:8172: timeout
WARNING: font file assets/fonts/VL-PGothic.ttf does not exist
FT_Stream_Open: could not open `D:/OneDrive/Documents/CandyEditor/ZGameProject/game/assets/fonts/VL-PGothic.ttf'
FONT_ERROR loading font: D:/OneDrive/Documents/CandyEditor/ZGameProject/game/assets/fonts/VL-PGothic.ttf
ERROR: unable to open font file D:/OneDrive/Documents/CandyEditor/ZGameProject/game/assets/fonts/VL-PGothic.ttf for reading glyphs.
[STATUS]    [MOAIRuntime] initContext() ok.
[STATUS]    change moai working path:D:\OneDrive\Documents\CandyEditor\ZGameProject
[STATUS]    init GL context
connectPythonSignal: asset.modified <function wrapLuaCaller.<locals>.caller at 0x000001CC4C8D6AF0>
connectPythonSignal: asset.register <function wrapLuaCaller.<locals>.caller at 0x000001CC4C8D6B80>
connectPythonSignal: asset.unregister <function wrapLuaCaller.<locals>.caller at 0x000001CC4C8D6C10>
[LOG  :candy]   Game:addLayer() main
[STATUS]    loading module:filewatcher
[STATUS]    loading module:search_view
[STATUS]    loading module:scene_editor
[STATUS]    loading module:candy
[CandyRuntime] candy.init
[STAT :candy]   loading game config from :  D:\OneDrive\Documents\CandyEditor\ZGameProject/env/config/game_config.json
[STAT :candy]   
[LOG  :candy]   Init Graphics Resolution    0   0
[STAT :candy]   setting up window callbacks
[LOG  :candy]   init RenderManager!!    GL  3   1
[STAT :candy]   resize context content  <GameRenderContext:0x00000000>:false    1920    1080
[STAT :candy]   resize context  <GameRenderContext:0x00000000>:false    1920    1080
[STAT :candy]   register render context:    game    <GameRenderContext:0x00000000>:false
[STAT :candy]   init game render context
[STAT :candy]   init device output render target
[STAT :candy]   system graphics context ready!
[STAT :candy]   ...setting up layers
[LOG  :candy]   Game:addLayer() CANDY_EDITOR_LAYER
[STAT :candy]   init input handlers
[ERROR:candy]   no input device:    device
[ERROR:candy]   @D:\OneDrive\Documents\CandyEditor/lib/lua/candy\input\InputDevice.lua:836
[ERROR:candy]   @D:\OneDrive\Documents\CandyEditor/lib/lua/candy\Game.lua:496
Available devices:
__unnamed__ = {
   ["setEventCallback"] = "function: 0x19a30f50, C function";
   ["configuration"] = "device";
   ["INPUT_EVENT"] = 0;
   ["suspendEvents"] = "function: 0x19a31290, C function";
   ["discardEvents"] = "function: 0x19a31018, C function";
   ["__newindex"] = {}; -- __unnamed__ (self reference)
   ["__index"] = {}; -- __unnamed__ (self reference)
   ["extend"] = "function: 0x19a31330, C function";
   ["getClassName"] = "function: 0x19a30de8, C function";
   ["setRecorder"] = "function: 0x19a30fa8, C function";
   ["playback"] = "function: 0x19a31068, C function";
   ["deferEvents"] = "function: 0x19a30e98, C function";
   ["autoTimestamp"] = "function: 0x19a30f00, C function";
   ["FINISHED_UPDATE"] = 1;
   ["setAutosuspend"] = "function: 0x19a310b8, C function";
   ["getTypeID"] = "function: 0x19a30e48, C function";
};
__unnamed__["__newindex"] = __unnamed__;
__unnamed__["__index"] = __unnamed__;

[ERROR:candy]   no input device found:  device
[ERROR:candy]   @D:\OneDrive\Documents\CandyEditor/lib/lua/candy\input\InputDevice.lua:186
[ERROR:candy]   @D:\OneDrive\Documents\CandyEditor/lib/lua/candy\input\InputDevice.lua:265
[STAT :candy]   using input configuration:  device
[ERROR:candy]   no input device found:  device
[ERROR:candy]   @D:\OneDrive\Documents\CandyEditor/lib/lua/candy\input\InputDevice.lua:186
[ERROR:candy]   @D:\OneDrive\Documents\CandyEditor/lib/lua/candy\input\InputDevice.lua:632
[ERROR:candy]   no input device found:  device
[ERROR:candy]   @D:\OneDrive\Documents\CandyEditor/lib/lua/candy\input\InputDevice.lua:186
[ERROR:candy]   @D:\OneDrive\Documents\CandyEditor/lib/lua/candy\input\InputDevice.lua:385
[ERROR:candy]   no input device found:  device
[ERROR:candy]   @D:\OneDrive\Documents\CandyEditor/lib/lua/candy\input\InputDevice.lua:186
[ERROR:candy]   @D:\OneDrive\Documents\CandyEditor/lib/lua/candy\input\InputDevice.lua:396
[ERROR:candy]   no input device found:  device
[ERROR:candy]   @D:\OneDrive\Documents\CandyEditor/lib/lua/candy\input\InputDevice.lua:186
[ERROR:candy]   @D:\OneDrive\Documents\CandyEditor/lib/lua/candy\input\InputDevice.lua:406
[ERROR:candy]   no input device found:  device
[ERROR:candy]   @D:\OneDrive\Documents\CandyEditor/lib/lua/candy\input\InputDevice.lua:186
[ERROR:candy]   @D:\OneDrive\Documents\CandyEditor/lib/lua/candy\input\InputDevice.lua:406
[ERROR:candy]   no input device found:  device
[ERROR:candy]   @D:\OneDrive\Documents\CandyEditor/lib/lua/candy\input\InputDevice.lua:186
[ERROR:candy]   @D:\OneDrive\Documents\CandyEditor/lib/lua/candy\input\InputDevice.lua:406
[ERROR:candy]   no input device found:  device
[ERROR:candy]   @D:\OneDrive\Documents\CandyEditor/lib/lua/candy\input\InputDevice.lua:186
[ERROR:candy]   @D:\OneDrive\Documents\CandyEditor/lib/lua/candy\input\InputDevice.lua:428
[ERROR:candy]   no input device found:  device
[ERROR:candy]   @D:\OneDrive\Documents\CandyEditor/lib/lua/candy\input\InputDevice.lua:186
[ERROR:candy]   @D:\OneDrive\Documents\CandyEditor/lib/lua/candy\input\InputDevice.lua:759
[ERROR:candy]   no input device found:  device
[ERROR:candy]   @D:\OneDrive\Documents\CandyEditor/lib/lua/candy\input\InputDevice.lua:186
[ERROR:candy]   @D:\OneDrive\Documents\CandyEditor/lib/lua/candy\input\InputDevice.lua:776
[ERROR:candy]   no input device found:  device
[ERROR:candy]   @D:\OneDrive\Documents\CandyEditor/lib/lua/candy\input\InputDevice.lua:186
[ERROR:candy]   @D:\OneDrive\Documents\CandyEditor/lib/lua/candy\input\InputDevice.lua:804
[STAT :candy]   init audio
[STAT :candy]   init input
[STAT :candy]   ...loading asset library
[STAT :candy]   loading library from    env/config/asset_table.json
[LOG  :candy]      0.000 /   0.000 -> Time elapsed <load_asset_library>
[LOG  :candy]      0.000 /   0.000 -> Time elapsed <load_asset_library>
[LOG  :candy]   asset registered    0
[STAT :candy]   initializing texture library
load CandyRuntime ok!
[STATUS]    loading module:asset_editor
[STATUS]    loading module:scene_tool_manager
[STATUS]    loading module:game_view
[MOAIRuntime] createRenderContext game
[STAT :candy]   register render context:    game    <EditorRenderContext:0x00000000>:game
[STAT :candy]   init editor render context
[STAT :candy]   init texture ouput render target    0   0
[STAT :candy]   init frameBuffer    0   0   <TextureRenderTarget:0x00000000>:editorTRT (0,0,0,0)
[STATUS]    add input device: device
[STATUS]    loading module:sceneoutliner_editor
[ERROR] icon not found: entity_vis
[ERROR] icon not found: entity_lock
[ERROR] icon not found: settings
[ERROR] icon not found: add_folder
[ERROR] icon not found: refresh
[STATUS]    loading module:layer_manager
[ERROR] icon not found: add
[ERROR] icon not found: remove
[ERROR] icon not found: arrow-up
[ERROR] icon not found: arrow-down
[STATUS]    loading module:detail_panel
[STATUS]    loading module:asset_browser
[ERROR] icon not found: tag-2
[ERROR] icon not found: upper_folder
[ERROR] icon not found: history_forward
[ERROR] icon not found: history_backward
[ERROR] icon not found: list
[ERROR] icon not found: grid-2
[ERROR] icon not found: add_folder
[ERROR] icon not found: add
[STATUS]    loading module:texture_library
[STATUS]    loading module:scene_view
[MOAIRuntime] createRenderContext edit_canvas<1>
[STAT :candy]   register render context:    edit_canvas<1>  <EditorRenderContext:0x00000000>:edit_canvas<1>
[STAT :candy]   init editor render context
[STAT :candy]   init texture ouput render target    0   0
[STAT :candy]   init frameBuffer    0   0   <TextureRenderTarget:0x00000000>:editorTRT (0,0,0,0)
[ERROR] icon not found: tools/selection
[ERROR] icon not found: tools/translation
[ERROR] icon not found: tools/rotation
[ERROR] icon not found: tools/scale
[ERROR] icon not found: tools/align-bottom-edges
[ERROR] icon not found: tools/align-top-edges
[ERROR] icon not found: tools/align-vertical-centers
[ERROR] icon not found: tools/align-left-edges
[ERROR] icon not found: tools/align-right-edges
[ERROR] icon not found: tools/align-horizontal-centers
[ERROR] icon not found: tools/push-together-left
[ERROR] icon not found: tools/push-together-right
[ERROR] icon not found: tools/push-together-top
[ERROR] icon not found: tools/push-together-bottom
[ERROR] icon not found: gizmo-all
[ERROR] icon not found: magnet
[ERROR] icon not found: grid
[STATUS]    loading module:asset_previewer
[STATUS]    loading asset table from:D:\OneDrive\Documents\CandyEditor\ZGameProject/env/config/asset_table.json
[STATUS]    start all modules
[STATUS]    starting module:qt
[STATUS]    starting module:moai
[STATUS]    starting module:filewatcher
[STATUS]    start watching: D:\OneDrive\Documents\CandyEditor\ZGameProject\game\asset
[STATUS]    starting module:search_view
[STATUS]    starting module:scene_editor
[STAT :candy]   saving texture library  D:\OneDrive\Documents\CandyEditor\ZGameProject/env/config/texture_library.json
[STATUS]    starting module:candy
[STATUS]    starting module:asset_editor
[STATUS]    starting module:scene_tool_manager
[STATUS]    starting module:game_view
[STATUS]    starting module:sceneoutliner_editor
[STATUS]    starting module:layer_manager
[STATUS]    starting module:detail_panel
[STATUS]    starting module:asset_browser
[ERROR] icon not found: normal
[ERROR] icon not found: folder-tag
[STATUS]    starting module:texture_library
[STATUS]    starting module:scene_view
[STATUS]    starting module:asset_previewer
[STATUS]    scan project in:D:\OneDrive\Documents\CandyEditor\ZGameProject/game/asset
[STATUS]    saving texture library index
[STATUS]    modified assets imported
[STATUS]    asset table saved
[ERROR] icon not found: normal
[ERROR] icon not found: normal
[ERROR] icon not found: layer_default
[ERROR] icon not found: ok
[ERROR] icon not found: ok
shixiaoshan2000 commented 2 years ago

E:\can1\Candy-master>candy_editor_bin.py ide PYTHONPATH: D:\Program Files\Python38 PYTHONPATH: D:\Program Files\Python38

-- , ------------------------------------------------------ / \ / > ; ___ / __ / <_ / _ \,,,,,,,,,,,,/ ___ ___ ___ Candy development environment

[STATUS] start tool: ide <E:\can1\Candy-master\tools/ide> [STATUS] project loaded: E:\can1\Candy-master\shi [STATUS] registering asset manager: asset_manager.image [STATUS] registering asset manager: asset_manager.text [STATUS] registering asset manager: asset_manager.scene [STATUS] registering asset manager: asset_manager.prefab [STATUS] registering asset manager: asset_manager.texture_processor [STATUS] registering asset manager: asset_manager.texture [STATUS] registering asset manager: asset_manager.prebuilt_atlas [STATUS] registering asset manager: asset_manager.deck2d [STATUS] registering asset manager: asset_manager.font [STATUS] registering asset manager: asset_manager.stylesheet [STATUS] registering asset manager: asset_manager.data_json [STATUS] registering asset manager: asset_manager.named_tileset [STATUS] registering asset manager: asset_manager.animator_data [STATUS] scanning package in:E:\can1\Candy-master/packages [ERROR] failed reading package settings:EditorConsole [WARNING] no candy.json found in package folder: E:\can1\Candy-master/ packages/WelcomeScreen [WARNING] no candy.json found in package folder: E:\can1\Candy-master/ packages/pycache [STATUS] packages loaded! [STATUS] loading module:qt libpng warning: iCCP: known incorrect sRGB profile [STATUS] loading module:moai [STATUS] loading moai lua runtime [STATUS] loading project script lib [STATUS] change moai working path:E:\can1\Candy-master\shi/game [STATUS] loading candy lua module Could not connect to localhost:8172: connection refused connectPythonSignal: asset.modified <function wrapLuaCaller..caller at 0 x0000000006AC6CA0> connectPythonSignal: asset.register <function wrapLuaCaller..caller at 0 x0000000006AC6D30> connectPythonSignal: asset.unregister <function wrapLuaCaller..caller at 0x0000000006AC6DC0> [LOG :candy] Game:addLayer() main [STATUS] [MOAIRuntime] initContext() ok. [STATUS] change moai working path:E:\can1\Candy-master\shi [STATUS] init GL context Windows fatal exception: access violation

Thread 0x00001ba0 (most recent call first): File "D:\Program Files\Python38\lib\selectors.py", line 314 in _select File "D:\Program Files\Python38\lib\selectors.py", line 323 in select File "D:\Program Files\Python38\lib\socketserver.py", line 294 in handle_reque st File "E:\can1\Candy-master/lib\candy_editor\core\InstanceHelper.py", line 32 i n serve_forever File "D:\Program Files\Python38\lib\threading.py", line 870 in run File "D:\Program Files\Python38\lib\threading.py", line 932 in _bootstrap_inne r File "D:\Program Files\Python38\lib\threading.py", line 890 in _bootstrap

Current thread 0x0000234c (most recent call first): File "E:\can1\Candy-master/lib\candy_editor\moai\MOAIRuntime.py", line 141 in initGLContext File "E:\can1\Candy-master/lib\candy_editor\moai\MOAIRuntime.py", line 332 in onLoad File "E:\can1\Candy-master/lib\candy_editor\core\EditorModule.py", line 137 in load File "E:\can1\Candy-master/lib\candy_editor\core\EditorModule.py", line 249 in loadModule File "E:\can1\Candy-master/lib\candy_editor\core\EditorModule.py", line 267 in loadAllModules File "E:\can1\Candy-master/lib\candy_editor\core\EditorApp.py", line 96 in ini t File "E:\can1\Candy-master/lib\candy_editor\core\EditorApp.py", line 110 in ru n File "E:\can1\Candy-master\tools/ide/init.py", line 24 in run File "D:\Program Files\Python38\lib\site-packages\click\core.py", line 610 in invoke File "D:\Program Files\Python38\lib\site-packages\click\core.py", line 1066 in invoke File "D:\Program Files\Python38\lib\site-packages\click\core.py", line 782 in main File "D:\Program Files\Python38\lib\site-packages\click\core.py", line 829 in call File "E:\can1\Candy-master\tools/ide/init.py", line 28 in main File "E:\can1\Candy-master/lib\candy_editor\core\tool.py", line 100 in startTo ol File "E:\can1\Candy-master/lib\candy_editor\core\tool.py", line 189 in startup Tool File "E:\can1\Candy-master/lib\candy_editor__init__.py", line 6 in startup File "E:\can1\Candy-master\candy_editor_bin.py", line 88 in main File "E:\can1\Candy-master\candy_editor_bin.py", line 94 in ``

shixiaoshan2000 commented 2 years ago

File "E:\can1\Candy-master/lib\candy_editor\moai\MOAIRuntime.py", line 141 in getAKU().detectGfxContext() 就出错了,注释掉还可以跑跑 connectPythonSignal: asset.modified <function wrapLuaCaller..caller at 0 x0000000006AC6CA0> connectPythonSignal: asset.register <function wrapLuaCaller..caller at 0 x0000000006AC6D30> connectPythonSignal: asset.unregister <function wrapLuaCaller..caller at 0x0000000006AC6DC0 这三句我在[STATUS] init GL context 之前,你在之后

shixiaoshan2000 commented 2 years ago

localhost:8172 是不失要打开

lihaochen910 commented 2 years ago
Could not connect to localhost:8172: connection refused

这个是调试lua用的, 连接不上不影响后续执行

shixiaoshan2000 commented 2 years ago

全跟 initGLContext 有关

lihaochen910 commented 2 years ago

我的AKU是用Debug配置编译的, 编译出来的pyd有11M, 我看你编译的这个才9M, 是不是用的Release配置?

shixiaoshan2000 commented 2 years ago

是的

shixiaoshan2000 commented 2 years ago

moai.lib 用debug

lihaochen910 commented 2 years ago

试试用Debug配置编译, 如果是AKUDetectGfxContext那里出的问题, 就先用moai.exe跑一下Moai Sample中的示例代码看看能否正常工作. 最后不行就断点调试pyd

shixiaoshan2000 commented 2 years ago

好,谢谢

shixiaoshan2000 commented 2 years ago

moai.lib(MDLLoader.obj) : error LNK2001: 无法解析的外部符号 impCrtDbgReport moai.lib(DShowAudioSource.obj) : error LNK2001: 无法解析的外部符号 impCrtDbg Report moai.lib(RtAudio.obj) : error LNK2001: 无法解析的外部符号 impCrtDbgReport moai.lib(DefaultIOStream.obj) : error LNK2001: 无法解析的外部符号 impCrtDbgR eport moai.lib(ProcessHelper.obj) : error LNK2001: 无法解析的外部符号 impCrtDbgRep ort moai.lib(pch.obj) : error LNK2001: 无法解析的外部符号 impCrtDbgReport moai.lib(AudioMixer.obj) : error LNK2001: 无法解析的外部符号 impCrtDbgReport

moai.lib(UserAudioSource.obj) : error LNK2001: 无法解析的外部符号 impCrtDbgR eport moai.lib(MemoryAudioSource.obj) : error LNK2001: 无法解析的外部符号 impCrtDb gReport moai.lib(ValidateDataStructure.obj) : error LNK2001: 无法解析的外部符号 impC rtDbgReport moai.lib(ImporterRegistry.obj) : error LNK2001: 无法解析的外部符号 impCrtDbg Report moai.lib(PostStepRegistry.obj) : error LNK2001: 无法解析的外部符号 impCrtDbg Report moai.lib(b2ContactManager.obj) : error LNK2001: 无法解析的外部符号 impCrtDbg Report moai.lib(BaseImporter.obj) : error LNK2001: 无法解析的外部符号 impCrtDbgRepo rt moai.lib(BaseProcess.obj) : error LNK2001: 无法解析的外部符号 impCrtDbgRepor t moai.lib(DefaultLogger.obj) : error LNK2001: 无法解析的外部符号 impCrtDbgRep ort moai.lib(DefaultIOSystem.obj) : error LNK2001: 无法解析的外部符号 impCrtDbgR eport moai.lib(ZLCgt.obj) : error LNK2001: 无法解析的外部符号 impCrtDbgReport moai.lib(ZLParser.obj) : error LNK2001: 无法解析的外部符号 impCrtDbgReport moai.lib(ZLSyntaxNode.obj) : error LNK2001: 无法解析的外部符号 impCrtDbgRepo rt moai.lib(ZLXmlReader.obj) : error LNK2001: 无法解析的外部符号 impCrtDbgRepor t moai.lib(MOAIAssimpSceneMember.obj) : error LNK2001: 无法解析的外部符号 impC rtDbgReport moai.lib(MOAIHttpTaskBase.obj) : error LNK2001: 无法解析的外部符号 impCrtDbg Report moai.lib(UntzSound.obj) : error LNK2001: 无法解析的外部符号 impCrtDbgReport moai.lib(UntzSystem.obj) : error LNK2001: 无法解析的外部符号 impCrtDbgReport

moai.lib(MOAIXmlParser.obj) : error LNK2001: 无法解析的外部符号 impCrtDbgRep ort moai.lib(Importer.obj) : error LNK2001: 无法解析的外部符号 impCrtDbgReport moai.lib(MaterialSystem.obj) : error LNK2001: 无法解析的外部符号 impCrtDbgRe port moai.lib(scene.obj) : error LNK2001: 无法解析的外部符号 impCrtDbgReport moai.lib(MOAIFileSystem.obj) : error LNK2001: 无法解析的外部符号 impCrtDbgRe port moai.lib(MOAIHashWriter.obj) : error LNK2001: 无法解析的外部符号 impCrtDbgRe port moai.lib(MOAIJsonParser.obj) : error LNK2001: 无法解析的外部符号 impCrtDbgRe port moai.lib(MOAIParser.obj) : error LNK2001: 无法解析的外部符号 impCrtDbgReport

moai.lib(MOAIDialogSDL.obj) : error LNK2001: 无法解析的外部符号 impCrtDbgRep ort moai.lib(MOAIUntzSampleBuffer.obj) : error LNK2001: 无法解析的外部符号 impCr tDbgReport moai.lib(MOAIUntzSound.obj) : error LNK2001: 无法解析的外部符号 impCrtDbgRep ort moai.lib(MOAIUntzSystem.obj) : error LNK2001: 无法解析的外部符号 impCrtDbgRe port moai.lib(MOAIImageFormatPng.obj) : error LNK2001: 无法解析的外部符号 impCrtD bgReport moai.lib(MOAIImageFormatPvr.obj) : error LNK2001: 无法解析的外部符号 impCrtD bgReport moai.lib(MOAIImageFormatTga.obj) : error LNK2001: 无法解析的外部符号 impCrtD bgReport moai.lib(MOAIImageFormatWebP.obj) : error LNK2001: 无法解析的外部符号 impCrt DbgReport moai.lib(MOAIHttpTaskCurl.obj) : error LNK2001: 无法解析的外部符号 impCrtDbg Report moai.lib(MOAIUrlMgrCurl.obj) : error LNK2001: 无法解析的外部符号 impCrtDbgRe port moai.lib(pch.obj) : error LNK2001: 无法解析的外部符号 impCrtDbgReport moai.lib(MOAIImageFormatJpg.obj) : error LNK2001: 无法解析的外部符号 impCrtD bgReport moai.lib(MOAIAssimpScene.obj) : error LNK2001: 无法解析的外部符号 impCrtDbgR eport moai.lib(pch.obj) : error LNK2001: 无法解析的外部符号 impCrtDbgReport moai.lib(pch.obj) : error LNK2001: 无法解析的外部符号 impCrtDbgReport moai.lib(MOAIHashWriterCrypto.obj) : error LNK2001: 无法解析的外部符号 impCr tDbgReport moai.lib(ZLVfsVirtualPath.obj) : error LNK2001: 无法解析的外部符号 impCrtDbg Report moai.lib(ZLVfsFile.obj) : error LNK2001: 无法解析的外部符号 impCrtDbgReport moai.lib(ZLVfsFileSystem.obj) : error LNK2001: 无法解析的外部符号 impCrtDbgR eport moai.lib(ZLDirectoryItr.obj) : error LNK2001: 无法解析的外部符号 impCrtDbgRe port moai.lib(host.obj) : error LNK2001: 无法解析的外部符号 impCrtDbgReport moai.lib(zl_vfscanf.obj) : error LNK2001: 无法解析的外部符号 impCrtDbgReport

moai.lib(ZLVfsDirectoryItr.obj) : error LNK2001: 无法解析的外部符号 impCrtDb gReport moai.lib(ZLVfsZipArchive.obj) : error LNK2001: 无法解析的外部符号 impCrtDbgR eport moai.lib(host.obj) : error LNK2001: 无法解析的外部符号 impCrtDbgReport moai.lib(host.obj) : error LNK2001: 无法解析的外部符号 impCrtDbgReport moai.lib(host.obj) : error LNK2001: 无法解析的外部符号 impCrtDbgReport moai.lib(host.obj) : error LNK2001: 无法解析的外部符号 impCrtDbgReport moai.lib(host.obj) : error LNK2001: 无法解析的外部符号 impCrtDbgReport moai.lib(host.obj) : error LNK2001: 无法解析的外部符号 impCrtDbgReport moai.lib(host.obj) : error LNK2001: 无法解析的外部符号 impCrtDbgReport moai.lib(host.obj) : error LNK2001: 无法解析的外部符号 impCrtDbgReport moai.lib(ZLGfxDevice.obj) : error LNK2001: 无法解析的外部符号 impCrtDbgRepor t moai.lib(tinyxml.obj) : error LNK2001: 无法解析的外部符号 impCrtDbgReport moai.lib(tinyxmlparser.obj) : error LNK2001: 无法解析的外部符号 impCrtDbgRep ort moai.lib(ZLHashedString.obj) : error LNK2001: 无法解析的外部符号 impCrtDbgRe port moai.lib(ZLFileStream.obj) : error LNK2001: 无法解析的外部符号 impCrtDbgRepo rt moai.lib(ZLAdapterInfo_win32.obj) : error LNK2001: 无法解析的外部符号 impCrt DbgReport moai.lib(ZLUnique_win32.obj) : error LNK2001: 无法解析的外部符号 impCrtDbgRe port moai.lib(ZLBitBuffer.obj) : error LNK2001: 无法解析的外部符号 impCrtDbgRepor t moai.lib(headers.obj) : error LNK2001: 无法解析的外部符号 impCrtDbgReport moai.lib(ZLFileSys.obj) : error LNK2001: 无法解析的外部符号 impCrtDbgReport moai.lib(STLString.obj) : error LNK2001: 无法解析的外部符号 impCrtDbgReport moai.lib(ZLStream.obj) : error LNK2001: 无法解析的外部符号 impCrtDbgReport moai-lib-util.lib(MOAIDataBuffer.obj) : error LNK2001: 无法解析的外部符号 imp_ _CrtDbgReport moai-lib-util.lib(MOAIDataIOTask.obj) : error LNK2001: 无法解析的外部符号 imp_ _CrtDbgReport moai-lib-util.lib(pch.obj) : error LNK2001: 无法解析的外部符号 impCrtDbgRepo rt moai.lib(ZLContext.obj) : error LNK2001: 无法解析的外部符号 impCrtDbgReport moai-lib-sim.lib(MOAIGfxBuffer.obj) : error LNK2001: 无法解析的外部符号 impC rtDbgReport moai-lib-sim.lib(MOAIDynamicGlyphCachePage.obj) : error LNK2001: 无法解析的外部 符号 impCrtDbgReport moai-lib-sim.lib(MOAIFont_bmfont.obj) : error LNK2001: 无法解析的外部符号 imp_ _CrtDbgReport moai-lib-sim.lib(MOAITextStyleCache.obj) : error LNK2001: 无法解析的外部符号 i mpCrtDbgReport moai-lib-sim.lib(MOAIGlyphSet.obj) : error LNK2001: 无法解析的外部符号 impCr tDbgReport moai-lib-sim.lib(MOAIImageLoadTask.obj) : error LNK2001: 无法解析的外部符号 im pCrtDbgReport moai-lib-sim.lib(MOAIShaderUniform.obj) : error LNK2001: 无法解析的外部符号 im pCrtDbgReport moai-lib-sim.lib(MOAITextureBase.obj) : error LNK2001: 无法解析的外部符号 imp_ _CrtDbgReport moai-lib-sim.lib(MOAIFont.obj) : error LNK2001: 无法解析的外部符号 impCrtDbg Report moai-lib-sim.lib(MOAITextLabel.obj) : error LNK2001: 无法解析的外部符号 impC rtDbgReport moai-lib-sim.lib(pch.obj) : error LNK2001: 无法解析的外部符号 impCrtDbgRepor t moai-lib-sim.lib(MOAISensor.obj) : error LNK2001: 无法解析的外部符号 impCrtD bgReport moai-lib-sim.lib(MOAITexture.obj) : error LNK2001: 无法解析的外部符号 impCrt DbgReport moai-lib-sim.lib(MOAITouchSensor.obj) : error LNK2001: 无法解析的外部符号 imp_ CrtDbgReport moai-lib-sim.lib(MOAIVectorTesselator.obj) : error LNK2001: 无法解析的外部符号 _impCrtDbgReport moai-lib-sim.lib(MOAIBitmapFontReader.obj) : error LNK2001: 无法解析的外部符号 _ impCrtDbgReport moai-lib-sim.lib(MOAIInputDevice.obj) : error LNK2001: 无法解析的外部符号 imp CrtDbgReport moai-lib-sim.lib(MOAIInputMgr.obj) : error LNK2001: 无法解析的外部符号 impCr tDbgReport moai-lib-sim.lib(MOAIParticleScript.obj) : error LNK2001: 无法解析的外部符号 i mpCrtDbgReport moai-lib-sim.lib(MOAIParticlePexPlugin.obj) : error LNK2001: 无法解析的外部符号 impCrtDbgReport moai-lib-sim.lib(MOAIGrid.obj) : error LNK2001: 无法解析的外部符号 impCrtDbg Report moai-lib-sim.lib(MOAIGeometryWriter.obj) : error LNK2001: 无法解析的外部符号 i mpCrtDbgReport moai-lib-sim.lib(MOAIGfxPipelineClerk.obj) : error LNK2001: 无法解析的外部符号 impCrtDbgReport moai-lib-sim.lib(MOAIImageFormatMgr.obj) : error LNK2001: 无法解析的外部符号 i mpCrtDbgReport moai-lib-sim.lib(MOAICoroutine.obj) : error LNK2001: 无法解析的外部符号 impC rtDbgReport moai-lib-sim.lib(MOAIDebugLines.obj) : error LNK2001: 无法解析的外部符号 imp CrtDbgReport moai-lib-sim.lib(MOAIDraw.obj) : error LNK2001: 无法解析的外部符号 impCrtDbg Report moai-lib-sim.lib(MOAIShaderProgram.obj) : error LNK2001: 无法解析的外部符号 im pCrtDbgReport moai-lib-core.lib(pch.obj) : error LNK2001: 无法解析的外部符号 impCrtDbgRepo rt moai-lib-core.lib(MOAISerializerBase.obj) : error LNK2001: 无法解析的外部符号 impCrtDbgReport moai-lib-sim.lib(MOAIAction.obj) : error LNK2001: 无法解析的外部符号 impCrtD bgReport moai-lib-sim.lib(MOAICameraFitter2D.obj) : error LNK2001: 无法解析的外部符号 i mpCrtDbgReport moai-lib-core.lib(MOAIEnvironment.obj) : error LNK2001: 无法解析的外部符号 imp CrtDbgReport moai.zip moai-lib-core.lib(MOAITestMgr.obj) : error LNK2001: 无法解析的外部符号 impCr tDbgReport moai-lib-core.lib(MOAITrace.obj) : error LNK2001: 无法解析的外部符号 impCrtD bgReport moai-lib-core.lib(MOAIVersion.obj) : error LNK2001: 无法解析的外部符号 impCr tDbgReport moai-lib-core.lib(MOAILogMgr.obj) : error LNK2001: 无法解析的外部符号 impCrt DbgReport moai-lib-core.lib(MOAICanary.obj) : error LNK2001: 无法解析的外部符号 impCrt DbgReport moai-lib-core.lib(MOAIDeserializer.obj) : error LNK2001: 无法解析的外部符号 im pCrtDbgReport moai-lib-core.lib(MOAISerializer.obj) : error LNK2001: 无法解析的外部符号 imp _CrtDbgReport moai-lib-core.lib(host.obj) : error LNK2001: 无法解析的外部符号 impCrtDbgRep ort moai-lib-core.lib(MOAILuaState.obj) : error LNK2001: 无法解析的外部符号 impC rtDbgReport moai-lib-core.lib(MOAILuaObject.obj) : error LNK2001: 无法解析的外部符号 imp CrtDbgReport moai-lib-core.lib(MOAILuaRuntime.obj) : error LNK2001: 无法解析的外部符号 imp_ _CrtDbgReport moai.lib(LWOLoader.obj) : error LNK2001: 无法解析的外部符号 impcalloc_dbg moai.lib(MMDImporter.obj) : error LNK2001: 无法解析的外部符号 impcalloc_dbg moai.lib(MOAIUntzSampleBuffer.obj) : error LNK2001: 无法解析的外部符号 impca lloc_dbg moai.lib(MOAIUntzSound.obj) : error LNK2001: 无法解析的外部符号 impcalloc_db g moai.lib(MOAIUntzSystem.obj) : error LNK2001: 无法解析的外部符号 impcalloc_d bg moai.lib(pch.obj) : error LNK2001: 无法解析的外部符号 impcalloc_dbg moai.lib(MOAIImageFormatPvr.obj) : error LNK2001: 无法解析的外部符号 impcall oc_dbg moai.lib(MOAIImageFormatTga.obj) : error LNK2001: 无法解析的外部符号 impcall oc_dbg moai.lib(MOAIImageFormatWebP.obj) : error LNK2001: 无法解析的外部符号 impcal loc_dbg moai.lib(MOAIDialogSDL.obj) : error LNK2001: 无法解析的外部符号 impcalloc_db g moai.lib(MOAIHashWriterCrypto.obj) : error LNK2001: 无法解析的外部符号 impca lloc_dbg moai.lib(pch.obj) : error LNK2001: 无法解析的外部符号 impcalloc_dbg moai.lib(MOAIImageFormatJpg.obj) : error LNK2001: 无法解析的外部符号 impcall oc_dbg moai.lib(MOAIImageFormatPng.obj) : error LNK2001: 无法解析的外部符号 impcall oc_dbg moai.lib(host.obj) : error LNK2001: 无法解析的外部符号 impcalloc_dbg moai.lib(pch.obj) : error LNK2001: 无法解析的外部符号 impcalloc_dbg moai.lib(pch.obj) : error LNK2001: 无法解析的外部符号 impcalloc_dbg moai.lib(pch.obj) : error LNK2001: 无法解析的外部符号 impcalloc_dbg moai.lib(host.obj) : error LNK2001: 无法解析的外部符号 impcalloc_dbg moai.lib(host.obj) : error LNK2001: 无法解析的外部符号 impcalloc_dbg moai.lib(host.obj) : error LNK2001: 无法解析的外部符号 impcalloc_dbg moai.lib(host.obj) : error LNK2001: 无法解析的外部符号 impcalloc_dbg moai.lib(host.obj) : error LNK2001: 无法解析的外部符号 impcalloc_dbg moai.lib(host.obj) : error LNK2001: 无法解析的外部符号 impcalloc_dbg moai.lib(host.obj) : error LNK2001: 无法解析的外部符号 impcalloc_dbg moai.lib(host.obj) : error LNK2001: 无法解析的外部符号 impcalloc_dbg moai-lib-core.lib(pch.obj) : error LNK2001: 无法解析的外部符号 imp__calloc_dbg

moai-lib-sim.lib(pch.obj) : error LNK2001: 无法解析的外部符号 impcalloc_dbg moai-lib-util.lib(pch.obj) : error LNK2001: 无法解析的外部符号 impcalloc_dbg

moai.lib(headers.obj) : error LNK2001: 无法解析的外部符号 impcalloc_dbg moai.lib(ZLThreadLocalPtr_windows.obj) : error LNK2001: 无法解析的外部符号 imp free_dbg moai.lib(ZLVfsZipStream.obj) : error LNK2001: 无法解析的外部符号 impfree_dbg

msvcprtd.lib(locale0_implib.obj) : error LNK2001: 无法解析的外部符号 impfree _dbg moai.lib(headers.obj) : error LNK2001: 无法解析的外部符号 impfree_dbg moai.lib(assert.obj) : error LNK2001: 无法解析的外部符号 impfree_dbg moai.lib(zl_util.obj) : error LNK2001: 无法解析的外部符号 impfree_dbg moai.lib(ZLVfsZipArchive.obj) : error LNK2001: 无法解析的外部符号 impfree_db g msvcprtd.lib(locale0_implib.obj) : error LNK2001: 无法解析的外部符号 impmall oc_dbg moai.lib(headers.obj) : error LNK2001: 无法解析的外部符号 impmalloc_dbg moai.lib(zl_util.obj) : error LNK2001: 无法解析的外部符号 impmalloc_dbg moai.lib(ZLThreadLocalPtr_windows.obj) : error LNK2001: 无法解析的外部符号 imp malloc_dbg moai.lib(ZLVfsZipStream.obj) : error LNK2001: 无法解析的外部符号 impmalloc_d bg moai.lib(headers.obj) : error LNK2001: 无法解析的外部符号 imprealloc_dbg moai.lib(zl_util.obj) : error LNK2001: 无法解析的外部符号 imprealloc_dbg moai.lib(ZLVfsZipArchive.obj) : error LNK2001: 无法解析的外部符号 imprealloc dbg moai.lib(ZLVfsFileSystem.obj) : error LNK2001: 无法解析的外部符号 impgetcwd dbg moai.lib(lfs.obj) : error LNK2001: 无法解析的外部符号 impgetcwd_dbg moai.lib(PVRTDecompress.obj) : error LNK2001: 无法解析的外部符号 impCrtDbgRe portW E:\can1\Candy-master\lib\candy_editor\AKU\dev\AKU.cp38-win_amd64.pyd : fatal err or LNK1120: 8 个无法解析的外部命令 error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Communit y\VC\Tools\MSVC\14.29.30037\bin\HostX86\x64\link.exe' failed with exit s tatus 1120

debug aku.pyd无法生成, moai.exe 无问

shixiaoshan2000 commented 2 years ago

moai.zip

shixiaoshan2000 commented 2 years ago

debug aku.pyd 生成,要用msvcrtd.lib,但candy还是起动不了,同样的错误

shixiaoshan2000 commented 2 years ago

AKU.zip

lihaochen910 commented 2 years ago

我这边用你给的这个能启动

C:\Python38\python.exe D:/OneDrive/Documents/CandyEditor/candy_editor_bin.py ide
PYTHONPATH: D:\OneDrive\Documents\CandyEditor;D:\OneDrive\Documents\CandyEditor\lib;C:\Users\Kanbaru\AppData\Local\JetBrains\Toolbox\apps\PyCharm-P\ch-1\203.7717.81\plugins\python\helpers\pycharm_matplotlib_backend;C:\Users\Kanbaru\AppData\Local\JetBrains\Toolbox\apps\PyCharm-P\ch-1\203.7717.81\plugins\python\helpers\pycharm_display
PYTHONPATH: D:\OneDrive\Documents\CandyEditor;D:\OneDrive\Documents\CandyEditor\lib;C:\Users\Kanbaru\AppData\Local\JetBrains\Toolbox\apps\PyCharm-P\ch-1\203.7717.81\plugins\python\helpers\pycharm_matplotlib_backend;C:\Users\Kanbaru\AppData\Local\JetBrains\Toolbox\apps\PyCharm-P\ch-1\203.7717.81\plugins\python\helpers\pycharm_display

 --     ,_______    ------------------------------------------------------ 
       /        \       _______  ___   ___                               
      /        |  >    |       ||   | |   |                              
      |          ;     |    ___||   | |   |                                
     /           |     |   | __ |   | |   |                                
    / <_         |     |   ||  ||   | |   |                                
   /             |     |   |_| ||   | |   |                               
   \,,,,,,,,,,,,/      |_______||___| |___|   Candy development environment 
 --      |   |      ------------------------------------------------------

[STATUS]    start tool: ide <D:\OneDrive\Documents\CandyEditor\tools/ide>
[STATUS]    project loaded: D:\OneDrive\Documents\CandyEditor\ZGameProject
[STATUS]    registering asset manager: asset_manager.image
[STATUS]    registering asset manager: asset_manager.text
[STATUS]    registering asset manager: asset_manager.scene
[STATUS]    registering asset manager: asset_manager.prefab
[STATUS]    registering asset manager: asset_manager.texture_processor
[STATUS]    registering asset manager: asset_manager.texture
[STATUS]    registering asset manager: asset_manager.prebuilt_atlas
[STATUS]    registering asset manager: asset_manager.deck2d
[STATUS]    registering asset manager: asset_manager.font
[STATUS]    registering asset manager: asset_manager.stylesheet
[STATUS]    registering asset manager: asset_manager.data_json
[STATUS]    registering asset manager: asset_manager.named_tileset
[STATUS]    registering asset manager: asset_manager.animator_data
[STATUS]    scanning package in:D:\OneDrive\Documents\CandyEditor/packages
[ERROR] failed reading package settings:EditorConsole
[WARNING]   no __candy__.json found in package folder: D:\OneDrive\Documents\CandyEditor/packages/WelcomeScreen
[WARNING]   no __candy__.json found in package folder: D:\OneDrive\Documents\CandyEditor/packages/__pycache__
[STATUS]    packages loaded!
[STATUS]    loading module:qt
Windows fatal exception: code 0xc0000139

Thread 0x00001408 (most recent call first):
  File "C:\Python38\lib\selectors.py", line 314 in _select
  File "C:\Python38\lib\selectors.py", line 323 in select
  File "C:\Python38\lib\socketserver.py", line 294 in handle_request
  File "D:\OneDrive\Documents\CandyEditor/lib\candy_editor\core\InstanceHelper.py", line 32 in serve_forever
  File "C:\Python38\lib\threading.py", line 870 in run
  File "C:\Python38\lib\threading.py", line 932 in _bootstrap_inner
  File "C:\Python38\lib\threading.py", line 890 in _bootstrap

Thread 0x00003fac (most recent call first):
  File "D:\OneDrive\Documents\CandyEditor/lib\candy_editor\qt\QtSupport.py", line 124 in onLoad
  File "D:\OneDrive\Documents\CandyEditor/lib\candy_editor\core\EditorModule.py", line 137 in load
  File "D:\OneDrive\Documents\CandyEditor/lib\candy_editor\core\EditorModule.py", line 249 in loadModule
  File "D:\OneDrive\Documents\CandyEditor/lib\candy_editor\core\EditorModule.py", line 267 in loadAllModules
  File "D:\OneDrive\Documents\CandyEditor/lib\candy_editor\core\EditorApp.py", line 96 in init
  File "D:\OneDrive\Documents\CandyEditor/lib\candy_editor\core\EditorApp.py", line 110 in run
  File "D:\OneDrive\Documents\CandyEditor\tools/ide/__init__.py", line 24 in run
  File "C:\Python38\lib\site-packages\click\core.py", line 610 in invoke
  File "C:\Python38\lib\site-packages\click\core.py", line 1066 in invoke
  File "C:\Python38\lib\site-packages\click\core.py", line 782 in main
  File "C:\Python38\lib\site-packages\click\core.py", line 829 in __call__
  File "D:\OneDrive\Documents\CandyEditor\tools/ide/__init__.py", line 28 in main
  File "D:\OneDrive\Documents\CandyEditor/lib\candy_editor\core\tool.py", line 100 in startTool
  File "D:\OneDrive\Documents\CandyEditor/lib\candy_editor\core\tool.py", line 189 in startupTool
  File "D:\OneDrive\Documents\CandyEditor/lib\candy_editor\__init__.py", line 6 in startup
  File "D:/OneDrive/Documents/CandyEditor/candy_editor_bin.py", line 88 in main
  File "D:/OneDrive/Documents/CandyEditor/candy_editor_bin.py", line 94 in <module>
[STATUS]    loading module:moai
[STATUS]    loading moai lua runtime
[STATUS]    loading project script lib
[STATUS]    change moai working path:D:\OneDrive\Documents\CandyEditor\ZGameProject/game
[STATUS]    loading candy lua module
Could not connect to localhost:8172: timeout
WARNING: font file assets/fonts/VL-PGothic.ttf does not exist
FT_Stream_Open: could not open `D:/OneDrive/Documents/CandyEditor/ZGameProject/game/assets/fonts/VL-PGothic.ttf'
FONT_ERROR loading font: D:/OneDrive/Documents/CandyEditor/ZGameProject/game/assets/fonts/VL-PGothic.ttf
ERROR: unable to open font file D:/OneDrive/Documents/CandyEditor/ZGameProject/game/assets/fonts/VL-PGothic.ttf for reading glyphs.
connectPythonSignal: asset.modified <function wrapLuaCaller.<locals>.caller at 0x00000141D0666AF0>
connectPythonSignal: asset.register <function wrapLuaCaller.<locals>.caller at 0x00000141D0666B80>
connectPythonSignal: asset.unregister <function wrapLuaCaller.<locals>.caller at 0x00000141D0666C10>
[STATUS]    [MOAIRuntime] initContext() ok.
[STATUS]    change moai working path:D:\OneDrive\Documents\CandyEditor\ZGameProject
[STATUS]    init GL context
[LOG  :candy]   Game:addLayer() main
[STATUS]    loading module:filewatcher
[STATUS]    loading module:search_view
[CandyRuntime] candy.init
[STAT :candy]   loading game config from :  D:\OneDrive\Documents\CandyEditor\ZGameProject/env/config/game_config.json
[STAT :candy]   
[LOG  :candy]   Init Graphics Resolution    0   0
[STAT :candy]   setting up window callbacks
[LOG  :candy]   init RenderManager!!    GL  3   1
[STAT :candy]   resize context content  <GameRenderContext:0x00000000>:false    1920    1080
[STAT :candy]   resize context  <GameRenderContext:0x00000000>:false    1920    1080
[STAT :candy]   register render context:    game    <GameRenderContext:0x00000000>:false
[STAT :candy]   init game render context
[STAT :candy]   init device output render target
[STAT :candy]   system graphics context ready!
[STAT :candy]   ...setting up layers
[LOG  :candy]   Game:addLayer() CANDY_EDITOR_LAYER
[STAT :candy]   init input handlers
[ERROR:candy]   no input device:    device
[ERROR:candy]   @D:\OneDrive\Documents\CandyEditor/lib/lua/candy\input\InputDevice.lua:836
[ERROR:candy]   @D:\OneDrive\Documents\CandyEditor/lib/lua/candy\Game.lua:496
Available devices:
__unnamed__ = {
   ["setEventCallback"] = "function: 0x1d7c0f60, C function";
   ["configuration"] = "device";
   ["INPUT_EVENT"] = 0;
   ["suspendEvents"] = "function: 0x1d7c12a0, C function";
   ["discardEvents"] = "function: 0x1d7c1028, C function";
   ["__newindex"] = {}; -- __unnamed__ (self reference)
   ["__index"] = {}; -- __unnamed__ (self reference)
   ["extend"] = "function: 0x1d7c1340, C function";
   ["getClassName"] = "function: 0x1d7c0df8, C function";
   ["setRecorder"] = "function: 0x1d7c0fb8, C function";
   ["playback"] = "function: 0x1d7c1078, C function";
   ["deferEvents"] = "function: 0x1d7c0ea8, C function";
   ["autoTimestamp"] = "function: 0x1d7c0f10, C function";
   ["FINISHED_UPDATE"] = 1;
   ["setAutosuspend"] = "function: 0x1d7c10c8, C function";
   ["getTypeID"] = "function: 0x1d7c0e58, C function";
};
__unnamed__["__newindex"] = __unnamed__;
__unnamed__["__index"] = __unnamed__;

[ERROR:candy]   no input device found:  device
[ERROR:candy]   @D:\OneDrive\Documents\CandyEditor/lib/lua/candy\input\InputDevice.lua:186
[ERROR:candy]   @D:\OneDrive\Documents\CandyEditor/lib/lua/candy\input\InputDevice.lua:265
[STAT :candy]   using input configuration:  device
[ERROR:candy]   no input device found:  device
[ERROR:candy]   @D:\OneDrive\Documents\CandyEditor/lib/lua/candy\input\InputDevice.lua:186
[ERROR:candy]   @D:\OneDrive\Documents\CandyEditor/lib/lua/candy\input\InputDevice.lua:632
[ERROR:candy]   no input device found:  device
[ERROR:candy]   @D:\OneDrive\Documents\CandyEditor/lib/lua/candy\input\InputDevice.lua:186
[ERROR:candy]   @D:\OneDrive\Documents\CandyEditor/lib/lua/candy\input\InputDevice.lua:385
[ERROR:candy]   no input device found:  device
[ERROR:candy]   @D:\OneDrive\Documents\CandyEditor/lib/lua/candy\input\InputDevice.lua:186
[ERROR:candy]   @D:\OneDrive\Documents\CandyEditor/lib/lua/candy\input\InputDevice.lua:396
[ERROR:candy]   no input device found:  device
[ERROR:candy]   @D:\OneDrive\Documents\CandyEditor/lib/lua/candy\input\InputDevice.lua:186
[ERROR:candy]   @D:\OneDrive\Documents\CandyEditor/lib/lua/candy\input\InputDevice.lua:406
[ERROR:candy]   no input device found:  device
[ERROR:candy]   @D:\OneDrive\Documents\CandyEditor/lib/lua/candy\input\InputDevice.lua:186
[ERROR:candy]   @D:\OneDrive\Documents\CandyEditor/lib/lua/candy\input\InputDevice.lua:406
[ERROR:candy]   no input device found:  device
[ERROR:candy]   @D:\OneDrive\Documents\CandyEditor/lib/lua/candy\input\InputDevice.lua:186
[ERROR:candy]   @D:\OneDrive\Documents\CandyEditor/lib/lua/candy\input\InputDevice.lua:406
[ERROR:candy]   no input device found:  device
[ERROR:candy]   @D:\OneDrive\Documents\CandyEditor/lib/lua/candy\input\InputDevice.lua:186
[ERROR:candy]   @D:\OneDrive\Documents\CandyEditor/lib/lua/candy\input\InputDevice.lua:428
[ERROR:candy]   no input device found:  device
[ERROR:candy]   @D:\OneDrive\Documents\CandyEditor/lib/lua/candy\input\InputDevice.lua:186
[ERROR:candy]   @D:\OneDrive\Documents\CandyEditor/lib/lua/candy\input\InputDevice.lua:759
[ERROR:candy]   no input device found:  device
[ERROR:candy]   @D:\OneDrive\Documents\CandyEditor/lib/lua/candy\input\InputDevice.lua:186
[ERROR:candy]   @D:\OneDrive\Documents\CandyEditor/lib/lua/candy\input\InputDevice.lua:776
[ERROR:candy]   no input device found:  device
[ERROR:candy]   @D:\OneDrive\Documents\CandyEditor/lib/lua/candy\input\InputDevice.lua:186
[ERROR:candy]   @D:\OneDrive\Documents\CandyEditor/lib/lua/candy\input\InputDevice.lua:804
[STAT :candy]   init audio
[STATUS]    loading module:scene_editor
[STATUS]    loading module:candy
[STATUS]    loading module:asset_editor
[STATUS]    loading module:scene_tool_manager
[STATUS]    loading module:game_view
[STAT :candy]   init input
[STAT :candy]   ...loading asset library
[STAT :candy]   loading library from    env/config/asset_table.json
[LOG  :candy]      0.000 /   0.000 -> Time elapsed <load_asset_library>
[LOG  :candy]      0.000 /   0.000 -> Time elapsed <load_asset_library>
[LOG  :candy]   asset registered    0
[STAT :candy]   initializing texture library
load CandyRuntime ok!
[MOAIRuntime] createRenderContext game
[STAT :candy]   register render context:    game    <EditorRenderContext:0x00000000>:game
[STAT :candy]   init editor render context
[STAT :candy]   init texture ouput render target    0   0
[STAT :candy]   init frameBuffer    0   0   <TextureRenderTarget:0x00000000>:editorTRT (0,0,0,0)
[STATUS]    add input device: device
[STATUS]    loading module:sceneoutliner_editor
[ERROR] icon not found: entity_vis
[ERROR] icon not found: entity_lock
[ERROR] icon not found: settings
[ERROR] icon not found: add_folder
[ERROR] icon not found: refresh
[STATUS]    loading module:layer_manager
[ERROR] icon not found: add
[ERROR] icon not found: remove
[ERROR] icon not found: arrow-up
[ERROR] icon not found: arrow-down
[STATUS]    loading module:detail_panel
[STATUS]    loading module:asset_browser
[ERROR] icon not found: tag-2
[ERROR] icon not found: upper_folder
[ERROR] icon not found: history_forward
[ERROR] icon not found: history_backward
[ERROR] icon not found: list
[ERROR] icon not found: grid-2
[ERROR] icon not found: add_folder
[ERROR] icon not found: add
[STATUS]    loading module:texture_library
[STATUS]    loading module:scene_view
[ERROR] icon not found: tools/selection
[ERROR] icon not found: tools/translation
[MOAIRuntime] createRenderContext edit_canvas<1>
[STAT :candy]   register render context:    edit_canvas<1>  <EditorRenderContext:0x00000000>:edit_canvas<1>
[STAT :candy]   init editor render context
[STAT :candy]   init texture ouput render target    0   0
[STAT :candy]   init frameBuffer    0   0   <TextureRenderTarget:0x00000000>:editorTRT (0,0,0,0)
[ERROR] icon not found: tools/rotation
[ERROR] icon not found: tools/scale
[ERROR] icon not found: tools/align-bottom-edges
[ERROR] icon not found: tools/align-top-edges
[ERROR] icon not found: tools/align-vertical-centers
[ERROR] icon not found: tools/align-left-edges
[ERROR] icon not found: tools/align-right-edges
[ERROR] icon not found: tools/align-horizontal-centers
[ERROR] icon not found: tools/push-together-left
[ERROR] icon not found: tools/push-together-right
[ERROR] icon not found: tools/push-together-top
[ERROR] icon not found: tools/push-together-bottom
[ERROR] icon not found: gizmo-all
[ERROR] icon not found: magnet
[ERROR] icon not found: grid
[STATUS]    loading module:asset_previewer
[STATUS]    loading asset table from:D:\OneDrive\Documents\CandyEditor\ZGameProject/env/config/asset_table.json
[STATUS]    start all modules
[STATUS]    starting module:qt
[STATUS]    starting module:moai
[STATUS]    starting module:filewatcher
[STATUS]    start watching: D:\OneDrive\Documents\CandyEditor\ZGameProject\game\asset
[STATUS]    starting module:search_view
[STATUS]    starting module:scene_editor
[STAT :candy]   saving texture library  D:\OneDrive\Documents\CandyEditor\ZGameProject/env/config/texture_library.json
[STATUS]    starting module:candy
[STATUS]    starting module:asset_editor
[STATUS]    starting module:scene_tool_manager
[STATUS]    starting module:game_view
[STATUS]    starting module:sceneoutliner_editor
[STATUS]    starting module:layer_manager
[STATUS]    starting module:detail_panel
[STATUS]    starting module:asset_browser
[ERROR] icon not found: normal
[ERROR] icon not found: folder-tag
[STATUS]    starting module:texture_library
[STATUS]    starting module:scene_view
[STATUS]    starting module:asset_previewer
[STATUS]    scan project in:D:\OneDrive\Documents\CandyEditor\ZGameProject/game/asset
[STATUS]    saving texture library index
[STATUS]    modified assets imported
[STATUS]    asset table saved
[ERROR] icon not found: normal
[ERROR] icon not found: normal
[ERROR] icon not found: layer_default
[ERROR] icon not found: ok
[ERROR] icon not found: ok
shixiaoshan2000 commented 2 years ago

我觉得与AKU.pyd关系不大,我将MOAIRuntime.py 129-142中的注释去掉

def initGLContext ( self ): if self.GLContextReady: return True logging.info ( 'init GL context' ) from candy_editor.qt.controls.GLWidget import GLWidget GLWidget.getSharedWidget ().makeCurrent () if not self.GLContextInitializer: logging.warn('no GL initializer found') return False logging.info( 'initialize GL context' ) self.GLContextInitializer() signals.emitNow( 'moai.context.init' ) getAKU().detectGfxContext() self.GLContextReady = True return True

[STATUS] start tool: ide <E:\can1\Candy-master\tools/ide> [STATUS] project loaded: E:\can1\Candy-master\shi [STATUS] registering asset manager: asset_manager.image [STATUS] registering asset manager: asset_manager.text [STATUS] registering asset manager: asset_manager.scene [STATUS] registering asset manager: asset_manager.prefab [STATUS] registering asset manager: asset_manager.texture_processor [STATUS] registering asset manager: asset_manager.texture [STATUS] registering asset manager: asset_manager.prebuilt_atlas [STATUS] registering asset manager: asset_manager.deck2d [STATUS] registering asset manager: asset_manager.font [STATUS] registering asset manager: asset_manager.stylesheet [STATUS] registering asset manager: asset_manager.data_json [STATUS] registering asset manager: asset_manager.named_tileset [STATUS] registering asset manager: asset_manager.animator_data [STATUS] scanning package in:E:\can1\Candy-master/packages [ERROR] failed reading package settings:EditorConsole [WARNING] no candy.json found in package folder: E:\can1\Candy-master/ packages/WelcomeScreen [WARNING] no candy.json found in package folder: E:\can1\Candy-master/ packages/pycache [STATUS] packages loaded! [STATUS] loading module:qt libpng warning: iCCP: known incorrect sRGB profile [STATUS] loading module:moai [STATUS] loading moai lua runtime [STATUS] loading project script lib [STATUS] change moai working path:E:\can1\Candy-master\shi/game [STATUS] loading candy lua module Could not connect to localhost:8172: connection refused connectPythonSignal: asset.modified <function wrapLuaCaller..caller at 0 x0000000006AC6D30> connectPythonSignal: asset.register <function wrapLuaCaller..caller at 0 x0000000006AC6DC0> connectPythonSignal: asset.unregister <function wrapLuaCaller..caller at 0x0000000006AC6E50> [LOG :candy] Game:addLayer() main [STATUS] [MOAIRuntime] initContext() ok. [STATUS] change moai working path:E:\can1\Candy-master\shi [STATUS] init GL context [WARNING] no GL initializer found [STATUS] loading module:search_view Could not create pixmap from :\images\handle.png [STATUS] loading module:scene_editor [STATUS] loading module:candy [CandyRuntime] candy.init [STAT :candy] loading game config from : E:\can1\Candy-master\shi/env/con fig/game_config.json [STAT :candy] [LOG :candy] Init Graphics Resolution 0 0 [STAT :candy] setting up window callbacks [LOG :candy] init RenderManager!! GL 3 1 [STAT :candy] resize context content :false 1920 1080 [STAT :candy] resize context :false 1920 1080 [STAT :candy] register render context: game <GameRenderContext:0x000 00000>:false [STAT :candy] init game render context [STAT :candy] init device output render target [STAT :candy] system graphics context ready! Windows fatal exception: code 0xe24c4a02

Thread 0x00001094 (most recent call first): File "D:\Program Files\Python38\lib\selectors.py", line 314 in _select File "D:\Program Files\Python38\lib\selectors.py", line 323 in select File "D:\Program Files\Python38\lib\socketserver.py", line 294 in handle_reque st File "E:\can1\Candy-master/lib\candy_editor\core\InstanceHelper.py", line 32 i n serve_forever File "D:\Program Files\Python38\lib\threading.py", line 870 in run File "D:\Program Files\Python38\lib\threading.py", line 932 in _bootstrap_inne r File "D:\Program Files\Python38\lib\threading.py", line 890 in _bootstrap

Current thread 0x00001ff0 (most recent call first): File "E:\can1\Candy-master/lib\candy_editor\moai\CandyRuntime.py", line 126 in initCandy File "E:\can1\Candy-master/lib\candy_editor\moai\CandyRuntime.py", line 66 in onLoad File "E:\can1\Candy-master/lib\candy_editor\core\EditorModule.py", line 137 in load File "E:\can1\Candy-master/lib\candy_editor\core\EditorModule.py", line 249 in loadModule File "E:\can1\Candy-master/lib\candy_editor\core\EditorModule.py", line 267 in [STAT :candy] ...setting up layers 出意外
好像与candy config 有关 ``

shixiaoshan2000 commented 2 years ago

这实际上是python host moai,gii版用的waf构建,我想用camke构建一下你这个,到时还想向你请教

lihaochen910 commented 2 years ago

cmake我不熟, C++不是我擅长的语言, 我自己构建AKU.pyd也是研究了好久

lihaochen910 commented 2 years ago

pixpil正在准备开源引擎和编辑器,主要开发平台是macOS,去他那边看看,gii@pixpil 我这边获取到并成功打开了. gii preview