-
PolySaken
- Member
- Posts: 818
- Joined: Thu Nov 09, 2017 05:18
- GitHub:
PolySaken-I-Am - In-game: PolySaken
- Location: Wānaka, Aotearoa
- Contact:
strange error message
Code: Select all
AL lib: (EE) MMDevApiProc: WaitForSingleObjectEx error: 0x102
AL lib: (EE) MMDevApiProc: WaitForSingleObjectEx error: 0x102
AL lib: (EE) MMDevApiProc: WaitForSingleObjectEx error: 0x102
AL lib: (EE) MMDevApiProc: WaitForSingleObjectEx error: 0x102
AL lib: (EE) MMDevApiProc: WaitForSingleObjectEx error: 0x102
AL lib: (EE) MMDevApiProc: WaitForSingleObjectEx error: 0x102
AL lib: (EE) MMDevApiProc: WaitForSingleObjectEx error: 0x102
AL lib: (EE) MMDevApiProc: WaitForSingleObjectEx error: 0x102
AL lib: (EE) MMDevApiProc: WaitForSingleObjectEx error: 0x102
AL lib: (EE) MMDevApiProc: WaitForSingleObjectEx error: 0x102
this keeps appearing in the console window.
what is it?
-
Krock
- Developer
- Posts: 4630
- Joined: Thu Oct 03, 2013 07:48
- GitHub:
SmallJoker - Location: Switzerland
-
Contact:
Re: strange error message
by Krock » Fri Mar 16, 2018 15:07
Post
I was about to reference to Google or DuckDuckGo — but helpful answers are rare.
AL, more likely: OpenAL Soft is used in Minetest, whose source code can be found here.
The Windows API function «WaitForSingleObjectEx» is called here and here.
The code 0x102 can be looked up in the API documentation, which means that the timeout already elapsed. In that case, OpenAL expected a running event which Windows already reports as expired. I doubt we could fix this in Minetest, so if you can find out in which OpenAL version and there’s a function named «MMDevApiProc», then report this error to them. It’s nevertheless just a message about a misbehaviour — crashes may happen but rarely, as it’s printed multiple times without any effect.
Who is online
Users browsing this forum: No registered users and 3 guests
Moderator: Oberlus
Forum rules
Always mention the exact version of FreeOrion you are testing.
When reporting an issue regarding the AI, if possible provide the relevant AI log file and a save game file that demonstrates the issue.
-
AvdL
- Space Krill
- Posts: 8
- Joined: Mon Dec 21, 2015 3:08 pm
Turn Times & «AL Lib: (EE) MMDevApiProc: WaitForSingleObje..
#1
Post
by AvdL » Mon Dec 21, 2015 3:25 pm
Version 0.4.5 [build 2015-09-01.f203162] MSVC 2013 on Windows 8.1.
Re: Turn time and «AL Lib: (EE) MMDevApiProc: WaitForSingleObjectEx error: 0x102» at begin of turn 520.
At the start of this turn 520 the game seems stuck.
I can still pan and zoom the galaxy map, look at fleets and systems, and access all screens from «Messages» to «Menu».
However, the turn never gets past «Begin turn 520» in the Messages window.
C:Program Files(x86)FreeOrionFreeOrion.exe reports «AL Lib: (EE) MMDevApiProc: WaitForSingleObjectEx error: 0x102».
I have now waited for over 30 minutes for this turn to complete which is way longer than the normal five or so.
Should you need any additional info, please let me know.
The game was auto-saving every four turns.
-AvdL
-
Geoff the Medio
- Programming, Design, Admin
- Posts: 13506
- Joined: Wed Oct 08, 2003 1:33 am
- Location: Munich
Re: Turn Times & «AL Lib: (EE) MMDevApiProc: WaitForSingleOb
#2
Post
by Geoff the Medio » Mon Dec 21, 2015 4:11 pm
Since it’s probably too big to attach to a post, please post a link to a save file that reproduces the issue. Or, load a game that produces the issue when you press turn, then press turn, wait a few min, then quit and locate freeoriond.log, freeorion.log, and any AI_#.log files. Best would be to delete all those log files before trying, to be sure any you find are new. They are located in the directory discussed here.
-
AvdL
- Space Krill
- Posts: 8
- Joined: Mon Dec 21, 2015 3:08 pm
Re: Turn Times & «AL Lib: (EE) MMDevApiProc: WaitForSingleOb
#3
Post
by AvdL » Tue Dec 22, 2015 10:34 am
Thanks Geoff the Medio,
Thanks for the tips, I will see what I can reasonable upload here.
I waited another hour or so after my previous post. Nothing changed, but I was able to resign the game without delay and FreeOrion exited to Windows 8.1 without fail.
However, in TaskManager, I noticed several instances of FreeOrionCA.exe that were still running.
AvdL.
-
Vezzra
- Release Manager, Design
- Posts: 5892
- Joined: Wed Nov 16, 2011 12:56 pm
- Location: Sol III
Re: Turn Times & «AL Lib: (EE) MMDevApiProc: WaitForSingleOb
#4
Post
by Vezzra » Tue Dec 22, 2015 3:34 pm
AvdL wrote:However, in TaskManager, I noticed several instances of FreeOrionCA.exe that were still running.
This indicates that FO didn’t exit gracefully. FreeOrionCA.exe is the AI client, for each AI opponent one process is started. If some of them remain after you’ve exited FO you need to kill them (or reboot your system), otherwise launching a new game might fail.
-
AvdL
- Space Krill
- Posts: 8
- Joined: Mon Dec 21, 2015 3:08 pm
Re: Turn Times & «AL Lib: (EE) MMDevApiProc: WaitForSingleOb
#5
Post
by AvdL » Wed Dec 23, 2015 12:20 pm
Thanks for your replies.
I have attached the 7-zipped original auto-save of turn 516, the last save before turn 520, which the game never managed to complete before I resigned, after more than an hour waiting.
I deleted the log files as mentioned above, then started the game and loaded autosave 516 and played till turn 520.
This time the game managed to get to turn 521, one more than before. On several attempts starting from autosave 516, it never did before.
The only difference is that I deleted the log files as mentioned by Geoff the Medio, above, before loading autosave 516 and playing through.
At the start of turn 521 I resigned the game and quit to Windows, then 7-zipped the log files.
Please let me know whether you need any more info.
Thank you.
-AvdL
PS: The compressed autosave is 1.2 Mb but cannot be attached as it is too big. I do not know how to use a link to get it to you. Please advice. Thanks.
- Attachments
-
- Log files.7z
- (823.13 KiB) Downloaded 50 times
-
Geoff the Medio
- Programming, Design, Admin
- Posts: 13506
- Joined: Wed Oct 08, 2003 1:33 am
- Location: Munich
Re: Turn Times & «AL Lib: (EE) MMDevApiProc: WaitForSingleOb
#6
Post
by Geoff the Medio » Wed Dec 23, 2015 1:38 pm
AvdL wrote:This time the game managed to get to turn 521, one more than before.
Did it then hang on turn 521, or could you continue playing after that?
The compressed autosave is 1.2 Mb but cannot be attached as it is too big. I do not know how to use a link to get it to you. Please advice.
Google something like «file upload share sites» and pick a free one you can upload a file to and get a link to share it with. Or put it in a Dropbox or similar cloud storage service that can give you a public link to share.
-
Vezzra
- Release Manager, Design
- Posts: 5892
- Joined: Wed Nov 16, 2011 12:56 pm
- Location: Sol III
Re: Turn Times & «AL Lib: (EE) MMDevApiProc: WaitForSingleOb
#7
Post
by Vezzra » Wed Dec 23, 2015 4:38 pm
AvdL wrote:The compressed autosave is 1.2 Mb but cannot be attached as it is too big. I do not know how to use a link to get it to you. Please advice. Thanks.
wetransfer.com works fairly straightforward. I just had difficulties using it with Firefox, but Google Chrome worked fine.
-
AvdL
- Space Krill
- Posts: 8
- Joined: Mon Dec 21, 2015 3:08 pm
Re: Turn Times & «AL Lib: (EE) MMDevApiProc: WaitForSingleOb
#10
Post
by AvdL » Thu Dec 24, 2015 11:30 am
Yes, after deleting the log files as mentioned earlier in this thread, I could advance in the game.
I agree this is hard to debug. )
I have split autosave516 into two files, 7zip format.
File one of two attached here.
Thanks.
PS: D/t restrictions of file name extensions to upload here, please add «.001» to the extension of this file and «.002» to the extension of the second, smaller file.
- Attachments
-
- autosave516.7z
- (1000 KiB) Downloaded 53 times
-
Type:
Bug
-
Resolution:
Invalid
-
Fix Version/s:
None
-
Affects Version/s:
Minecraft 14w29b
-
Environment:
Windows 8.1, Java 1.0.7_45
-
Confirmation Status:
Unconfirmed
In Windows 8, when you sleep your computer, the following error is thrown:
[12:10:58 INFO]: Client> AL lib: (EE) MMDevApiProc: WaitForSingleObjectEx error: 0x102 [12:11:00 INFO]: Client> AL lib: (EE) MMDevApiProc: WaitForSingleObjectEx error: 0x102 [15:11:01 INFO]: Client> AL lib: (EE) MMDevApiProc: WaitForSingleObjectEx error: 0x102 [15:11:06 INFO]: Client> AL lib: (EE) MMDevApiProc: WaitForSingleObjectEx error: 0x102 [15:11:08 INFO]: Client> AL lib: (EE) MMDevApiProc: WaitForSingleObjectEx error: 0x102 [15:11:10 INFO]: Client> AL lib: (EE) MMDevApiProc: WaitForSingleObjectEx error: 0x102 [15:11:12 INFO]: Client> AL lib: (EE) MMDevApiProc: WaitForSingleObjectEx error: 0x102 [15:11:14 INFO]: Client> AL lib: (EE) MMDevApiProc: WaitForSingleObjectEx error: 0x102 [15:11:16 INFO]: Client> AL lib: (EE) MMDevApiProc: WaitForSingleObjectEx error: 0x102 [15:11:18 INFO]: Client> AL lib: (EE) MMDevApiProc: WaitForSingleObjectEx error: 0x102 [15:11:20 INFO]: Client> AL lib: (EE) MMDevApiProc: WaitForSingleObjectEx error: 0x102 [09:52:17 INFO]: Client> AL lib: (EE) MMDevApiProc: WaitForSingleObjectEx error: 0x102
when I load a world and generate new chunks or create a new world my minecraft crashes from generateing my new ore in the chunk. as far as I know I’ve done all my coding correctly. I would appreciate it very greatly if you guys could help me out with this problem. here’s my Main class, Ore Class and Block class, please tell me what I did wrong. if you do I would deeply appreciate it.
Crash Report
[08:22:11] [main/INFO] [GradleStart]: Extra: []
[08:22:11] [main/INFO] [GradleStart]: Running with arguments: [—userProperties, {}, —assetsDir, C:/Users/Boone.mcfuzz/.gradle/caches/minecraft/assets, —assetIndex, 1.7.10, —accessToken, {REDACTED}, —version, 1.7.10, —tweakClass, cpw.mods.fml.common.launcher.FMLTweaker, —tweakClass, net.minecraftforge.gradle.GradleStartCommon$GradleStartTweaker]
[08:22:11] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker
[08:22:11] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker
[08:22:11] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.GradleStartCommon$GradleStartTweaker
[08:22:11] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker
[08:22:11] [main/INFO] [FML]: Forge Mod Loader version 7.10.85.1230 for Minecraft 1.7.10 loading
[08:22:11] [main/INFO] [FML]: Java is Java HotSpot 64-Bit Server VM, version 1.8.0_25, running on Windows 8.1:amd64:6.3, installed at C:Program FilesJavajre1.8.0_25
[08:22:11] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation
[08:22:11] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.GradleStartCommon$GradleStartTweaker
[08:22:11] [main/INFO] [GradleStart]: Injecting location in coremod cpw.mods.fml.relauncher.FMLCorePlugin
[08:22:11] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin
[08:22:11] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
[08:22:11] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker
[08:22:12] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
[08:22:12] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker
[08:22:12] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
[08:22:12] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!
[08:22:16] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing
[08:22:16] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
[08:22:16] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker
[08:22:17] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.TerminalTweaker
[08:22:17] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.TerminalTweaker
[08:22:17] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
[08:22:19] [main/INFO]: Setting user: Player78
[08:22:22] [Client thread/INFO]: LWJGL Version: 2.9.1
[08:22:24] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization
[08:22:24] [Client thread/INFO] [FML]: MinecraftForge v10.13.2.1230 Initialized
[08:22:24] [Client thread/INFO] [FML]: Replaced 182 ore recipies
[08:22:24] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization
[08:22:24] [Client thread/INFO] [FML]: Searching C:UsersBoone.mcfuzzDesktopOlympians Modeclipsemods for mods
[08:22:31] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load
[08:22:32] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, theolympiansmod] at CLIENT
[08:22:32] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, theolympiansmod] at SERVER
[08:22:33] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:The Olympians Mod
[08:22:33] [Client thread/INFO] [FML]: Processing ObjectHolder annotations
[08:22:33] [Client thread/INFO] [FML]: Found 341 ObjectHolder annotations
[08:22:33] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0
[08:22:33] [Client thread/INFO] [FML]: Applying holder lookups
[08:22:33] [Client thread/INFO] [FML]: Holder lookups applied
[08:22:33] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:
[08:22:33] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem…
[08:22:33] [Thread-6/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL
[08:22:33] [Thread-6/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org)
[08:22:34] [Thread-6/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized.
[08:22:34] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:
[08:22:34] [sound Library Loader/INFO]: Sound engine started
[08:22:37] [Client thread/INFO]: Created: 512×256 textures/blocks-atlas
[08:22:38] [Client thread/INFO]: Created: 256×256 textures/items-atlas
[08:22:38] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods
[08:22:38] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:The Olympians Mod
[08:22:38] [Client thread/INFO]: Created: 512×256 textures/blocks-atlas
[08:22:39] [Client thread/INFO]: Created: 256×256 textures/items-atlas
[08:22:39] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:
[08:22:39] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: SoundSystem shutting down…
[08:22:39] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:importantMessage:90]: Author: Paul Lamb, www.paulscode.com
[08:22:39] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:
[08:22:39] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:
[08:22:39] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem…
[08:22:39] [Thread-8/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL
[08:22:39] [Thread-8/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: (The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org)
[08:22:39] [Thread-8/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized.
[08:22:40] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:
[08:22:40] [sound Library Loader/INFO]: Sound engine started
AL lib: (EE) MMDevApiProc: WaitForSingleObjectEx error: 0x102
AL lib: (EE) MMDevApiProc: WaitForSingleObjectEx error: 0x102
AL lib: (EE) MMDevApiProc: WaitForSingleObjectEx error: 0x102
[18:58:40] [server thread/INFO]: Starting integrated minecraft server version 1.7.10
[18:58:40] [server thread/INFO]: Generating keypair
[18:58:40] [server thread/INFO] [FML]: Injecting existing block and item data into this server instance
[18:58:41] [server thread/INFO] [FML]: Applying holder lookups
[18:58:41] [server thread/INFO] [FML]: Holder lookups applied
[18:58:41] [server thread/INFO] [FML]: Loading dimension 0 (Help) (net.minecraft.server.integrated.IntegratedServer@41807dec)
[18:58:41] [server thread/INFO] [FML]: Loading dimension 1 (Help) (net.minecraft.server.integrated.IntegratedServer@41807dec)
[18:58:41] [server thread/INFO] [FML]: Loading dimension -1 (Help) (net.minecraft.server.integrated.IntegratedServer@41807dec)
[18:58:41] [server thread/INFO]: Preparing start region for level 0
[18:58:42] [server thread/ERROR]: Encountered an unexpected exception
java.lang.IllegalArgumentException: bound must be positive
at java.util.Random.nextInt(Unknown Source) ~[?:1.8.0_25]
at com.OlympiansMod.world.AllOre.addOre(AllOre.java:43) ~[AllOre.class:?]
at com.OlympiansMod.world.AllOre.generateOverworld(AllOre.java:53) ~[AllOre.class:?]
at com.OlympiansMod.world.AllOre.generate(AllOre.java:24) ~[AllOre.class:?]
at cpw.mods.fml.common.registry.GameRegistry.generateWorld(GameRegistry.java:106) ~[GameRegistry.class:?]
at net.minecraft.world.gen.ChunkProviderServer.populate(ChunkProviderServer.java:314) ~[ChunkProviderServer.class:?]
at net.minecraft.world.chunk.Chunk.populateChunk(Chunk.java:1157) ~[Chunk.class:?]
at net.minecraft.world.gen.ChunkProviderServer.originalLoadChunk(ChunkProviderServer.java:208) ~[ChunkProviderServer.class:?]
at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:149) ~[ChunkProviderServer.class:?]
at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:119) ~[ChunkProviderServer.class:?]
at net.minecraft.server.MinecraftServer.initialWorldChunkLoad(MinecraftServer.java:305) ~[MinecraftServer.class:?]
at net.minecraft.server.integrated.IntegratedServer.loadAllWorlds(IntegratedServer.java:79) ~[integratedServer.class:?]
at net.minecraft.server.integrated.IntegratedServer.startServer(IntegratedServer.java:96) ~[integratedServer.class:?]
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:445) [MinecraftServer.class:?]
at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752) [MinecraftServer$2.class:?]
[18:58:42] [server thread/ERROR]: This crash report has been saved to: C:UsersBoone.mcfuzzDesktopOlympians Modeclipse.crash-reportscrash-2015-04-01_18.58.42-server.txt
[18:58:43] [server thread/INFO] [FML]: Applying holder lookups
[18:58:43] [server thread/INFO] [FML]: Holder lookups applied
[18:58:43] [server thread/INFO] [FML]: The state engine was in incorrect state SERVER_STARTING and forced into state SERVER_STOPPED. Errors may have been discarded.
[18:58:43] [Client thread/INFO] [sTDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:388]: —- Minecraft Crash Report —-
// Uh… Did I do that?
Time: 4/1/15 6:58 PM
Description: Exception in server tick loop
java.lang.IllegalArgumentException: bound must be positive
at java.util.Random.nextInt(Unknown Source)
at com.OlympiansMod.world.AllOre.addOre(AllOre.java:43)
at com.OlympiansMod.world.AllOre.generateOverworld(AllOre.java:53)
at com.OlympiansMod.world.AllOre.generate(AllOre.java:24)
at cpw.mods.fml.common.registry.GameRegistry.generateWorld(GameRegistry.java:106)
at net.minecraft.world.gen.ChunkProviderServer.populate(ChunkProviderServer.java:314)
at net.minecraft.world.chunk.Chunk.populateChunk(Chunk.java:1157)
at net.minecraft.world.gen.ChunkProviderServer.originalLoadChunk(ChunkProviderServer.java:208)
at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:149)
at net.minecraft.world.gen.ChunkProviderServer.loadChunk(ChunkProviderServer.java:119)
at net.minecraft.server.MinecraftServer.initialWorldChunkLoad(MinecraftServer.java:305)
at net.minecraft.server.integrated.IntegratedServer.loadAllWorlds(IntegratedServer.java:79)
at net.minecraft.server.integrated.IntegratedServer.startServer(IntegratedServer.java:96)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:445)
at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752)
A detailed walkthrough of the error, its code path and all known details is as follows:
—————————————————————————————
— System Details —
Details:
Minecraft Version: 1.7.10
Operating System: Windows 8.1 (amd64) version 6.3
Java Version: 1.8.0_25, Oracle Corporation
Java VM Version: Java HotSpot 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 876415304 bytes (835 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB)
JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
IntCache: cache: 0, tcache: 0, allocated: 13, tallocated: 95
FML: MCP v9.05 FML v7.10.85.1230 Minecraft Forge 10.13.2.1230 4 mods loaded, 4 mods active
mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available
FML{7.10.85.1230} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.2.1230.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available
Forge{10.13.2.1230} [Minecraft Forge] (forgeSrc-1.7.10-10.13.2.1230.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available
theolympiansmod{0.1} [The Olympians Mod] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available
Profiler Position: N/A (disabled)
Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Player Count: 0 / 8; []
Type: Integrated Server (map_client.txt)
Is Modded: Definitely; Client brand changed to ‘fml,forge’
[18:58:43] [Client thread/INFO] [sTDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:393]: #@!@# Game crashed! Crash report saved to: #@!@# .crash-reportscrash-2015-04-01_18.58.42-server.txt
AL lib: (EE) alc_cleanup: 1 device not closed
Java HotSpot 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
MainClass
package com.OlympiansMod.Main;
import com.OlympiansMod.Block.ModBlocks;
import com.OlympiansMod.Item.ModItems;
import com.OlympiansMod.lib.Refstrings;
import com.OlympiansMod.world.MWorld;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.EventHandler;
import cpw.mods.fml.common.SidedProxy;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.registry.GameRegistry;
@Mod(modid = Refstrings.MODID , name = Refstrings.NAME , version = Refstrings.VERSION)
public class MainRegistry {
@SidedProxy(clientSide = Refstrings.CLIENTSIDE , serverSide = Refstrings.SERVERSIDE)
public static ServerProxy proxy;
@EventHandler
public static void PreLoad(FMLPreInitializationEvent PreEvent) {
ModItems.MainRegistry();
ModBlocks.MainRegistry();
MWorld.mainRegistry();
CraftingManager.mainRegistry();
proxy.registerRenderInfo();
}
@EventHandler
public static void Load(FMLInitializationEvent event) {
}
@EventHandler
public static void PostLoad(FMLPostInitializationEvent PostEvent) {
}
}
Block Class
package com.OlympiansMod.Block;
import com.OlympiansMod.lib.Refstrings;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.creativetab.CreativeTabs;
import cpw.mods.fml.common.registry.GameRegistry;
public class ModBlocks {
public static void MainRegistry() {
initializeBlock();
registerBlock();
}
public static Block CBronzeBlock;
public static Block CBronzeOre;
public static void initializeBlock() {
CBronzeBlock = new CBronzeBlock(Material.iron).setBlockName(«CBronzeBlock»).setCreativeTab(CreativeTabs.tabBlock).setBlockTextureName(Refstrings.MODID + «:CBronzeBlock»).setHardness(3);
CBronzeOre = new CBronzeOre(Material.iron).setBlockName(«CBronzeOre»).setCreativeTab(CreativeTabs.tabBlock).setBlockTextureName(Refstrings.MODID + «:CBronzeOre»).setHardness(4).setLightLevel((float) 5);
}
public static void registerBlock() {
GameRegistry.registerBlock(CBronzeBlock, CBronzeBlock.getUnlocalizedName());
GameRegistry.registerBlock(CBronzeOre, CBronzeOre.getUnlocalizedName());
}
}
Main world gen Class
package com.OlympiansMod.world;
import cpw.mods.fml.common.IWorldGenerator;
import cpw.mods.fml.common.registry.GameRegistry;
public class MWorld {
public static void mainRegistry(){
initializeWorldGen();
}
public static void initializeWorldGen(){
registerWorldGen(new AllOre(), 1);
}
public static void registerWorldGen(IWorldGenerator worldGenClass, int weightedProbability){
GameRegistry.registerWorldGenerator(worldGenClass, weightedProbability);
}
}
Ore Generator Class
package com.OlympiansMod.world;
import java.util.Random;
import com.OlympiansMod.Block.ModBlocks;
import net.minecraft.block.Block;
import net.minecraft.init.Blocks;
import net.minecraft.world.World;
import net.minecraft.world.chunk.IChunkProvider;
import net.minecraft.world.gen.feature.WorldGenMinable;
import cpw.mods.fml.common.IWorldGenerator;
public class AllOre implements IWorldGenerator {
@Override
public void generate(Random random, int chunkX, int chunkZ, World world,
IChunkProvider chunkGenerator, IChunkProvider chunkProvider) {
switch(world.provider.dimensionId){
case -1:
generateNether(random, chunkX * 16, chunkZ * 16, world);
break;
case 0:
generateOverworld(random, chunkX * 16, chunkZ * 16, world);
break;
case 1:
generateEnd(random, chunkX * 16, chunkZ * 16, world);
break;
}
}
private void addOre(Block block, Block blockspawn, Random random, World world, int posX, int posZ, int minY, int maxY, int minVien, int maxVien, int spawnChance){
for(int i = 0; i < spawnChance; i++){
int defaultChunkSize = 16;
int xPos = posX + random.nextInt(defaultChunkSize);
int yPos = maxY + random.nextInt(maxY — minY);
int zPos = posZ + random.nextInt(defaultChunkSize);
new WorldGenMinable(block, (minVien + random.nextInt(maxVien — minVien)), blockspawn).generate(world, random, xPos, yPos, zPos);
}
}
private void generateEnd(Random random, int chunkX, int chunkZ, World world) {
}
private void generateOverworld(Random random, int chunkX, int chunkZ, World world) {
addOre(ModBlocks.CBronzeOre, Blocks.diamond_ore, random, world, chunkX, chunkZ, 5, 10, 5, 5, 5);
}
private void generateNether(Random random, int chunkX, int chunkZ, World world) {
}
}
Thank you for your time.
Topic: [RESOLVED][Android] Crash when paused (Read 2708 times)
0 Members and 1 Guest are viewing this topic.
Hello everyone,
I have a problem with SFML 2.4.0 when I pause my smartphone.
— When I launch the application, and I leave it with the Home button by putting the phone in standby everything works well when I restart (via the task menu).
— But from the moment I click the Standby button when the application is active it crashes.
So I decided to do the same test on Windows to see if I will have the same problem and I got this message in the console (on Windows the application did not stop).
Al lib: <EE> MMDevApiProc: WaitForSingleObjectEx error: 0x102
I did some research on google to find a way to solve this problem but nothing concrete.
Thank you in advance for your solutions.
« Last Edit: March 27, 2018, 10:47:52 am by IsD »
Logged
Does the provided SFML example show the same behaviour on your phone?
AlexAUT
Logged
No, it works without problems.
Logged
Then you code has some flaw and we know nothing about it, so it is hard to help you .
Try to remove parts of the code until the problem disappears, thats the only advice I can give in this situation.
AlexAUT
Logged
I followed your advice and I finally found where the problem came from.
Whenever you declare an object of type sf :: Sound, sf :: SoundBuffer or sf :: Music, when the machine is idle this error triggers.
On the windows os the application just displays a message in the console but on Android it spits.
I did the test with the example provided with the SFML lib and I had the same problem.
Is there a solution to work around this problem?
Logged
@IsD like Alex says, it’s hard to present you with some proper solution because of lack of details. Please attach some error logs or something informative that can allow us to figure out the problem.
Logged
When I’m doing the test with the AVD emulator and simulating the eve of the machine when the application is running, the Android Studio log is sending me this:
03-22 17:03:20.982 2711-2718/com.mygames.apptest W/art: Suspending all threads took: 12.245ms
03-22 17:03:26.907 2711-2718/com.mygames.apptest W/art: Suspending all threads took: 6.843ms
03-22 17:04:55.565 2711-2718/com.mygames.apptest W/art: Suspending all threads took: 73.474ms
03-22 17:04:55.747 2711-3538/com.mygames.apptest E/Surface: getSlotFromBufferLocked: unknown buffer: 0xac0b0fc0
03-22 17:04:56.798 2711-4874/com.mygames.apptest E/eglCodecCommon: glUtilsParamSize: unknow param 0x0000821b
03-22 17:04:56.811 2711-4874/com.mygames.apptest E/eglCodecCommon: glUtilsParamSize: unknow param 0x0000821c
03-22 17:04:56.823 2711-4874/com.mygames.apptest E/eglCodecCommon: glUtilsParamSize: unknow param 0x0000821e
03-22 17:04:56.827 2711-4874/com.mygames.apptest E/eglCodecCommon: glUtilsParamSize: unknow param 0x00009126
03-22 17:04:56.831 2711-4874/com.mygames.apptest E/eglCodecCommon: glUtilsParamSize: unknow param 0x0000821b
03-22 17:04:56.887 2711-4874/com.mygames.apptest E/libEGL: call to OpenGL ES API with no current context (logged once per thread)
I hope this information can help you
« Last Edit: April 03, 2018, 07:49:19 pm by IsD »
Logged
SFML’s context handling on OpenGL ES platforms is still in its infancy. When you switch away from an application (or cause the system to go into a power saving mode) on Android or any other mobile platform, the system is allowed to destroy any active OpenGL ES contexts that have been created. This is mainly to save/share the limited system resources more efficiently. A robust OpenGL ES application would have to be able to deal with context loss if it happens. Currently, there is no way for this to be handled elegantly in SFML.
Someone with more experience developing for Android might know of a workaround to prevent context loss so that SFML would not have to deal with this situation. Something along the lines of setPreserveEGLContextOnPause.
Logged
SFGUI # SFNUL # GLS # Wyrm <- Why do I waste my time on such a useless project? Because I am awesome (first meaning).
Okay. After Unigine successfully noticed my Plugin.dll with my libnoise.dll, it crashed at function Interpreter::addExternClass() without any hints. («Unigine has stopped working.»).
My code:
class TerrainGeneratorPlugin : public Plugin { private: public: TerrainGeneratorPlugin(); virtual ~TerrainGeneratorPlugin(){}; virtual int init(); virtual int shutdown(); virtual void update(); }; TerrainGeneratorPlugin::TerrainGeneratorPlugin() { Log::warning("Generator-Plugin constructed!"); } int TerrainGeneratorPlugin::init() { Log::warning("Try register Terrain Generator Class!n"); ExternClass<TerrainGenerator> *terGenerator = MakeExternClass<TerrainGenerator>(); Log::warning("Terrain Generator Class registered!n"); //terGenerator->addConstructor<int,int>(); terGenerator->addConstructor(); terGenerator->addFunction("CalculateTerrain",&TerrainGenerator::CalculateTerrain); terGenerator->addFunction("BuildTerrain",&TerrainGenerator::BuildTerrain); terGenerator->addFunction("GetHeight",&TerrainGenerator::GetHeight); terGenerator->addFunction("SetBoundSize",&TerrainGenerator::SetBoundSize); terGenerator->addFunction("SetChunk",&TerrainGenerator::SetChunk); terGenerator->addFunction("GetBoundSize",&TerrainGenerator::GetBoundSize); terGenerator->addFunction("SetWorldSize",&TerrainGenerator::SetWorldSize); terGenerator->addFunction("GetWorldSize",&TerrainGenerator::GetWorldSize); terGenerator->addFunction("GetHeightMapSizeX",&TerrainGenerator::GetHeightMapSizeX); terGenerator->addFunction("GetHeightMapSizeY",&TerrainGenerator::GetHeightMapSizeY); Log::warning("AddTerrainGenerator Classn"); Interpreter::addExternClass("TerrainGenerator",terGenerator); Log::warning("TerrainGenerator-Plugin successfully initialized!"); return 1; } int TerrainGeneratorPlugin::shutdown() { return 1; } //Update-Funktion, die jedes Frame aufgerufen wird void TerrainGeneratorPlugin::update() { } // 4. Expose the created implementation of the plugin interface. // 4.1. The engine will search for this function to add the plugin library. // It returns a new instance of the custom plugin. extern "C" UNIGINE_API void *CreatePlugin() { return new TerrainGeneratorPlugin(); } // 4.2. The engine will search for this function to release the plugin library. // For that, a void pointer should be casted to the custom plugin type and then // deleted. extern "C" UNIGINE_API void ReleasePlugin(void *plugin) { delete static_cast<TerrainGeneratorPlugin*>(plugin); }